Claude Code
Connect a space
Section titled “Connect a space”Use Node.js 22 or later. From your repository, replace team-engineering
with your space handle and run the Nicia CLI.
npx @nicia-ai/cli connect team-engineering --client claude-codeFollow the browser sign-in if prompted. The CLI configures a space-scoped
connection in Claude Code. Restart Claude Code, open /mcp to check that
Nicia is connected, and ask about a known rule or decision in your space.
Ask Claude to include the source passage.
Install the Nicia plugin
Section titled “Install the Nicia plugin”Install the official plugin for slash commands and a Review briefing from the nicia-ai/claude-plugin marketplace.
claude plugin marketplace add nicia-ai/claude-pluginclaude plugin install nicia@niciaIn Claude Code, open /mcp and authenticate the plugin’s Nicia connection
when prompted. Choose the spaces to share on the Nicia consent screen.
| Command | Use it to |
|---|---|
/nicia:decide |
Save a decision or rule with an exact source passage. |
/nicia:review |
Inspect pending proposals and reopened records. |
/nicia:audit |
Find broken paths, missing scripts, and oversized agent instructions. |
/nicia:sync |
Upload committed sources and report what reopened. Use /nicia:sync install-hook to install the Git hook. |
The asynchronous SessionStart hook uses the space in your repository’s
.nicia.json and a saved CLI login or NICIA_API_KEY with Review access.
When there is Review work, Claude gets a short briefing on a subsequent
conversation turn after the background check completes. The hook gives the
check 1.5 seconds.
Sync committed sources
Section titled “Sync committed sources”From the repository root, replace team-engineering with your space handle.
A global CLI install makes nicia available to the Git hook.
npm install -g @nicia-ai/clinicia loginnicia hook install --space team-engineeringnicia syncThe installer creates or updates .nicia.json. Edit its paths to choose
which files to sync. The initial sync uploads committed files from HEAD.
The Git post-commit hook then uploads changed sources in the background.
See the CI/CD guide
for the review loop.