Stop Fusion from statically offering Claude Sonnet 5 when account availability is unknown. - Remove the supplemental direct Anthropic Claude Sonnet 5 model registration and static pricing row. - Keep Claude CLI supplemental metadata from force-adding Sonnet 5 while preserving other extra Claude models. - Update model registry, pricing, adapter, and provider tests to expect unavailable or upstream-only Sonnet 5 handling. - Add a patch changeset for the operator-facing fix. Files changed: .changeset/fn-7374-anthropic-sonnet-5-404.md | 7 ++++++ packages/core/src/__tests__/model-pricing.test.ts | 20 +++++++--------- packages/core/src/anthropic-models.ts | 24 +++---------------- packages/core/src/model-pricing.ts | 11 ++------- .../dashboard/src/__tests__/routes-auth.test.ts | 13 ++++++---- .../src/__tests__/pi-create-fn-agent.test.ts | 28 ++++++---------------- .../src/cli-agent/adapters/__tests__/pi.test.ts | 6 ++--- packages/pi-claude-cli/index.ts | 13 ++-------- .../src/__tests__/process-manager.test.ts | 4 ++-- .../pi-claude-cli/src/__tests__/provider.test.ts | 12 ++-------- 10 files changed, 44 insertions(+), 94 deletions(-) Fusion-Task-Id: FN-7374 Fusion-Task-Lineage: 9c498bb4-c4c1-4dd8-ae80-869dfb1d4c2c 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