Remove blocking execSync validation paths from CLI process managers while preserving async probe coverage. - Drop synchronous Claude and Droid CLI presence/auth validators from process managers. - Keep async spawn-based validation as the sole probing path for session startup. - Replace sync validator tests with execSync guard coverage for both CLI integrations. Files changed: .../droid-cli/src/__tests__/execsync-guard.test.ts | 17 ++++++++ .../src/__tests__/process-manager.test.ts | 46 +--------------------- .../src/__tests__/execsync-guard.test.ts | 14 +++++++ .../src/__tests__/process-manager.test.ts | 46 +--------------------- .../pi-claude-cli/src/__tests__/provider.test.ts | 1 - packages/pi-claude-cli/src/process-manager.ts | 44 +++------------------ .../src/process-manager.ts | 43 +++----------------- 7 files changed, 45 insertions(+), 166 deletions(-) Fusion-Task-Id: FN-6485 Fusion-Task-Lineage: e3f0f656-3445-4672-b597-a811924137e9
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