Skip to content
Beta. This surface may change before GA; breaking changes are dated in the changelog.

Sync a team's docs with Claude Code

Connect each teammate’s Claude Code client to the same Nicia space, then send committed changes to the space through a Git post-commit hook.

Use Node.js 24 or newer and run these commands from the root of a Git repository with a docs/ directory. Use a Nicia organization where you can create or access the team-ops space.

Install the CLI on your PATH so Git can find its executable when the hook runs.

Terminal window
npm install --global @nicia-ai/cli@0.4.0
command -v nicia
Terminal window
npx @nicia-ai/cli audit
npx @nicia-ai/cli login
npx @nicia-ai/cli migrate ./docs --space team-ops --connect claude-code
npx @nicia-ai/cli hook install --space team-ops

The audit checks local agent instructions and skills. Complete browser authorization for the same organization your teammates use. Migration uploads the documents and connects Claude Code over MCP. Keep the local Claude Code configuration private because it contains the space key. Have additional teammates sign in and connect their own client.

Terminal window
npx @nicia-ai/cli connect team-ops --client claude-code

Run a first sync from HEAD. The hook installs locally, and .nicia.json lists the paths it watches. Share that file with teammates who also need to sync and have them install the hook in their own checkouts.

Terminal window
npx @nicia-ai/cli sync --dry-run
npx @nicia-ai/cli sync

In Claude Code, ask “What do our docs say to do when checkout is unavailable? Cite the source.” Use a question your docs answer if you have your own runbook. Edit a watched Markdown file, commit the change, and ask again after sync completes. The hook starts the sync in the background. Run npx @nicia-ai/cli sync to catch up after a missed commit.

Sync uses repository-relative paths as document IDs, such as docs/escalation.md. Initial migration uses its own IDs, so you may see both copies after the first sync. Use the path-based copy when citing docs that future commits will update.

Bring your knowledge