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

Claude Code

Use Node.js 22 or later. From your repository, replace team-engineering with your space handle and run the Nicia CLI.

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

Follow 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 official plugin for slash commands and a Review briefing from the nicia-ai/claude-plugin marketplace.

Terminal window
claude plugin marketplace add nicia-ai/claude-plugin
claude plugin install nicia@nicia

In 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.

From the repository root, replace team-engineering with your space handle. A global CLI install makes nicia available to the Git hook.

Terminal window
npm install -g @nicia-ai/cli
nicia login
nicia hook install --space team-engineering
nicia sync

The 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.