agengo 0.5.1

Orchestrate AI coding agents (Claude Code) to build, verify, review and integrate tasks in isolated Git worktrees
agengo-0.5.1 is not a library.

Run AI coding agents like Claude Code on your own machine, under control. Each task is built, verified, independently reviewed and integrated in its own Git worktree, and the result is handed over only when every check passes.

Rust 1.90+ CI Platform: Linux · macOS · Windows Claude Code crates.io npm

Features · How it works · Quick start · Docs · FAQ · Tiếng Việt


agengo is an open-source command-line tool, written in Rust, for running AI coding agents under control. You write a plan made of small tasks. For each task, agengo:

  1. dispatches a Builder agent,
  2. runs your verification commands,
  3. has an independent Reviewer check the exact commit against the acceptance criteria,
  4. merges the result into a dedicated Git branch.

You end up with a verified af/<run-id> branch that is ready to inspect and merge. Your main branch is never touched.

Use it when you want Claude Code, or any other coding agent, to work on several tasks at once while keeping clear file scopes, mandatory tests, independent review, and a human in the loop for the decisions that matter.

Why agengo?

Running an agent directly on your repository is fast but hard to control. It may edit unrelated files, report "done" while tests are still red, or leave your working branch in a mess. agengo adds a verified orchestration layer around the agent:

Running an agent directly Running it through agengo
The agent may edit any file Each task may only change the paths listed in its owns scope; anything else is rejected
"Done" means the agent says so "Done" means your verify commands pass in a clean worktree
The agent reviews its own work A separate Reviewer must attest the exact commit SHA it was given
Work happens on your current branch Every attempt gets its own worktree; results merge into af/<run-id>
An interruption loses track of progress State lives in SQLite; resume continues where it stopped, even after Ctrl‑C
Questions get lost in chat A decision inbox lists each Y-xx request together with the command that answers it

Principles

agengo does not write code; it decides when an agent's work is accepted. Eight rules define it, and no option or preset bends them:

  1. Your branches are never touched. Work lands only on af/<run-id>; agengo never merges into main and never pushes.
  2. Done means checked. Your verify commands must pass in a clean worktree, and final_verify on the final branch.
  3. Nobody reviews their own work. A separate Reviewer checks the exact commit. Review can be lighter; it cannot be off.
  4. Scope is enforced. A task changes only the paths it owns; overlapping tasks never run at the same time.
  5. People decide, agents propose. Spec questions, approvals and Y-xx requests are answered by a person, never by an agent.
  6. One record per decision. Product decisions live in the approved spec, locked by a digest.
  7. Every run can be resumed and audited. Durable state, and each attempt's request, result, timing, tokens and cost.
  8. Any agent, one protocol. agengo records the model and cost the agent reports; it does not pick them.

agengo keeps its own files in one folder, so your repository root stays yours:

.agengo/
├── principles.md        # your stack, commands and conventions, read by the spec and plan agents
├── spec.yaml            # the approved spec, from `agengo spec --idea`
└── plans/
    └── p1-admin.yaml    # one plan per run, named after its run ID → branch af/p1-admin

agengo is not a sandbox, a code generator, CI or a model router, and there is no mode that delivers unreviewed work. The invariants in full, and how to judge a proposed change, are in CONTRIBUTING; the repository layout and naming conventions are in the user guide.

Features

  • 🤖 Multi-agent workflow: Builder → verification → Reviewer → integration → final checks. Claude Code, Codex and Antigravity start by name with their own subscription login, and any other agent can plug in through a JSON adapter.
  • 🌳 Git worktree isolation: every build, review and integration attempt runs in its own worktree, and worktrees are cleaned up automatically.
  • ⚡ Safe parallelism: --jobs N runs independent tasks concurrently; tasks with overlapping file scopes are serialized, and depends ordering is enforced.
  • ✅ Mandatory verification: each task's verify commands, integration_verify after every merge, and final_verify before hand-off.
  • 🔍 Tracked review findings: findings (F-01, …) are tied to acceptance criteria, carry a severity, and are followed across fix rounds. Only critical and high findings block; medium and low ones are kept as advisory notes for you. An optional whole-branch review is available, and quality.verify_findings has a second agent try to refute blocking findings before the task goes back to the Builder.
  • 💬 From rough idea to spec: agengo spec turns a one-line idea into a spec of what to build (user stories, measurable success criteria, what is out of scope, visible assumptions) by asking at most a few multiple-choice questions in plain words, never about technology. agengo enforces the question limits and locks the approved spec with a digest. In Claude Code the questions appear as clickable choices.
  • 🧑‍⚖️ Human in the loop: approve plans before they run, choose between options A and B, amend the plan as a new revision, and pause or resume individual tasks.
  • 🧬 Quality gates: tree-sitter–based detection of duplicated Python functions (off/warn/block), plus any lint or test commands you add.
  • 💾 Crash-safe: transactional SQLite state, a per-run lock, and timeouts and output limits for agent processes.
  • 📊 Cost transparency: status --json records every attempt's request, result, duration, tokens and cost; agengo metrics totals tokens and cost per role and per task, for Claude Code or any adapter that reports usage.
  • 🎯 Reliability evidence: agengo metrics also reports the first-review pass rate, review rounds, gate and review failures, findings by state and severity, and results per model; agengo metrics --all adds them up across every run in the repository, so you can compare agents and models. See Metrics.

How it works

Tasks move through pending → building → ready_review → reviewing → passed → integrated. When a task gets stuck — the review limit is reached, the agent crashes, or a prerequisite is missing — it becomes blocked and agengo asks you through a Y-xx request. Independent tasks keep running.

Requirements

  • Linux, macOS or Windows 10/11. On Windows, Claude Code needs Git for Windows.
  • Node.js 14.18+ for the npm package, or Rust/Cargo 1.90+ and a C compiler to build from source. Prebuilt binaries need neither.
  • Git 2.31+ with user.name and user.email configured.
  • A coding agent on PATH and logged in: Claude Code (claude), Codex (codex) or Antigravity (agy); or your own adapter passed with --agent <executable>. With several installed, run agengo agent use NAME once; agengo config set think.model … sets a stronger model for planning and review and a cheaper one for building.

Installation

Prebuilt binaries are available for Linux and macOS (x64 and arm64) and Windows (x64).

npm install -g agengo          # or try it without installing: npx agengo --help
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/nguyentan510/agengo/releases/latest/download/agengo-installer.sh | sh
powershell -ExecutionPolicy ByPass -c "irm https://github.com/nguyentan510/agengo/releases/latest/download/agengo-installer.ps1 | iex"  # Windows
cargo install agengo --locked  # builds from source

Binaries and checksums for each version are on the Releases page.

Quick start

# .agengo/plans/demo.yaml
schema_version: 1
goal: Add a greeting helper
tasks:
  - id: greet
    goal: Add greet(name) to src/greet.py returning "Hello, <name>!".
    owns: [src/greet.py, tests/test_greet.py]
    acceptance: ["greet('An') returns 'Hello, An!'"]
    verify: [["python3", "-m", "pytest", "-q", "tests/test_greet.py"]]
final_verify: [["python3", "-m", "pytest", "-q"]]
agengo init                                          # once per repository: skill, .agengo/principles.md, .agengo/plans/
agengo plan --file .agengo/plans/demo.yaml --brief   # validate the plan without calling an agent
agengo run .agengo/plans/demo.yaml --id demo         # build → review → integrate → deliver
agengo status demo                                   # progress
agengo inbox demo                                    # pending requests, each with the command that answers it
git log --oneline main..af/demo                      # inspect the result before merging

No plan yet? Let the agent draft one: agengo plan --goal "Add a login API" --format yaml > .agengo/plans/p1-login.yaml. Only a rough idea? Settle it first with agengo spec --idea "a booking app for my barbershop", which writes .agengo/spec.yaml, then draft a plan that must cover it with agengo plan --spec .agengo/spec.yaml (see Clarifying an idea).

Name each run <phase>-<scope> (p1-login, p2-voucher) and its plan file after it, so the plan, the branch af/<run-id> and the reports share one name.

Exit codes: 0 delivered · 2 waiting for your answer (then run resume) · 1 error · 130 interrupted (run resume).

Learn more

The reference has the exact plan format, every command and the adapter protocol. The user guide shows how to settle an idea, answer Y-xx requests and connect your coding agent.

FAQ

Does agengo merge into main or push to a remote? No. It only creates and updates the local branch af/<run-id> and never pushes. Merging is your decision.

Can I use an agent other than Claude Code? Yes. --agent codex and --agent agy start Codex and Antigravity with their own login, agengo agent use NAME keeps the choice for a repository, and any executable that speaks the JSON adapter protocol works. If one platform is down, switch with --agent or agengo resume ID --agent NAME.

Does it use my Claude or ChatGPT subscription, or an API key? Your subscription. By default (--auth subscription) agengo removes ANTHROPIC_API_KEY, OPENAI_API_KEY and similar variables from the agents' environment, because Claude Code and Codex would otherwise bill the key first. Log in once with the agent's own CLI (claude then /login, or codex login). Pass --auth api to use API keys instead.

How does Claude Code or Codex know to call agengo? Run agengo init in the repository. It installs an agengo skill that both agents load, describing when to hand work to agengo and how to drive a run.

What happens if the agent hangs or crashes? Each attempt has a timeout (--timeout, 900 s by default). Failures turn into Y-xx requests. Answer with agengo respond, then run agengo resume.

Where is data stored? Your principles, spec and plans live in .agengo/; commit them. Run state is kept in .git/agent-flow/state.sqlite3, including a copy of each approved plan, so overwriting a plan file never changes a run. Temporary worktrees live under ~/.cache/agengo/worktrees (%LOCALAPPDATA%\agengo\worktrees on Windows; override with AGENGO_WORKTREES) and are removed after delivery or by agengo clean <run>.

Is it a sandbox? No. agengo checks file scope, commit SHAs, the index and branches after every attempt, ignores Git hooks in its own commands, and stops the run if an agent changes the repository's hooks or Git configuration. Agents can still run Bash, though. For untrusted code or agents, run agengo inside a container or VM. See security limits.

What does it cost? agengo itself is free. You pay for the agent you use, such as Claude Code. Every task needs at least one build attempt and one review attempt, and on small tasks the review can cost nearly as much as the build. agengo metrics reports real tokens and cost per role and per task. Recording them adds about 1 ms per attempt and makes no extra API calls. To see what the reviews cost you in rework, agengo metrics ID also shows how many tasks passed their first review and how many build attempts each integrated task took; agengo metrics --all totals cost and first-review pass rate across runs and per model. These reports only read the state database.

Documentation

Read When
User guide You want to do something: install, run, answer requests, connect an agent
Reference You need exact syntax: commands, plan format, adapter protocol, metrics
Glossary A term or CLI label is unclear
CONTRIBUTING · Architecture You want to change agengo
CHANGELOG · Documentation index You are upgrading, or want the full list

Development

See CONTRIBUTING for how to build, test and propose a change.


Keywords: AI coding agent orchestrator · Claude Code automation · multi-agent software development · git worktree · automated code review · human-in-the-loop · Rust CLI