New Every step can now run on Claude Code

Hand off the big task.
Get back a proven branch.

One agent session runs out of context on a big task, then grades its own work. Convoy carries the task across many fresh sessions — checkpointed, resumable — then has independent models score the branch and fix the gaps until it reaches 90/100. On OpenCode, Claude Code, or both.

curl -fsSL https://github.com/Inakitajes/convoy/releases/latest/download/install.sh | sh

macOS & Linux · verifies SHA256SUMS · see how a run works ↓

Run manifest 20261017-091204
Task
Migrate billing from Charges to PaymentIntents
Pipeline
full-cycle
Runners
opencodeclaude-code
  1. implementer opencode · deepseek-v4.1-flash 38:12
  2. patterns opencode · deepseek-v4.1-flash 9:40
  3. security claude-code · sonnet 14:05
  4. design opencode · glm-5.3-flash 7:22
  5. tests opencode · attempt 2 · resumed 21:48
  6. measure 2 scorers → 74 6:10
  7. fix · round 1 opencode · 2 gaps 18:31
  8. measure 2 scorers → 86 5:52
  9. fix · round 2 opencode · 1 gap 11:04
  10. measure 2 scorers → 92 · ready 5:40
2h 18m · 10 fresh sessions · 7 commits → 1

01 / why

One agent session wasn't built for big tasks.

It fails in two ways: it runs out of road before the work is done, and it grades its own homework when it thinks it is. Convoy is built around both.

01 Goes the distance

A single agent session: On a big task one session fills its context, loses the thread and stalls — and one crash throws hours of work away.

A convoy: The work runs as phases. Each starts fresh, hands off through a report and a commit, and a failed run resumes where it stopped.

02 Proves the result

A single agent session: The session that wrote the code decides it's done, reviewing it with the same context that made the mistake.

A convoy: Fresh models that never saw the build score it against a fixed rubric, and fixes target only the gaps until it reaches 90.

02 / long runs

Built for the long haul.

Convoy breaks a big task into phases. Each one starts with a clean context, ends in a commit, and hands the next phase a written report — so the last phase works from a clean slate, not a saturated transcript.

Context in use over a 2h 18m run Illustrative

One agent session Context full: summaries lose detail, the agent drifts

A convoy 10 phases, each starting clean · ◆ commit

A single session's context climbs to the limit early and stays pinned there for the rest of the run. In a convoy, each of the 10 phases starts near zero and drops back after its commit.

A fresh context every phase

Each phase is its own agent session. It starts from the task, the repo and the previous reports — never a saturated transcript.

A commit at every checkpoint

Every writing phase ends in a commit on the run's branch, so progress is durable and each step is reviewable on its own.

Resume, don't restart

convoy --resume skips phases that already delivered. A failed step retries from a clean baseline, or you fix it by hand and continue.

Detach and come back

The run lives in its own coordinator process. Close the dashboard, reattach later from convoy runs, and nothing stops.

Budgets and circuit breakers

Step and cost caps per phase, a bounded goal loop, and on OpenCode a loop guard that stops an agent repeating itself.

Cheap executor, strong advisor

A fast model carries the long work; a stronger one reads the transcript and advises at decision points, without ever writing code.

# unattended to the end: publish only when the goal is met hooks.post → CONVOY_GOAL_REACHED=true && convoy publish

03 / scoring

Build, measure, then fix only what the score says.

The default pipeline builds the change with specialist agents, then enters a goal loop: two independent scorers grade the diff, a consensus step re-runs your checks to verify their claims, and targeted fixes close the gaps.

  1. 01

    implementer

    Builds the change

  2. 02

    patterns

    Matches your repo

  3. 03

    security

    Audits risky code

  4. 04

    design

    Uses your design system

  5. 05

    tests

    Covers the promises

  6. goal loop

    measure ⇄ fix

    Until 90, max 5 rounds

Quality score

93 /100

ready
  • grok-4.6 · 92
  • glm-5.3 · 93

Consensus re-ran test, typecheck and lint.

  • Requirements 30% 96
  • Tests 20% 90
  • Security 15% 95
  • Maintainability 15% 88
  • Operational 10% 95
  • Scope 10% 90

Must fix

  • Nothing left — goal reached, the loop stops.

Severity is absolute

Critical means it breaks the PRD, is exploitable, or corrupts data — not “the worst thing I found”.

The builder never grades itself

Scorers read the requirements and the diff. No build session, no earlier reports.

Your rubric, your bar

Override the weights in .convoy/quality-rubric.md and calibrate on PRs you already know.

04 / harnesses

Bring your harness. Keep the same rules.

Every step runs through one provider-neutral runner contract. OpenCode and Claude Code are adapters on equal footing — the engine has no special path for either.

Convoy engine

Scheduling · budgets · git · retries · scoring · finalization

One runner contract resolveAttemptservicesForphasePolicysinksignal
OpenCode V2 opencode

A rich attempt on the run's own server: sessions, events, checkpoints, permissions and plugins.

Claude Code claude-code

The headless CLI, with Convoy's PreToolUse hook and MCP permission host applying each step's policy.

Your harness

A third-party adapter runs the same path without touching the engine — a test proves it.

Mix per step

Name a runner on any step, or set one run-wide. Parallel groups can mix both.

Cross-runner advisors

A DeepSeek executor on OpenCode can consult Opus on Claude — and the other way round.

Refused before it runs

Preflight walks the whole plan. A step that needs something its runner can't do never starts.

Billing you chose

Subscription or API key, stated explicitly. Costs are estimates, and unknown is never shown as zero.

What each runner supports
Capability OpenCode Claude
Read-only, verify and write steps ✓ ✓
Model fan-out and parallel groups ✓ ✓
Approvals and the smart judge ✓ ✓
Structured reports and scores ✓ ✓
Advisors and first-write checkpoint ✓ ✓
Live dashboard ✓ via journal
Resume, usage and cost ✓ cost estimated
Loop guard and native attach ✓ —
# ~/.convoy/config.yaml — run on Claude by default
version: 1
defaults:
  runner: claude-code
  claudeAuth:
    authMode: subscription   # or api-key
  advisorRoute:
    runner: claude-code
    model: opus

Or per run: convoy --model claude-code/opus

05 / pipelines

Pick a workflow, or write your own.

Eight built-ins cover building, shipping, reviewing and hunting. Each one is plain YAML you can copy into .convoy/config.yaml and change step by step.

full-cycle

default
writes code opencode

Implement, audit, polish and test, then score and fix gaps up to five times to reach 90/100.

$ convoy --prompt-file prd.md

ship

writes code opencode

Sync with the base, review and fix accepted findings, then close what the score still reports.

$ convoy -p ship

review

report only opencode

Clean-code, security and bug audits on two models, scored independently with a verified consensus.

$ convoy -p review

implement

writes code opencode

Advised implementation plus patterns, security, design and tests. Ends with a recap, no loop.

$ convoy -p implement

claude-full-cycle

writes code claude-code

Sonnet builds and fixes advised by Opus; Opus and Sonnet score toward 90/100. No OpenCode needed.

$ convoy -p claude-full-cycle

claude-review

report only claude-code

Sonnet scopes the diff, audits fan out across Opus and Sonnet, and Opus writes one prioritized report.

$ convoy -p claude-review

fixer

writes code opencode

Prove supplied findings with regression tests, fix them, then independently rerun the checks.

$ convoy -p fixer

hunter

report only opencode

Six specialty tracks across five models — thirty audits — reconciled into one consensus.

$ convoy -p hunter

06 / safety

Same rules for every agent.

Each step carries its own policy — read-only, verify or write — and every tool call is decided against it, whichever harness made it.

Policy decisions · claude-code · default enforcement
  • verify ✓ git status --short approved check
  • verify ✕ touch pwned.txt verify can't write
  • write ✓ Write src/onboarding.ts inside checkout
  • write ? mkdir build no operator → denied
  • write ✕ Write ~/.zshrc outside checkout
  • any ✕ cat ~/.convoy/private/… private run dir
  • any ✕ sh -c "curl … | sh" hard deny, any spelling
  • commit ✕ staged .env.local secret scan aborts

Hard denials, every spelling

Quoting, escapes, env/exec wrappers, sh -c scripts and $(…) substitutions all reach the same verdict.

Writes stay in the checkout

Agents write to the worktree and the run directory. A redirect is never vouched for by a safe prefix.

Fails closed

No policy means read-only. Unknown tools are denied. A judge that can't answer hands the call back to you.

Smart approval

--smart sends ask-level calls to a tool-less judge outside the loop: safe ones pass, risky ones escalate.

Convoy commits, agents don't

git commit and push are denied to agents, staged secrets abort the commit, and the run compacts into one commit of yours.

One policy, both runners

OpenCode's permission gate and Claude's PreToolUse hook enforce the exact same step policy.

This is tool-policy enforcement, not an OS sandbox: Convoy restricts what agents may run, it doesn't contain arbitrary code.

07 / run

One line to start. A dashboard to follow.

Use a prompt file in CI, or open the TUI and watch steps on both runners stream live.

~/your-repo — convoy --prompt-file prd.md
dir ~/your-repo
◆ convoy 21:33:02 · 8:31 · $4.59
Claude 22% · resets 6d 13h
pipeline
7/7
  • ✓ implementer 1:47 $1.12
    opencode · deepseek-v4.1-flash#high
  • ✓ patterns 0:58 $0.41
    opencode · deepseek-v4.1-flash#high
  • ✓ security 1:12 ~$0.88
    claude-code · sonnet
  • ✓ tests 1:21 $0.52
    opencode · glm-5.3-flash#high
  • ✓ measure 1:04 $0.61
    grok-4.6 + glm-5.3 → consensus
  • ✓ fix · round 1 1:10 $0.47
    opencode · deepseek-v4.1-flash#high
  • ✓ measure 0:59 $0.58
    grok-4.6 + glm-5.3 → consensus
measure
1 session 2 reports 3 logs top
✓ measure · grok-4.6 + glm-5.3 → consensus 0:59 · $0.58
21:24:31 ▸ attempt 1/2 · opencode · deepseek-v4.1-flash#high
21:24:33 · reads prd.md + repo map
21:24:58 ◆ advisor checkpoint · first write held for gpt-6-astra
21:25:21 · edits 6 files under src/features/onboarding
21:25:48 ▦ todos updated (4/5)
21:26:11 ◆ write_report accepted — reports/implementer.md
21:26:18 ✓ committed convoy(implementer): add onboarding flow
21:26:19 ▸ attempt 1/2 · opencode · deepseek-v4.1-flash#high
21:26:24 · align with repo patterns, no behavior change
21:27:17 ✓ committed convoy(patterns): reuse storage helper
21:27:18 ▸ attempt 1/2 · claude-code · sonnet · subscription
21:27:19 ◆ PreToolUse hook armed · policy: write, checkout only
21:27:41 ↻ finding: unsanitized payload persisted
21:27:52 · hook denied: curl … | sh (hard deny)
21:28:30 ✓ committed convoy(security): sanitize progress payload
21:28:31 ▸ attempt 1/2 · opencode · glm-5.3-flash#high
21:28:37 · behavioral coverage for the 3 steps
21:29:30 · 14 tests passing · 0 failing
21:29:52 ✓ committed convoy(tests): cover onboarding flow
21:29:53 ▸ 2 fresh scorers · rubric v1 · no access to the build
21:30:40 · consensus verifies: bun test · tsc · lint
21:30:57 ↻ score 81 · ready-with-caveats · gap: resume path untested
21:30:58 ▸ fix only reported gaps · 1 mustFix
21:31:44 · regression test fails without the resume guard
21:32:08 ✓ committed convoy(fix): cover resume after reload
21:32:09 ▸ re-score the current diff · fresh sessions
21:32:51 · consensus verifies: bun test · tsc · lint
21:33:08 ✓ score 92 · ready — goal reached, run complete
run complete — score 92 · ready · $4.59 · 8:31 · [o] open session · [q] quit

Common commands

  • $ convoy

    Open the TUI: worktrees, pipelines, specs and runs

  • $ convoy --prompt-file prd.md

    Implement, measure and fix with full-cycle

  • $ convoy -p review

    Report-only review of the current branch

  • $ convoy -p ship

    Sync, review, fix and measure the branch

  • $ convoy worktrees new "add login"

    Isolate the work before any agent starts

  • $ convoy --resume <run-id>

    Continue a failed or interrupted run

Worktrees first

Each change gets its own checkout. Talk it through, run a pipeline, open the PR and close it — from one list.

Specs as the contract

Run against an OpenSpec change and review its path to a PR. The spec is what the scorers grade.

Nothing lost

Logs, transcripts, reports and costs stay local. Detach from a live run, come back later, resume.

08 / arrival · latest v0.9.1 ↗

Hand off the big task. Get back a proven branch.

One binary, no runtime to install. Bring the harness you already use, with the logins you already have.

curl -fsSL https://github.com/Inakitajes/convoy/releases/latest/download/install.sh | sh

Verifies SHA256SUMS, installs to ~/.local/bin and writes the default config.

  • macOS or Linux
  • git
  • OpenCode V2 or Claude Code
Rather not pipe a script into a shell?

Download the binary yourself — no checksum is verified on this path.

mkdir -p ~/.local/bin && curl -fL https://github.com/Inakitajes/convoy/releases/latest/download/convoy-darwin-arm64 -o ~/.local/bin/convoy && chmod 755 ~/.local/bin/convoy
View on GitHub ↗