Run pipeline stages on Claude Code (harness=claude)
A model stage with harness=claude, provider=anthropic and a Claude model id runs one claude -p process per visit with the server user's Claude sign-in. Only the declared tools exist (--tools) and nothing else is approved (--permission-mode dontAsk); edits are approved only below the run directory and the stage's artifacts directory. A permissions block, run write paths, delivery=true and reasoning_effort none/minimal are refused, not widened. Usage comes from the CLI's final result and counts toward budgets. Failures are fixed text; billing, quota and rate-limit refusals map to ErrProviderQuota. The redacted stream is the session export and evidence. provider-check --harness claude and model overrides are covered.
This commit is contained in:
@@ -100,8 +100,8 @@ How the stage service behaves:
|
||||
- `pipelines debug` is unchanged: it opens a fresh interactive harness
|
||||
conversation, not the stage session.
|
||||
|
||||
Claude Code and Codex are chat-only harnesses (stages accept only
|
||||
`harness=opencode` or `harness=pi`), so they need no stage limit. Their chats
|
||||
Codex is a chat-only harness and Claude Code stages (`harness=claude`) run the
|
||||
CLI's own print mode, so neither has a stage limit here. Their chats
|
||||
keep their own defaults. Claude Code has `BASH_MAX_OUTPUT_LENGTH` and
|
||||
`MAX_MCP_OUTPUT_TOKENS` (environment or `--settings`). Codex has
|
||||
`tool_output_token_limit` (config override `-c`). Pi stages keep Pi's built-in
|
||||
@@ -176,7 +176,8 @@ instead of being silently redirected or downgraded to plaintext. `provider-check
|
||||
on a Docker-linked profile runs in-container and preserves the caller's output
|
||||
mode (`--json` only when requested) with exact stdout/exit propagation.
|
||||
|
||||
Put `harness=pi` in a model stage's configs to select Pi. nvim edits definitions
|
||||
Put `harness=pi` in a model stage's configs to select Pi, or `harness=claude`
|
||||
with `provider=anthropic` for Claude Code ([harnesses](harnesses.md#claude-code-stages)). nvim edits definitions
|
||||
or displays debug evidence; it does not execute model stages.
|
||||
|
||||
For bounded review loops, add a fenced `limits` JSON object to the reviewer:
|
||||
|
||||
Reference in New Issue
Block a user