- A stage refused for a Claude usage limit no longer fails its run: the runner tries the chats' Claude account auto-switch (per-home setting) and reruns the visit, else parks the run in the new waiting_quota status (persisted, with reset/resume time in run summaries, details and events) and resumes the same visit at reset + 1 min, also after a restart. resume_run / `pipelines resume` resumes now; cancel works on parked runs. The rerun visit gets a "# Previous attempt" interruption note. Subscription limits no longer say "top up the provider account". - run/retry into an account known to be limited are deferred (quota_policy defer/refuse/now; CLI refuses under --json/--yes unless --defer or --now). - failure_class on runs (quota, loop_exhausted, timeout, permission_denied, harness_error, blocked, environment, canceled, interrupted, budget, check_failed, other) in RunSummary/RunDetail/events, CLI inspect/runs/wait/ stats and the app failure line. - Claude permission denials (permission_denials / refused tool results) fail a blocked visit with permission_denied naming the tool use. - Harness failures are classified transient vs deterministic; deterministic ones (and a repeated empty readback) skip error self-loops; transient self-loops back off 15 s, 1 min, 4 min. - Whole-run USD budget: run --budget, server default (run-budget / get/set_run_settings); 80% warning notification, stop with class budget. - App: waiting_quota status/filter with resume time, Resume now and Cancel, failure class wording. Docs and skill references updated. Merges main (check stage, delivery gate, Claude stage restart survival, schedule changes). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7.7 KiB
name, description
| name | description |
|---|---|
| Pipelines | Use existing Pipelines workflows to run, inspect, wait, recover and deliver work, and author definitions when the user explicitly asks. |
Pipelines
Pipelines are reusable workflows for repositories. They are optional: direct work, delegation and a pipeline are all valid routes. Use whichever finishes the task with the least ceremony, and keep work small enough to verify.
Using it
pipelines list shows the registered workflows; pipelines runs shows history.
From an agent's shell always pass --yes and --json; without a terminal the
CLI never opens a full-screen view or prompts, and a missing --yes fails at once.
Start a run with pipelines run <name> "<task>" --json --yes (prints the run id),
and inspect it with pipelines inspect <id>: a compact summary (one line per
step with status, outcome, duration and first diagnostic line, plus the final
handoff). --step N shows one step in full, --transcripts adds transcripts,
and --json is the full record.
After starting a run, always follow it with pipelines wait <id> until it
finishes; never start a run and move on without waiting. Run the wait as a
background command (one per run, or one loop over several ids) so the session is
notified the moment the run ends, then read its result with
pipelines inspect <id> and act on it: land, retry, or fix and report.
wait prints one line per run, naming a failed run's stage and first diagnostic
line, and exits 0 when every run succeeded, 2 when any failed, was canceled or
interrupted, and 1 for a client error (unknown id, connection, --timeout).
Do not poll with repeated pipelines runs calls, and do not tell the user a run
is done, or will be reported, without a wait covering it. wait keeps blocking
while a run is waiting on a human stage and prints how to answer it
(pipelines decide <id> --option KEY, the user's choice only), and through
waiting_quota (parked for a usage limit; it resumes itself after the reset).
Never retry into a known usage limit; read failure_class before acting
(references/debugging.md).
A run started from a repository's main checkout runs in its own worktree
(<repo>-runs/..., branch pipelines/run-...); a failed run keeps that tree and
its commits. Read pipelines inspect <id> before deciding: resume the
failed stage (pipelines retry <id> --yes --json; --stage/--visit,
--input-file, --mode=restart from entry), fix directly, or continue from the
preserved branch. failed and interrupted (server stopped mid-run) runs can be
retried: resume reruns the failed or interrupted stage, or starts the next stage
after the last completed one. canceled runs need a new run or direct work on
their branch. A retried stage's input.md carries a # Previous attempt section
(why the last attempt failed) and, with --input-file, a # Operator correction
section holding only the overridden keys.
Use an existing pipeline
A request to run work is not a request to author. pipelines list and
pipelines search come before pipelines new. Use the closest existing
workflow and put task-specific requirements in the run prompt; a pipeline prompt
is deliberately generic and does not need to match every request word for word.
Never create, edit, submit, import, or publish a pipeline or version merely to complete a run request. Those actions require an explicit request from the user in the current conversation. If no existing pipeline can do the work, stop and explain the gap; ask before authoring. Do not add a task-specific pipeline as a "safer" alternative to direct work or an existing workflow.
Authoring
Start from pipelines templates and pipelines new NAME --template KEY
(research, task); these fill in
the server's provider/model. Read references/format.md and
references/practices.md before writing prompts. Stage names: plan ·
implement · verify (check) · review · ui-review · decide (human) ·
land. A type=check stage runs listed shell commands on the server, no
model, and routes on pass/fail: put one before review and use one with
delivery=true as the landing gate rather than having a model run the suite.
Stages with shell but no edit must not change the workspace (the server fails the
visit); give reviewers a permissions.shell allow-list.
Keep prompts short and objective: what the stage should produce and any real
constraints. The runner enforces turns, tools and limits and explains the output
format; prompts do not repeat them. Only # outcome is parsed from output.md;
everything else is free markdown. There are no memory, links, input or output
blocks; stages communicate through output.md (# handoff) and public/.
pipelines validate DRAFT checks a draft, including the authoring rules
(errors block submit; warning: lines do not but should be fixed);
pipelines submit DRAFT publishes a new immutable version.
pipelines help <command> has flags.
Stage tools blocks may use mcp:<server> or mcp:<server>/<tool> for
Claude-only, allowlisted MCP access. Prefer read-only tools; unattended stages
deny every MCP tool not listed. The name is the Claude Code display name
(mapped internally to mcp__<server>__<tool>).
The server keeps a versioned skill library: pipelines skills list, skills show NAME [--version N], and skills import FOLDER (root SKILL.md with
name/description frontmatter plus references/, scripts/, assets/; import
only when asked). Stage use: references/format.md.
In a Pipelines chat
A chat's agent has a pipelines MCP server: show_file, show_image,
show_html (follows the light/dark theme when it styles for dark; its result warns about blocked scripts or remote resources), show_diff (show the
operator changes, e.g. before a pull request; head, paths), show_run (a
live run card), schedule_followup (come back to this chat at a time, or when a
run finishes or needs the operator: run_id with on; returns an id for
cancel_followup) and notify
(every Pipelines app the operator is signed in to plus their phone; cleared
everywhere once they read it or open the chat). Pipelines already notifies when
a reply ends or the agent asks something, so notify is only for news mid-turn
or after work the turn does not wait for. Show instead of telling the operator a
path; pass a result's item id as replace to update a card in place. Unknown
arguments are refused. Details, limits, chat RPCs: references/chat.md.
References
Read only what the task needs. Rows marked operator only are for setting up or debugging the server; skip them when authoring.
| Need | Reference |
|---|---|
| Definition syntax, turn files, output.md, checks, landing | references/format.md |
| Good practices (tokens, checks, prompts, loops) | references/practices.md |
| Loop limits | references/control.md |
| Stages, parallel work, recovery | references/orchestration.md |
| Verification and evidence | references/verification.md |
| Failures | references/debugging.md |
| Delivery and installation | references/delivery.md |
| Notifications | references/notifications.md |
| Chat tools, sent references, questions, chat RPCs | references/chat.md |
| Saved run schedules (never in a definition) | references/schedules.md |
| Transfer and versions | references/transfer.md |
| Queue and work items | references/work.md, references/queue.md |
| CLI, storage and run evidence (operator only; not needed for authoring) | references/operations.md |
| Harnesses and models (operator only) | references/harnesses.md |
| Hosting, auth and deployment (operator only) | references/access.md |
Ask about real ambiguity, destructive actions or changes outside the request; routine steps of an authorized task do not need another confirmation.