/setup
Check whether the local Pi CLI is ready, show available models, and optionally toggle the stop-time review gate
$ npx -y skills add Agents365-ai/pi-plugin-cc --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/setup
Context preview
What this command does when you run it.
Check whether the local Pi CLI is ready, show available models, and optionally toggle the stop-time review gate
Command definition
setup.mddescription: Check whether the local Pi CLI is ready, show available models, and optionally toggle the stop-time review gate argument-hint: '[--enable-review-gate|--disable-review-gate]' allowed-tools: Bash(node:*), Bash(npm:*), AskUserQuestion
Run:
node "${CLAUDE_PLUGIN_ROOT}/scripts/pi-companion.mjs" setup --json $ARGUMENTSIf the result says Pi is unavailable and npm is available:
- Use `AskUserQuestion` exactly once to ask whether Claude should install Pi now.
- Put the install option first and suffix it with `(Recommended)`.
- Use these two options:
- `Install Pi (Recommended)`
- `Skip for now`
- If the user chooses install, run:
npm install -g --ignore-scripts @earendil-works/pi-coding-agent
- Then rerun:
node "${CLAUDE_PLUGIN_ROOT}/scripts/pi-companion.mjs" setup --json $ARGUMENTSIf Pi is already installed or npm is unavailable:
- Do not ask about installation.
Output rules:
- Present the final setup output to the user.
- If installation was skipped, present the original setup output.
- If Pi is installed but no provider is configured, preserve the guidance to set a provider API key (e.g. `DEEPSEEK_API_KEY`) or write `~/.pi/agent/models.json` per pi's `providers.md`.
External references: Pi coding agent · Pi RPC mode · Pi providers A Claude Code plugin that delegates reviews and coding tasks to the Pi coding agent. Adapted from codex-plugin-cc, runtime swapped from Codex to Pi.
Repo: Agents365-ai/pi-plugin-cc
Other commands on pi-plugin-cc.
- /adversarial-review
Run a Pi review that challenges the implementation approach and design choices
Open command - /cancel
Cancel an active background Pi job in this repository
Open command - /parallel-rescue
Delegate multiple independent tasks to Pi for parallel execution via pi-subagents
Open command - /rescue
Delegate investigation, an explicit fix request, or follow-up rescue work to the Pi rescue subagent
Open command - /result
Show the stored final output for a finished Pi job in this repository
Open command - /review
Run a Pi code review against local git state
Open command

