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.
Connect and install the hook
Section titled “Connect and install the 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.
npm install --global @nicia-ai/cli@0.4.0command -v nicianpx @nicia-ai/cli auditnpx @nicia-ai/cli loginnpx @nicia-ai/cli migrate ./docs --space team-ops --connect claude-codenpx @nicia-ai/cli hook install --space team-opsThe 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.
npx @nicia-ai/cli connect team-ops --client claude-codeVerify sync
Section titled “Verify sync”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.
npx @nicia-ai/cli sync --dry-runnpx @nicia-ai/cli syncIn 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.