Skip to content
Development
Command

/setup

Check whether the local Pi CLI is ready, show available models, and optionally toggle the stop-time review gate

From plugin
pi-plugin-cc
368 skills1 agent8 commands
Install
$ npx -y skills add Agents365-ai/pi-plugin-cc --agent claude-code

How 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.md
description: 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 $ARGUMENTS

If 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 $ARGUMENTS

If 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`.
Ships withpi-plugin-cc

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.

Get the whole plugin, auto-invoked
Stats
36
Stars
0
Views
4
Forks
Active
Maintenance
JavaScript
Language
Apache-2.0
License
13d ago
Last commit
2mo ago
Created

Repo: Agents365-ai/pi-plugin-cc