full-cycle
defaultImplement, audit, polish and test, then score and fix gaps up to five times to reach 90/100.
convoy --prompt-file prd.md 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 ↓
01 / why
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.
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.
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
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.
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.
Each phase is its own agent session. It starts from the task, the repo and the previous reports — never a saturated transcript.
Every writing phase ends in a commit on the run's branch, so progress is durable and each step is reviewable on its own.
convoy --resume skips phases that already delivered. A failed step retries from a clean baseline, or you fix it by hand and continue.
The run lives in its own coordinator process. Close the dashboard, reattach later from convoy runs, and nothing stops.
Step and cost caps per phase, a bounded goal loop, and on OpenCode a loop guard that stops an agent repeating itself.
A fast model carries the long work; a stronger one reads the transcript and advises at decision points, without ever writing code.
03 / scoring
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.
01
implementer
Builds the change
02
patterns
Matches your repo
03
security
Audits risky code
04
design
Uses your design system
05
tests
Covers the promises
goal loop
measure ⇄ fix
Until 90, max 5 rounds
Quality score
93 /100
readyConsensus re-ran test, typecheck and lint.
Must fix
Critical means it breaks the PRD, is exploitable, or corrupts data — not “the worst thing I found”.
Scorers read the requirements and the diff. No build session, no earlier reports.
Override the weights in .convoy/quality-rubric.md and calibrate on PRs you already know.
04 / harnesses
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
resolveAttemptservicesForphasePolicysinksignal opencode A rich attempt on the run's own server: sessions, events, checkpoints, permissions and plugins.
claude-code The headless CLI, with Convoy's PreToolUse hook and MCP permission host applying each step's policy.
A third-party adapter runs the same path without touching the engine — a test proves it.
Name a runner on any step, or set one run-wide. Parallel groups can mix both.
A DeepSeek executor on OpenCode can consult Opus on Claude — and the other way round.
Preflight walks the whole plan. A step that needs something its runner can't do never starts.
Subscription or API key, stated explicitly. Costs are estimates, and unknown is never shown as zero.
| 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
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.
Implement, audit, polish and test, then score and fix gaps up to five times to reach 90/100.
convoy --prompt-file prd.md Sync with the base, review and fix accepted findings, then close what the score still reports.
convoy -p ship Clean-code, security and bug audits on two models, scored independently with a verified consensus.
convoy -p review Advised implementation plus patterns, security, design and tests. Ends with a recap, no loop.
convoy -p implement Sonnet builds and fixes advised by Opus; Opus and Sonnet score toward 90/100. No OpenCode needed.
convoy -p claude-full-cycle Sonnet scopes the diff, audits fan out across Opus and Sonnet, and Opus writes one prioritized report.
convoy -p claude-review Prove supplied findings with regression tests, fix them, then independently rerun the checks.
convoy -p fixer Six specialty tracks across five models — thirty audits — reconciled into one consensus.
convoy -p hunter 06 / safety
Each step carries its own policy — read-only, verify or write — and every tool call is decided against it, whichever harness made it.
Quoting, escapes, env/exec wrappers, sh -c scripts and $(…) substitutions all reach the same verdict.
Agents write to the worktree and the run directory. A redirect is never vouched for by a safe prefix.
No policy means read-only. Unknown tools are denied. A judge that can't answer hands the call back to you.
--smart sends ask-level calls to a tool-less judge outside the loop: safe ones pass, risky ones escalate.
git commit and push are denied to agents, staged secrets abort the commit, and the run compacts into one commit of yours.
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
Use a prompt file in CI, or open the TUI and watch steps on both runners stream live.
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
Each change gets its own checkout. Talk it through, run a pipeline, open the PR and close it — from one list.
Run against an OpenSpec change and review its path to a PR. The spec is what the scorers grade.
Logs, transcripts, reports and costs stay local. Detach from a live run, come back later, resume.
08 / arrival · latest v0.9.1 ↗
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.
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 mkdir -p ~/.local/bin && curl -fL https://github.com/Inakitajes/convoy/releases/latest/download/convoy-darwin-x64 -o ~/.local/bin/convoy && chmod 755 ~/.local/bin/convoy mkdir -p ~/.local/bin && curl -fL https://github.com/Inakitajes/convoy/releases/latest/download/convoy-linux-arm64 -o ~/.local/bin/convoy && chmod 755 ~/.local/bin/convoy mkdir -p ~/.local/bin && curl -fL https://github.com/Inakitajes/convoy/releases/latest/download/convoy-linux-x64 -o ~/.local/bin/convoy && chmod 755 ~/.local/bin/convoy