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:
@@ -101,7 +101,9 @@ evidence route to `blocked` when declared, else `error`; never fabricate a resul
|
||||
- `provider`/`model`: exact IDs validated during server setup. Templates
|
||||
(`pipelines new NAME --template KEY`) fill them in; copy those IDs into a
|
||||
hand-written draft. Availability needs `pipelines provider-check`.
|
||||
- `harness=opencode|pi`; omission means OpenCode (`references/harnesses.md`).
|
||||
- `harness=opencode|pi|claude`; omission means OpenCode (`references/harnesses.md`).
|
||||
`claude` needs `provider=anthropic` and a Claude model ID, and accepts no
|
||||
`permissions` block, `delivery=true` or run write paths.
|
||||
- `retries` 0–100, default 2 (three attempts). Retries cover transport failures
|
||||
and timeouts; a stage with `edit`/`shell` (or no tools block) never replays
|
||||
admitted work.
|
||||
|
||||
Reference in New Issue
Block a user