Skip to content

Spike: cli/claude-code provider adapter + PATH discovery #496

Description

@suleimansh

Part of #495.

Wire one provider end to end so the estimate for the rest is real.

  • discover.ts: probe PATH for the claude-code CLI via the local runner, resolve to an absolute path, read --version. Candidate model like Traycer (path / custom / bundled).
  • cli/claude-code ProviderAdapter in ai-sdk: spawn the CLI in headless/print mode (claude -p), map generate/stream to its stdin/stdout, register under AiRegistry as cli/claude-code.
  • Prove it: an autopilot worker with model string cli/claude-code runs a subtask with no API key set.

Two things this spike answers:

  • exact headless invocation per CLI (claude-code has -p; codex/gemini TBD)
  • whether tool-calls round-trip through the CLI, or we keep tools on our side and use the CLI for generation only

Gated on Rom's go on #495.

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions