Expose the latest Claude CLI-callable Anthropic models with corrected supplemental metadata. - Add Sonnet 5, Fable 5, and Opus 4.8 to the pi-claude-cli supplemental model catalog. - Update context/output limits for recent Claude 4.x CLI rows. - Preserve catalog deduplication and assert Fable 5 uses the current 0/0 per MTok pricing. - Add a patch changeset for the published Fusion CLI package. Files changed: .changeset/fn-7390-claude-cli-latest-models.md | 7 ++++ packages/pi-claude-cli/index.ts | 40 ++++++++++++++++-- .../pi-claude-cli/src/__tests__/provider.test.ts | 47 +++++++++++++++------- 3 files changed, 76 insertions(+), 18 deletions(-) Fusion-Task-Id: FN-7390 Fusion-Task-Lineage: 54df5de7-c29e-44af-bcb6-9d768103576e Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
pi-claude-cli
A pi extension that routes LLM calls through the Claude Code CLI as a subprocess. Use your Claude Pro/Max subscription as the LLM backend — no API key, no separate billing.
How it works
The extension registers as a custom pi provider exposing all Claude models. Each request spawns a claude -p subprocess using the stream-json wire protocol, with --resume on follow-up turns to reuse the CLI's session state instead of replaying full history. Claude proposes tool calls, pi executes them natively. Custom pi tools are exposed to Claude via a schema-only MCP server.
Requirements
- Claude Code CLI installed and authenticated (
claudeon PATH) - A Claude Pro or Max subscription
- pi or GSD
Installation
Add to ~/.gsd/agent/settings.json:
{
"packages": ["npm:pi-claude-cli"]
}
Then select a Claude model via /model in the interactive UI. All Claude models appear under the pi-claude-cli provider.
Features
- Streams text, thinking, and tool call tokens in real-time
- Maps tool names and arguments bidirectionally between Claude and pi
- Exposes custom pi tools to Claude via MCP (schema-only, no execution)
- Break-early pattern prevents Claude CLI from auto-executing tools
- Session resume via
--resumeeliminates history replay on follow-up turns - Configurable thinking effort with elevated budgets for Opus models
- Cross-platform subprocess management (Windows, macOS, Linux)
- Inactivity timeout and process registry for cleanup
License
MIT