Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Autopus-ADK is of the agents, by the agents. for the agents. Multi-model orchestration (consensus/pipeline/debate/fastest). Architecture-as-Code, Lore decision tracking, SPEC/EARS engine.
Fetched from the repository for this visit.
Autopus-ADK installs a verification harness into your AI coding CLI (Claude Code, Codex, Antigravity CLI, OpenCode, Oh My Pi). Your agent still plans and writes the code. Autopus builds it, tests it, reviews the diff, and has a separate QA agent run the product to look for bugs before the session ends.
# macOS / Linux
curl -sSfL https://raw.githubusercontent.com/autopus-ai/autopus-adk/main/install.sh | sh
# Windows (CMD or PowerShell)
powershell -c "irm https://raw.githubusercontent.com/autopus-ai/autopus-adk/main/install.ps1 | iex"
Why · Stop hook · QA bug hunt · Routes · Install · Configuration · Security
Up to v0.50.x, Autopus shipped a full implementation harness: plan/SPEC documents, /auto go,
/auto fix, /auto idea, 17 agents, and a set of discipline rules. Frontier models (Opus-class)
now plan and implement well on their own, and that scaffolding mostly added cost.
A small pilot pointed the same way. On 4 real upstream PR tasks graded by hidden tests, plain Claude Code passed 4/4 in about 17 minutes for $3.00, and the old full harness passed 0/4 in about 3.6 hours for at least $37 (a lower bound: its plan stage hit the time cap on every task and reported no cost). With n=4, all small Go changes, this is directional, not a benchmark.
What agents still do badly is check their own work. They report "done" on code that does not build, tests they did not run, and behavior they never exercised. So the harness now does one job: it runs the change, and it sends the agent back when the change does not hold up.
| Stage | What runs | When |
|---|---|---|
| Build and test | auto verify stop: the toolchains of the changed files only | Every time a Claude Code session tries to stop with a changed tree |
| User scenarios | auto qa intent writes criteria from your request; auto qa go --no-loop and auto qa exec --all run them on the working tree | On demand with /auto qa, or in the full verification round when the change has a user-runnable, security or data-loss surface |
| Review | The reviewer agent on git diff HEAD | On demand with /auto review, or in every verification round, in the foreground, checking by running the real program |
| Real-input replay | auto qa replay --driver '<cmd>' runs a classifier or parser over real inputs (by default the Bash commands this machine's Claude Code sessions ran) at the base commit and in the work tree, and shows the decisions that changed | In the review, when a change classifies or parses inputs users or sessions produce |
| QA bug hunt | The qa-explorer agent drives the product looking for bugs, policy mismatches and measured inefficiency; auto qa hunt verify re-runs each repro | On demand with /auto qa, or in the full verification round under the same condition as user scenarios |
| Fix | The working agent fixes failing scenarios, blockers and confirmed findings, then re-runs the tests | Same round |
The build and test gate needs no prompt from you, and neither does the verification round that follows it when a change touches product code (below). Either way the agent is told to ask you only for decisions that are really yours, as a multiple-choice question with a description per option.
auto init registers a Claude Code Stop hook, auto verify stop. When the agent tries to end the
session and the work tree differs from HEAD, the hook:
go build ./... and go test on the changed packagestypecheck and test scripts, run with the package manager the lockfile namespython3 -m pytest -qcargo test --quiet--budget, default 8m).Doc-only changes and tools that are not installed are skipped.
Credential check. Before the build runs, the hook scans the lines this turn adds against HEAD
(tracked edits plus untracked files that are not gitignored) with a small built-in pattern set:
private key headers, AWS access key ids, GitHub tokens (ghp_, gho_, ghu_/ghs_, ghr_,
github_pat_), Slack tokens and webhooks, Stripe live keys, Google API keys, and a JWT only when it
is assigned to a credential-named key or sent as a bearer token. The patterns favor precision over
recall and need no external tool. A hit blocks the stop once, naming file:line (rule) and never the
value, and asks the agent to move the value to an environment variable or secret storage. The same
set of hits again only leaves a warning, so the gate does not loop. Binary files, files over 1 MiB,
and harness directories are skipped. A deliberate fixture passes with an autopus:allow-secret (or
gitleaks:allow) comment on the line, or a file:rule:line entry in .gitleaksignore.
Version check. Agents pin what they remember from training (postgres:13, "react": "^18",
go 1.22, node:20-alpine), not what is current. Before the build, the hook reads the manifests this
turn changed or created (go.mod, package.json, requirements*.txt, pyproject.toml, Cargo.toml,
.nvmrc, .python-version, .tool-versions, Dockerfiles, and YAML image: keys) and keeps only the
pins it adds or changes against HEAD; an old pin the turn did not touch is never reported. Each one is
looked up (see Dependency versions). A pin more than
hooks.version_stop.max_major_behind release lines behind the latest stable (default 0, so any whole line)
blocks the stop once, naming the item, the chosen and the latest version, and the source. Minor-behind
pins only warn. A deliberate pin passes with a reply line version-pin: <name> <reason>, or a
version-pin: <reason> comment on the manifest line where the format allows comments. Lookups share a
10-second deadline; an offline, private, or slow registry leaves a warning and never blocks.
Technical-debt ratchet. Agents add code faster than anyone removes it, and a workaround left in place
reads to the next agent as the project's convention. auto debt lists debt as items code can count:
TODO/FIXME/HACK/XXX comments without an issue reference (TODO(#123), TODO(ABC-12) or a link is tracked
debt), product files within a tenth of architecture.max_file_lines (only when the project declares one), and runs of code lines repeated in several places
(imports excluded), and parallel implementations: the same concept built again instead of the existing one
being extended — a list sharing at least three values and half of the smaller list with another (an array, a set,
a tuple, a const or enum block, a union of string types, or the keys of a table whose values are all of one kind;
call arguments, imports and records — keys with mixed kinds of value, a map of any value, or in Go a keyed literal
not opened by a map type such as fiber.Map{...} — do not count), a type sharing most of its fields with one in
another directory, or an exported type or interface of any size whose non-generic name another directory uses too
(a second Candidate approval queue). Types are read in Go, TypeScript, Python, Rust, Java, Kotlin, C# and Swift,
and enums of plain names in those languages count as lists. Lists and types match only within one language family:
a TypeScript mirror of a Go type, or a Python script's copy of a Go list, cannot extend the original, so it is a
mirror item instead — it never blocks, and the verification round asks the reviewer whether both should come from
one definition (a shared data file, an OpenAPI or protobuf schema). Upgrading to a version that adds
this kind needs one auto debt baseline --force to record the parallel items a project already has. A new parallel list or type
blocks like any new item, even next to the original in the same file, with the advice to extend the existing one;
extending a known list, or moving it, does not. The verification round also names the parallel copies on the lines
a change added, for the reviewer to judge whether the change should have extended one of them; it follows the same
switch as the ratchet and needs a baseline. Tests, docs, generated files, harness directories, vendor/-style third-party code and
files over 2 MiB are not counted. A marker is identified by its text, so moving it, or its file, keeps it known;
a duplicate stays known when a copy is edited or part of it is extracted. auto debt baseline records the
current items in .autopus/debt/baseline.json; commit it. From then on the hook compares item by item (an
item that only moved keeps its identity; deleting one and adding another is still new): an item the baseline
lacks blocks the stop, naming file:line and kind; it blocks again only for an item not blocked before in
the session, at most twice. A file near the
size limit only warns. Without a baseline the hook suggests one and never blocks. The scan reads only files
that changed since the last one (an index under .autopus/runtime/debt/) and stops after 0.8 s; a first
scan of a large repository finishes over a few stops. auto debt baseline refuses to accept new items
unless --force, so the baseline only shrinks on its own; auto debt check exits 1 on new items for CI;
auto debt cleanup prints the largest items first with what to do, for a weekly cleanup session that ends
with auto debt baseline and one pull request a person merges. Only items on lines the change added or edited block; debt elsewhere means the
baseline is stale and only warns. The hook sees the change against HEAD, so debt an agent commits within
the same turn reaches it only through CI: run auto debt check there. Turn the ratchet off with AUTOPUS_DEBT_STOP=off, or hooks.debt_stop: false
once every auto that reads the config knows the key (an older binary refuses unknown keys).
Verification round (on by default). Once the build passes, or when no build toolchain covers the
changed files, the hook measures how much of the
change can alter what a user runs: changed code lines in product source files, against HEAD, in
any language the file-size limit counts (Go, Python, JavaScript/TypeScript, Rust, Java, Kotlin, Swift,
C/C++/C#, Ruby, PHP, shell, CSS), including those with no build toolchain for the gate to run.
Test files (by each language's own layout), lines that start a line comment, blank lines,
documentation, configuration, generated files (Code generated ... DO NOT EDIT. or the ADK's own
header) and harness directories (.autopus/, .claude/, .omp/ ...) do not count; neither do a mode
change, a pure rename or a line-ending conversion. A one-line edit counts as two lines (removed and
added). Size decides how deep the round goes: any counted behavior change gets at least the light
round, because a one-line logic edit can break a written policy as surely as a large one. A stop that
ends on an environment problem (a toolchain that could not run) or a test-first notice gets no round.
| Change | Round |
|---|---|
| Only tests, comments, docs, configuration or generated files | None; the session ends at green |
| 1 to 39 changed product code lines | Light: the review. One reviewer in the foreground; where the change models an external program or format (shell, CLI flags, git, file formats, protocols) it runs the real program on the same inputs and reports only reproduced findings. The agent adds scenario QA and the hunt only when the change touches a security or data-loss path or the user asked (the rule text says so; the hook message does not) |
| 40 or more lines, or a new (added or untracked) product source file | Full: the same review, then, only when the change touches something a user can run, a security or data-loss path, or the user asked: auto qa intent on the user's own request (or the covering SPEC), auto qa go <id> --auto --no-loop and auto qa exec --all on the uncommitted working tree, and the qa-explorer hunt |
Either round ends with the agent applying the confirmed findings, re-running the affected tests, and
summarizing what was checked. The agent waits for the reviewer in the same turn: a pilot lost findings
when the turn ended while the reviewer still ran. A change gets one independent review, and in Claude
Code the hook decides from the transcript, not the agent: it counts the reviews of the change under work
(since the last user turn or commit) and reads the last one's verdict (APPROVE or REQUEST_CHANGES),
reading only what the transcript gained since the last stop. The round then says to run the review, to
make the changes the review asked for first, or to skip the review because one already ran. Where the
transcript cannot be read (Codex, Antigravity) the round states the same policy in prose. A session gets
one round, so fixing the round's findings does not start another, with one exception: a session whose light round came early
(an interactive session growing a feature over several turns) is escalated once to the full round
when its change grows by another 40 product code lines or gains a product file. The tree a session last stops on after its round is
recorded, so a later session that only asks a question is not sent round on it; the next session
that changes product code gets a round over the whole uncommitted diff, which includes that work. If the hook cannot record the round, it skips it rather than block every stop.
The full round is the expensive one. In a small pilot on real upstream Go PRs (5 tasks run on both
arms, one run each), an earlier version of it multiplied cost about 14x on the four tasks plain
Claude Code already solved, with no change in pass rate; on a harder task it found and fixed three
confirmed robustness bugs that the hidden tests did not cover, at about 12x the cost. The light round
exists so a small edit is still checked against the request without that
cost. In Pilot C the independent review was the only step that changed results: most of the defects
it caught needed an external tool's semantics and were found by running that tool, while scenario QA
failed 3 of 3 runs and the hunt changed nothing, so both are now conditional. Turn the round off with
AUTOPUS_FOLLOWUP=off where that trade is not worth it.
The 40-line line between the two was checked against 600 recent merged PRs from three repositories. Moving it barely changes cost: at 40 lines 60% of PRs get the full round, at 150 lines 49%, about a 5-7% saving in round cost, because the reviewer both rounds share dominates it. Raising it would send 17-27% of feature PRs to the light round and skip the scenarios generated from the request, which is what the full round is for. PR size does not separate features from fixes well enough to justify that, so the line stays at 40.
Opting out.
| Scope | How |
|---|---|
| Don't register the hook | hooks.verify_stop: false in autopus.yaml, then auto update |
| Disable for one session or shell | AUTOPUS_VERIFY_STOP=off |
| Turn off only the credential check | hooks.secret_stop: false, or AUTOPUS_SECRET_STOP=off |
| Turn off only the version check | hooks.version_stop: false, or AUTOPUS_VERSION_STOP=off; allow N lines behind with hooks.version_stop: {max_major_behind: N} |
| Turn off only the verification round | AUTOPUS_FOLLOWUP=off (for example in the env block of .claude/settings.json) |
| Give the gate more time | hooks.verify_stop_budget: 15m (1m-30m, default 8m), then auto update: the Claude Code hook and the omp extension pass it as --budget, and their timeouts (budget + 90s, at least 600s) follow it. Claude Code reads hooks when a session starts, so it applies from the next session. Without --budget the gate only ever lowers its budget from the key. Older auto binaries reject the key, so upgrade every machine that loads the file first |
Running out of time. A suite that outlasts the budget with tests still finishing and none failed
does not block; the tree is recorded as unfinished, never as passed. A test, or a whole package, with
no progress for half of the final step's window is a suspected hang (a deadlock, a TestMain waiting
forever, or just a slow test: from outside they look the same). A suspected hang blocks once per tree,
naming the longest-idle tests first; stopping again on the same tree lets the session end with the
note and leaves the tree unverified, and any edit re-arms the block. When the slow test is one the
change edited, the changed tests run first and the final step gets about half the budget. Editing
--budget in the settings file by hand does not last: auto update rewrites the hook.
The Stop hook runs in Claude Code, in Codex (.codex/hooks.json: its Stop payload and
{"decision":"block"} reply are Claude Code's; it reports no background tasks, so SubagentStart/SubagentStop
hooks record running sub-agents and the gate waits for them, for at most two stops per sub-agent: Codex sends no SubagentStop for an interrupted one and no SubagentStart for a sub-agent's later turns), in Antigravity CLI (.agents/hooks.json: auto verify stop --dialect agy reads its camelCase payload, waits while fullyIdle is false, skips a run that ended on an error, a step limit or a cancel, and answers {"decision":"continue"}; it reads the final reply from agy's transcript for the TDD-exempt:/version-pin: lines, leaves a sub-agent's stop (no user input) to the parent's, and has no way to show a note that does not block, such as "not verified"; the language check does not run there), and, through its extension, in omp; set AUTOPUS_FOLLOWUP=off
in the environment omp starts in to turn the round off there. Codex runs a project hook only after you
trust it: approve it in /hooks after auto init, and again after an auto update that changes it. On Codex
the language check reads only the final reply and auto harness does not measure the session (its transcript is
not Claude Code's). Codex merges every .codex layer from the project root to the cwd, so a second ADK install
in a subdirectory runs the gate twice. On OpenCode, run /auto review
and /auto qa (or the platform's equivalent, below) yourself.
An agent checks a command classifier or a parser against the examples it thinks of, and its reviewer
does too. In a benchmark of this harness, both the harness arm and the plain agent kept missing the
same cases: a Bash classifier that refused a commit whose heredoc message said go test, and let
/usr/bin/time go test, auto qa exec --all or a line continuation through. Fed the 46,990 distinct
Bash commands this machine's sessions had run, the same code showed them at once: 2,617 refusals came
from a heredoc body alone.
auto qa replay --driver 'go run /tmp/driver.go' # Bash commands from this machine's sessions
auto qa replay --driver './replay.sh' --input requests.txt --base v1.4.0
The driver reads one JSON string input per line on stdin and prints one decision per input, in order
(AUTOPUS_REPLAY_TREE is base or head), in the current directory (or --project-dir) of each tree.
auto qa replay runs it in the work tree and in the files of the base commit (default: the merge-base
with the default remote branch; in a shallow clone without one, that branch's tip, said so), extracted
through a temporary index into a temporary directory, so no worktree, ref or index changes and every
tracked file is there. The default inputs are read from CLAUDE_CONFIG_DIR (else ~/.claude), newest
session first; past 200,000 the output says it read only the newest. --timeout (default 10m) covers
both runs and kills the driver's whole process group. It prints the inputs whose
decision changed, by transition (allow → deny, the 8 largest; --transitions) and by group: the
program a Bash command runs (past cd dir && and assignments), the first word of another input, or the
group the driver prints after a tab (deny\tsql; the whole line is compared, so a changed reason after the
tab is a change too). Examples are one line, with credential shapes masked
(AWS keys, JWTs, bearer tokens, passwords in URLs and flags) but not UUIDs or commit hashes. A driver that cannot
run at the base (the function is new) gives this tree's decisions by the same groups. A Go driver can
live outside the repository: go run /tmp/driver.go in the module resolves its imports. One that
imports an internal package cannot (Go's rule): pass it with --copy /tmp/driver.go and run
--driver 'go run ./_autopus_replay_driver'; the copy goes into both trees for the run and is removed after. The
verification round asks the reviewer to run it when a change classifies or parses inputs users or
sessions produce. The default inputs are the commands sessions ran in this repository and its worktrees (--all-projects
reads every project's); the examples it prints enter the session like any other tool output, so they
reach the model provider. The driver must call the changed code and never run the input.
/auto qa with no subcommand, or with a plain-language request, runs two phases.
User scenarios. The change is run the way its user would run it, against acceptance criteria
written from the user's request alone: auto qa intent (its questions come with a description
per option) or the covering SPEC, then auto qa go <id> --auto --no-loop and
auto qa exec --all while the change is uncommitted. On a clean, committed tree,
auto qa go <id> --auto runs the scenarios and fixes failures on its own loop branch.
Hunt. It works the way an AI playtester hunts game bugs: the qa-explorer agent reads the
code only to learn how to operate the product, then actually runs and drives it (CLI, server, UI,
library API) looking for failures the author did not think of. Besides bugs it looks for two
more kinds of finding:
policy_mismatch: behavior that breaks a product policy (SPEC, docs, --help, business rules)
or a project rule (CLAUDE.md, AGENTS.md, rules). The finding quotes the rule verbatim in
policy.source and policy.quote, and auto qa hunt verify checks that the quote is really
written in that file.inefficiency: the same result produced with more work than needed (duplicate calls, N+1
queries, needless rebuilds, a stated budget exceeded). The finding carries the number in
measure with the basis of its threshold.auto qa hunt verify rejects either kind without its premise. What cannot be quoted or measured
goes to .autopus/qa/hunt/observations.md as a note; it is not a bug and is not fixed
automatically.
.autopus/qa/hunt/findings/<id>/finding.json plus repro.sh.
repro.sh exits 1 while the bug is present and 0 once it is fixed.qa-explorer writes only under .autopus/qa/hunt/. It never edits product code, tests, or
config. The author and the checker stay separate.auto qa hunt verify re-runs every repro and classifies it:| Verdict | Meaning |
|---|---|
confirmed | The repro fails every run. This is a bug. |
flaky | The repro fails on some runs only. |
not_reproduced | The repro passes. Either it never was a bug, or it is fixed. |
broken_repro | The repro itself could not run correctly. |
Only confirmed findings count; the rest are reported as suspicions. The working agent
fixes each confirmed finding and re-runs auto qa hunt verify until it reports not_reproduced. It
never edits a repro to make it pass.
auto qa hunt verify # re-run every finding (2 runs each by default)
auto qa hunt verify --id <id> --runs 3 # one finding, more runs
auto qa hunt verify --json --fail-on-confirmed # CI: exit 1 when any bug is confirmed
Other flags: --dir (project root), --timeout (per repro run, default 2m).
The rest of auto qa (QAMESH journeys, auto qa run, auto qa release, auto qa report, and
so on) is still available for declared journeys and release evidence. See auto qa --help.
A defect that every check passed (tests, review, a SPEC) and a later real run exposed is an escape. The verification round records each one, and the project grows checks from them. A person decides every step that changes what verification enforces.
auto checklist record --pattern "publish-back follows a provider-writable symlink" \
--missed-by "unit tests with a stub provider" --when-path "internal/publish/**" \
--evidence-command ./repro.sh --evidence-before-exit 1 --evidence-after-exit 0
auto checklist propose # repeated on two commits, or reproduced → an observe-mode candidate
auto checklist refute --all # a provider other than the drafter tries to refute each candidate
auto checklist status # lessons, candidates, the approval queue, and check health
auto checklist approve CHK-001-3fa9c1 # a person: adds the check in observe mode (ids from before the suffix, CHK-001, still work)
auto checklist run # applies the checks whose diff condition matches
후보 조건 미충족 or 재현 실패.run reads checks from the merge-base tree, so a change cannot alter the checks that judge it.
A check applies only when the diff matches its when (path globs or added-line keywords; both
set means the keyword must be in a matched file).
auto checklist promote, an enforce check that flags exits 1.verify command becomes a criterion for the reviewer.status suggests promoting an observe check that flagged twice. It reports a check for retirement
after 50 applications without a flag (--retire-after), and retire keeps the file.The Claude Code Stop hook also measures where each session's time went, in the background and with
no model call: test waits, reviews, a change reviewed again with nothing fixed after, Stop hook
blocks by reason, and timeouts. Records live under .autopus/runtime/harness/.
auto harness report # time shares, waste patterns seen in 3+ sessions, and each approved rule's effect
auto harness status # candidates: the approval queue, then the rest by state, with model cost
auto harness approve HL-001 # a person: writes a temporary rule into .claude/rules/harness-lessons.md
auto harness encode HL-001 # how to turn the lesson into a check in this repository
auto harness encode HL-001 --layer lint --check 'sh scripts/lint-timers.sh' --repro "$p"
auto harness retire HL-001 # takes it back out
file:line findings, skipping paths outside the project,
fenced reproduction commands and re-review status tables. Findings in one area (the first two directories
of the path) in 3+ sessions make a review-area:<area> pattern. Its draft must name one recurring mistake
a lint rule, type check or test could catch, or answer NONE, which makes no candidate and waits like a
failed draft. Paths are resolved against the repository's worktrees and files, secrets in findings are redacted
when recorded, and a review-area lesson is never offered for retirement. Such a lesson is meant to go through
encode into a check.auto update neither writes nor prunes the rule file.encode runs the check
itself on the current tree (must pass), on a snapshot copy of it (must pass), and on the copy with a patch
that reproduces the mistake committed (must fail). The copy is a throwaway repository that borrows the
project's objects, so the current tree, index, worktree list, stash and hooks are untouched. It has no
gitignored files (node_modules, venv, build output), so a check that needs them must prepare them. A patch
that edits the script the check runs (directly, through an interpreter, or behind env, time, timeout and similar), or leaves the check unable to start, is refused; a patch that edits a
config file the check reads is not detected, so status shows the files each patch touched. Only that proof
takes the lesson out of the rule file; the record sits in the git directory next to the approval.
--layer text --reason keeps the text rule and records why no check fits; a later proof replaces it.AUTOPUS_HARNESS_FEEDBACK=off turns the loop off. Only Claude Code sessions are measured: it is
the platform whose Stop hook hands over the transcript.Run these in your coding agent's chat.
| Route | What it does |
|---|---|
/auto review | Reviews the changed code against TRUST 5 (Tested, Readable, Unified, Secured, Trackable), with the project's own build, test, and lint commands as evidence. Can fan out to multiple providers. |
/auto qa | QA bug hunt by default; QAMESH for declared journeys and release evidence. |
/auto secure | Security hunt: auto secure scan --json for scanner leads, a short threat model of the changed scope, then concrete attacks against your own local or staging target. Only findings whose repro script auto qa hunt verify confirms are reported; the rest go to a separate "not confirmed" list. --multi adds auto orchestra secure; a path narrows the scope. |
/auto verify | Frontend UX verification: Playwright screenshots plus visual analysis of the changed UI. |
/auto test | Runs the E2E scenarios in .autopus/project/scenarios.md through auto test run. |
/auto sync | Reads the diff and updates only the docs it made stale (README, ARCHITECTURE, CHANGELOG, docs/, .autopus/project/*.md), then checks that the commands, flags, and paths those docs name exist. No SPEC needed. |
/auto update | Refreshes the generated harness files. |
/auto doctor | Checks the installed platform wiring. |
/auto browse | Alias for the browser-automation skill. |
Platform syntax:
/auto <route>/auto <route> or /auto-<route>$codex-auto-<route>, or @auto <route> after installing the generated local plugin from
.agents/plugins/marketplace.json| Kind | Installed |
|---|---|
| Agents (4) | reviewer, qa-explorer, frontend-specialist, ux-validator |
| Rules (4) | language-policy, lore-commit, file-size-limit, autonomy |
| Skills (11, +2) | review, verification, qa-hunt, secure-hunt, stack-freshness, qa-autopilot, frontend-verify, browser-automation, playwright-cli, testing-strategy, lore-commit; with machine_ops on, also disk-triage and ci-optimize |
| Routes | review, qa, secure, verify, test, sync, update, doctor, plus the browse alias |
| Hooks | Claude Code Stop hook auto verify stop; a Lore commit-msg git hook |
The autonomy rule tells the agent to carry work through without asking permission for each step.
When a decision really belongs to you, it must ask a multiple-choice question (in Claude Code, the
AskUserQuestion tool with the recommended option first), never an open question. Destructive or
outward-facing actions (deleting data, force-pushing, deploying, sending messages) still need your
confirmation.
On Claude Code, lore-commit is loaded as a conditional rule when the agent runs a shell command
rather than as an always-on rule.
The commit-msg hook checks the Lore format: a typed, scoped subject
(feat, fix, refactor, test, docs, chore, perf, merge, revert), the
🐙 Autopus <noreply@autopus.co> sign-off, the trailers named in lore.required_trailers
(default Constraint), and none of the trailers in lore.forbidden_trailers
(default Co-Authored-By). auto check --lore runs the same check.
/auto review can send the review to several provider CLIs through auto orchestra review, with
consensus or debate strategies and a judge. Providers are configured under orchestra.providers;
a new config lists claude, codex, and gemini (the agy binary), and a provider can also run
through OMP (backend: omp). Change the review model per provider with
auto quality review model <provider> <model>.
One autopus.yaml generates native files for each supported CLI that auto init detects.
| Platform | Generated surface |
|---|---|
| Claude Code | .claude/agents/autopus/, .claude/rules/autopus/, .claude/skills/<name>/SKILL.md, .claude/hooks/autopus/, .claude/settings.json (Stop hook), CLAUDE.md |
| Codex | .codex/skills/codex-<name>/SKILL.md, .codex/agents/, .codex/hooks.json, .codex/config.toml, .agents/plugins/marketplace.json, .autopus/plugins/auto/, AGENTS.md |
| Antigravity CLI | .agents/plugins/autopus/, .agents/hooks.json, plus .gemini/ / GEMINI.md compatibility files |
| OpenCode | .opencode/agents/, .opencode/commands/, .opencode/rules/, .opencode/plugins/, .agents/skills/, AGENTS.md, opencode.json |
| Oh My Pi (OMP) | .omp/agents/, .omp/rules/autopus-*.md, .omp/skills/<name>/SKILL.md, .omp/commands/ |
auto platform add|remove|list manages the platform list. auto doctor checks that the generated
files are wired up. Antigravity also keeps the rea-mcp-guard rule for the optional REA
reverse-engineering MCP, which auto init registers only with --rea (or a Yes in the wizard) when Node fits.
Paste the one-liner from the top of this page into your agent's chat, or run it in a terminal. The
installer installs the auto CLI plus an autopus alias, checks required tools, and installs
missing essentials such as git and the GitHub CLI. It does not run auto init.
# Homebrew (macOS)
brew install --cask Insajin/autopus/auto
# go install (Go 1.26+)
go install github.com/insajin/autopus-adk/cmd/auto@latest
# From source
git clone https://github.com/autopus-ai/autopus-adk.git
cd autopus-adk && make build && make install
make install copies into $(go env GOPATH)/bin; pass INSTALL_DIR=... for another destination.
Installer environment variables: INSTALL_DIR (default /usr/local/bin), VERSION (default latest).
On Homebrew 6 or later, an existing install may need explicit trust for the ADK cask. If Homebrew
reports Refusing to load cask insajin/autopus/auto from untrusted tap, run
brew trust --cask insajin/autopus/auto. auto doctor reports this as
doctor.homebrew.tap_trust.
Then initialize a project:
cd your-project
auto init # interactive; --yes for defaults, --platforms claude-code,codex to choose
auto doctor # check the installed wiring
Useful auto init flags: --yes, --platforms, --project, --dir, --no-review-gate,
--statusline-mode keep|merge|replace, --rea / --no-rea.
auto update --self # update the auto binary (publisher signature + SHA256 verified)
auto update # regenerate this project's harness files from the installed binary
auto update --preview (also --plan, --dry-run) lists what would change without writing.
Your content outside the AUTOPUS:BEGIN / AUTOPUS:END markers in files like CLAUDE.md and
AGENTS.md is kept. Other generated files are overwritten, with the originals backed up under
.autopus/backup/<timestamp>/. --workspace also updates nested Git repos in a meta workspace.
From v0.51.0 the harness installs only the verification surface described above. Run
auto update --self && auto update in each project:
auto update prunes the retired surface recorded in each platform manifest: the routes plan,
go, fix, idea, setup, status, goal, map, why, secure, dev, canary, and
reverse (secure later returned as the security hunt route); the 14 retired agents (planner, executor, tester, architect, spec-writer and the rest);
the retired skills and rules (such as branding, subagent-delegation, worktree-safety); and
Claude .claude/workflows/*.js.auto platform remove <platform>.methodology.mode: none. An older config with tdd is reported as a
notice by auto doctor and auto check, not as a failure.auto pipeline, auto fix, auto experiment, auto learn, and
others) no longer appear in auto --help; a later release removes them.Everything lives in autopus.yaml. A trimmed example with keys that matter for verification:
project_name: my-project
platforms: [claude-code, codex]
language:
comments: en # code comments
commits: en # commit messages
ai_responses: en # agent replies
architecture:
max_file_lines: 300 # optional ceiling for file-size-limit; unset or 0 is advisory
hooks:
verify_stop: true # Claude Code Stop hook (default on when unset)
verify_stop_budget: 8m # Stop hook verification budget, 1m-30m (default 8m when unset)
secret_stop: true # credential check inside the Stop hook (default on when unset)
version_stop: true # version check inside the Stop hook; or {max_major_behind: N} (default on, N=0)
pre_commit_lore: true # Lore commit-msg hook
pre_commit_arch: true
lore:
enabled: true
required_trailers: [Constraint]
forbidden_trailers: [Co-Authored-By] # default; [] allows them
orchestra: # providers for multi-provider review
enabled: true
default_strategy: consensus
judge: claude
providers:
claude:
binary: claude
codex:
binary: codex
auto config --help lists the config subcommands, and auto quality picks quality presets and
review models.
Presets, per-agent models, OMP model pins, review models, and the REA MCP flags are covered in docs/quality.md.
auto secure scan runs the security scanners you already have and prints one summary:
auto secure scan # current directory
auto secure scan --dir ./service --json
auto secure scan --staged # gitleaks: staged changes only
auto secure scan --log-opts origin/main..HEAD --fail-on critical
It detects the project's ecosystems from files in --dir and runs each scanner that is installed:
| Scanner | When | Command |
|---|---|---|
| gitleaks | always | gitleaks git in a git work tree, gitleaks dir otherwise (detect/protect on releases before 8.19) |
| govulncheck | go.mod | govulncheck -format json ./... |
| npm / pnpm / yarn | package.json and its lockfile | npm audit --json, pnpm audit --json, yarn audit --json, yarn npm audit --json (Berry) |
| cargo audit | Cargo.lock | cargo audit --json |
| pip-audit | requirements*.txt | pip-audit -f json --no-deps --disable-pip -r ... |
A scanner that is not installed, or a project without a lockfile or requirements file, is noted and
skipped. Nothing is installed: pip-audit checks the pins as written instead of building an environment.
The audit commands and govulncheck query their advisory databases over the network. Each scanner runs
with the project as its working directory and a time limit (--timeout, default 5m).
Findings share one shape (tool, kind secret or vuln, id, severity, package/file,
location, fixed_version, summary). Secret values are never printed: gitleaks runs with
--redact, the parser does not keep its Secret or Match fields, and a secret shows only as
file:line, rule, and fingerprint (the form .gitleaksignore takes).
Exit status: 1 when a finding reaches --fail-on (default high: any secret, or a vulnerability rated
high or critical; govulncheck, cargo audit, and pip-audit do not grade, so their findings count as high),
2 when a scanner failed and nothing else did, 0 otherwise, including when no scanner is installed.
--fail-on takes none, secret, critical, high, medium, or low.
auto deps asks the registries instead of the model's memory:
auto deps latest npm:react # 19.x, with the source URL and fetch time
auto deps latest image:postgres # Docker Hub official image, numeric release tags only
auto deps latest toolchain:node # current and active LTS
auto deps latest django # a bare name is resolved through the project's manifests
auto deps outdated # direct deps, toolchain pins, and images vs latest stable
auto deps outdated --dir ./service --json
| Ecosystem | Source |
|---|---|
go: modules | GOPROXY (default proxy.golang.org) /@latest |
npm: | dist-tags.latest from registry.npmjs.org, or the registry a simple .npmrc names (global or per scope) |
pypi: | pypi.org JSON API |
crates: | crates.io API (max_stable_version) |
image: | Docker Hub tags; node, golang, and python images use the toolchain feeds below |
toolchain:go | go.dev/dl |
toolchain:node | nodejs.org/dist/index.json; engines, .nvmrc, and node: images are compared with the active LTS |
toolchain:python | endoflife.date (release cycles) |
Release cooldown: for libraries (npm:, pypi:, crates:, go:), "latest" is the newest stable release
that has been out for 7 days, since a malicious release is usually found and pulled within days. auto deps latest prints that settled release first and, when a newer one is still inside the cooldown, a newest line
with its date; with no settled release it says when the newest settles. Release times come from the npm
document's time, PyPI's upload times, crates.io's versions and the Go proxy's .info; images and toolchains
are not covered. The Stop hook blocks once on a newly pinned library release inside the cooldown, naming the
settled one (version-pin: <name> <reason> lets a security fix through), and judges "behind" against the
settled release, so choosing it is never stale. A release the registry withdrew (unpublished or deprecated on npm, yanked on PyPI or crates.io) is never
recommended, and pinning one warns. A spec with an exclusive upper bound (numpy<2) pins no release and is
not judged; ^19.3.1, ~=19.3.1 or >=19.3.1 are judged by the release they name. Without a release's time
nothing is called settled: unknown release times only warn, and an answer without them is not cached. AUTOPUS_DEPS_COOLDOWN_DAYS
sets the days (0 turns it off; an unreadable value warns and keeps 7). The idea comes from npm's
min-release-age.
Pre-releases are never "latest". outdated classifies each pin as current, minor-behind,
major-behind (N) (N whole release lines; for Go and Python toolchains and 0.x packages a minor is a line),
unknown, or skipped, and always exits 0. Privacy: a Go module matching GOPRIVATE, GONOPROXY, or
GONOSUMDB (environment or go env -w) is never sent to a proxy, GOPROXY=off/direct means unknown,
a PyPI lookup is skipped when PIP_INDEX_URL points at a private index, and image references on any
registry other than Docker Hub, digests, and variables are skipped. Requests time out after 5s each and run
four at a time. Answers are cached for 24h in $XDG_STATE_HOME/autopus/deps (or
~/.local/state/autopus/deps; AUTOPUS_DEPS_CACHE_DIR overrides), and AUTOPUS_DEPS_OFFLINE=1 answers
from the cache only. The stack-freshness skill tells the agent when to look up and how to pin on purpose.
machine_ops)A project auto init creates writes machine_ops: false: it installs the verification core only. Set
machine_ops: true on a machine many agent sessions share (a CI host, a shared workstation) to add the
disk gate, the automatic disk reclaim, and the disk-triage and ci-optimize skills. A project whose
autopus.yaml has no machine_ops key (written before it existed) keeps them all, as before. An explicit
hooks.disk_gate or disk.reclaim.auto wins either way, and skills.compiler.bundles: [ops] brings the two
skills back alone. The auto disk commands work in every project. The CPU gate (AUTOPUS_CPU_GATE=on) acts through the disk gate's hook, so with machine_ops off it also needs hooks.cpu_gate: true. Older auto binaries reject the key, so
upgrade every machine that reads the file first.
Agents build, test, install packages, and create worktrees, and several sessions on one machine can move
free space by tens of GiB in an hour. When the disk fills, builds fail with no space left on device,
which looks like a code failure. auto disk shows what is growing, keeps heavy commands from starting
while space is short, and cleans up finished work as you go.
auto disk status # free space, every consumer, and what grew in the last hour
auto disk check --need 8 # exit 3 when 8 GiB (or disk.min_free_gb) is not free
auto disk reclaim # dry run: what reclaim would remove
auto disk reclaim --apply # remove it
auto disk trim --apply # drop idle Go build cache entries
auto disk lease --need 8 -- go test ./... # run a heavy step under a machine-wide reservation
auto disk log # what trims, reclaims, alerts, and the gate did
What status measures. The Go build cache and work dirs, linked worktrees (with their node_modules
and Cargo target), session scratchpads (and files of 1 GiB or more in them), and whichever of these
exist on your machine: the Go module cache, npm, pnpm, yarn, bun, the Cargo registry, pip, uv, Gradle,
Maven, Xcode DerivedData and simulators (macOS), Docker Desktop, colima, lima, and podman VM disks, and
/var/lib/docker when readable (Linux). VM disk images are sparse, so their allocated size is what
counts. Each walk has a time budget; a cut walk is shown as a lower bound and kept out of the growth
table. Add machine-specific roots, such as a CI runner's work directory, under
disk.consumers.extra_roots; one that cannot be read is reported unreadable, never as zero:
disk:
min_free_gb: 10 # the floor the alert, the gate, and leases use
consumers:
extra_roots: [/path/to/runner/_work]
Every status, auto disk check, and per-prompt alert adds a sample to a small ring buffer in the disk
state dir ($XDG_STATE_HOME/autopus/disk or ~/.local/state/autopus/disk). Status then ranks the
consumers by growth, for example colima +38.0 GiB in 52m, and the Claude Code low-space alert names the
top grower.
The disk gate (Claude Code). A PreToolUse hook, auto disk gate, makes one statfs per Bash call. Below
disk.min_free_gb it denies builds, tests, and installs of go, cargo, npm, pnpm, yarn, bun, pip, uv,
poetry, Gradle, and Maven, docker and podman builds and compose up, xcodebuild, and git worktree add,
and tells the agent to pause, run auto disk status, and reclaim or wait. Subagent tool calls are gated
too. Every auto command passes, so auto disk lease -- <command> is how heavy work runs anyway. make
is not matched by default; add heavy targets with hooks.disk_gate.extra_commands: ["make release"].
Turn the gate off with hooks.disk_gate: false or AUTOPUS_DISK_GATE=off. OMP has no pre-tool hook, and
the other platforms do not register the gate yet; run auto disk check before heavy steps there.
On a machine several sessions share, AUTOPUS_CPU_GATE=on (off by default) makes the same hook gate on
CPU too (the hook is there when the disk gate is, by default with machine_ops on, or with hooks.cpu_gate: true). While a CPU lease runs or waits and the lease's own admission check would hold a waiter (the
1-minute load plus recent grants the average does not show yet, above disk.lease.max_load_ratio × the
logical CPUs), it denies commands that load the CPU outside a CPU lease and points the agent at
auto disk lease --cpu N -- <command>. With no CPU lease and no waiter it allows: that load comes from
outside the lease system, and queueing cannot reduce it. That covers compiles and tests, linters, type
checkers, and test runners (eslint, vitest, jest, tsc, pytest, mypy, playwright test, go vet,
golangci-lint, cargo clippy and nextest, turbo and lint/typecheck/test scripts), the auto steps that run
suites (auto qa exec|run|loop|mutate, auto checklist run, auto workflow gate), and auto disk lease
without --cpu; package installs, npx playwright install, and git worktree add pass, and a
here-document body is data, not a command, unless a local shell reads it as its script (bash <<EOF,
cat <<EOF | sh). Help flags (auto qa exec --help) and lookups (command -v pytest, which tsc) pass.
In a subdirectory the gate and auto disk read the nearest autopus.yaml above it. A leased step can queue past the Bash tool's 2-minute default
timeout, so run it in the background or with a long timeout; exit 3 means the wait expired.
Prefer the environment variable, set where every session inherits it: the config key hooks.cpu_gate: true
works too (the variable wins when set), but an auto binary older than the key refuses an autopus.yaml
that carries it, so set the key only once every auto that reads the file is new enough. The gate runs
inside the disk gate hook, so hooks.disk_gate: false without hooks.cpu_gate leaves no hook for the
variable to act in. The config is read from the nearest autopus.yaml at or above the session's cwd.
AUTOPUS_DISK_GATE=off turns both checks off.
Reclaim. Everything is a dry run unless --apply is given, symlinks are never followed, and anything
that changed since the scan is skipped. auto disk reclaim removes:
origin/HEAD or origin/main),
clean with no untracked files, idle beyond disk.reclaim.worktree_idle_minutes (default 360), and not
the working directory of any running process. git worktree remove runs without --force, which still
deletes git-ignored files, so such a worktree is kept while it holds any ignored file outside the
regenerable build directories below (a .env, a local database). The branch is kept.claude agent agent-<id> (pid N start T), when they are clean and
merged: right away when the locking process is gone (pid and start time checked), or, while it runs,
once the worktree is idle and holds no process. They are unlocked, then removed. A dirty or unmerged
worktree is never removed.node_modules, .next, dist (beside a package.json) and Cargo target directories that git
ignores, inside idle worktrees.--include-large-files, because they may be backups.Automatic cleanup (Claude Code). The per-turn Stop hook (auto verify stop) starts
auto disk reclaim --auto --apply in the background at most once per
disk.reclaim.auto_interval_minutes (default 30) across all your sessions. It removes only merged, clean
worktrees and idle regenerable directories, never scratchpads or large files, and never delays the turn.
Turn it off with disk.reclaim.auto: false or AUTOPUS_DISK_AUTO_RECLAIM=off. The disk-triage skill
(core, installed by default) walks an agent through the same steps and tells it what to ask you before deleting:
other sessions' work, backups, VM disks, and caches other builds are using.
An agent that waits with until ! pgrep -f "job"; do sleep 10; done never finishes: pgrep -f matches the
waiting shell's own command line. A until grep -q DONE log loop with no deadline waits forever when the text
never appears. Each such shell costs little, but they pile up across sessions. The always-on autonomy rule tells
agents to give every loop a deadline and to wait on a PID instead. auto proc reap cleans up the ones that exist:
auto proc reap # dry run: idle polling shells older than 2h, with the reason
auto proc reap --older-than 30m --json
auto proc reap --apply # SIGTERM each shell and its sleep child, SIGKILL after --grace (3s)
auto proc reap --session-pid <pid> # only descendants of one session
A candidate is a sh/bash/zsh/dash/ksh process of the current user running an until/while + sleep loop
whose only live descendants are sleep. The reason is self-matching pgrep or no deadline, waiting <age>.
Other users' processes, shells running anything but sleep (a build or test), and the command's own ancestors
are never touched.
auto ci report measures a GitHub Actions repository before anything is changed. It reads through your
own gh login (it fails with what to do when gh is missing or logged out), uses only the jobs API
timestamps (filter=all, so reruns count; the retired /timing endpoint is not used), and never writes.
auto ci report # origin repo, last 14 days, up to 200 runs sampled evenly
auto ci report --repo owner/name --since 30d --workflow ci.yaml --json
It ranks findings by severity, then minutes per day, each with its numbers: jobs that wait longer for a
runner than they run, the most expensive jobs (median and p90), minutes lost to failed, cancelled, and
rerun attempts, push runs whose commit tree a successful PR run of the same workflow already tested, PR
runs that kept running after a newer push, and self-hosted runners that are saturated or unevenly
loaded. A lint of the local .github/workflows adds jobs without timeout-minutes, PR workflows without
a cancelling concurrency group, groups that would also cancel push, release, or workflow_call runs,
public-repo PR jobs on self-hosted runners that fork PRs can reach, pull_request_target checking out the
PR head, and release or publish jobs sharing a runs-on label with PR lanes. --json carries every table.
Requests are bounded (--max-requests, default 1000; at most 4 at a time) and cached for the run only.
When runs exceed --limit-runs, totals are scaled by the reported factor.
CPU leases for shared hosts. GitHub Actions has no job priority, so on a self-hosted machine with
several runners the real problem is contention: every job sets GOMAXPROCS and go test -p to the full
core count, and macOS has no cgroups to stop it. auto disk lease --cpu N reserves N of the machine's CPU
slots for one command, on top of (or instead of) the disk reservation. Slots default to the logical CPU
count (disk.lease.cpu_slots, or AUTOPUS_LEASE_CPU_SLOTS per machine); a larger N is clamped. This is
admission control for a shared host: runners still start jobs in parallel, and only the heavy phases wait
to be admitted by priority. --priority interactive|ci|background sets the class (default ci; inside
GitHub Actions it follows GITHUB_EVENT_NAME: pull_request, pull_request_target, and merge_group are
interactive, schedule is background, everything else ci; the flag wins). The highest class goes first,
first in, first out within a class, and a waiter rises one class every disk.lease.aging_minutes
(default 10, 0 turns aging off) so background work cannot starve. Running holders are never preempted.
--wait bounds the wait and exit 3 means it ran out. A holder or waiter that dies frees its place. The
command runs with AUTOPUS_LEASE_CPUS=N, and GOMAXPROCS=N unless you set your own. auto disk status
lists the holders and the queue in grant order, with each waiter's class, aged class, and wait.
Slots alone cannot tell an idle machine from a busy one, and other sessions and runners load it without
taking a lease. So heavy work runs in parallel when the machine has room, and is admitted by priority
otherwise: the head waiter also waits while the 1-minute load average is above
disk.lease.max_load_ratio × logical CPUs (default 0.85), counting grants the average does not show yet
so a burst of admissions cannot overshoot; while available memory minus the --mem reservations of
running leases is below its own --mem SIZE (such as 8G, default none) plus disk.lease.min_free_mem_gb
(default 8, capped at an eighth of total memory while unset, so a 16 GiB machine keeps 2 GiB); and on macOS while the kernel reports critical memory pressure. Readings are taken without
spawning a process (sysctl on macOS, /proc on Linux) and re-checked about every 2 seconds;
AUTOPUS_LEASE_MAX_LOAD_RATIO and AUTOPUS_LEASE_MIN_FREE_MEM_GB override the keys per machine. auto disk status names what holds the head waiter (waiting: load 22.1 > 20.4, waiting: mem 6.2 GiB < 8+4 GiB).
A --mem that could never fit beside the floor fails at once. When no lease runs and load alone has held
the head waiter for disk.lease.max_load_wait_minutes (default 10), it starts anyway, one at a time, and
the start is logged (lease_forced); give such a lease a --wait longer than that. Windows has no
lease, so this degrades to running the command unleased.
# .github/workflows/ci.yaml (self-hosted job)
- name: Test
run: auto disk lease --cpu 8 --mem 8G --wait 30m --label test -- sh -c 'go test -p "$AUTOPUS_LEASE_CPUS" ./...'
Migrating from a shell wrapper that serialises heavy jobs with a single lock (flock around every build):
replace the wrapper with auto disk lease --cpu N --mem SIZE --priority … -- cmd. The single lock runs one
job at a time however idle the machine is; the lease runs as many as the slots, load, and memory allow.
Leases live in your own state dir by default, so they only coordinate one user's jobs. When several
runner accounts share a machine, point them all at one directory with AUTOPUS_LEASE_DIR (for example in
each runner's .env) or disk.lease.dir. A missing directory is created sticky and world-writable, like
/tmp; an existing one that group or others can write must be sticky (chmod +t). Where no lease can be
held (Windows), --cpu alone warns and runs the command with the same environment.
Signed releases. Every release since v0.50.73 ships checksums.txt and an ECDSA P-256
publisher envelope checksums.txt.signatures. The POSIX installer, the Windows installer, and
auto update --self authenticate the checksum manifest before downloading or extracting, then
verify the archive's SHA256. Missing or untrusted signing data fails closed; there is no
checksum-only fallback.
Inspect before you install. Download install.sh, read it, then run it:
curl -sSfL https://raw.githubusercontent.com/autopus-ai/autopus-adk/main/install.sh -o install.sh
less install.sh && sh install.sh
Trust boundary. The one-line installers are served from the repository's main branch.
Publisher verification protects release assets, but it does not authenticate the installer
bootstrap itself. A compromise of main could replace the verifier.
QA writes stay contained. qa-explorer writes only under .autopus/qa/hunt/, and repro
scripts run on your machine with your permissions, so read a repro before running it by hand.
No API keys. Autopus drives the provider CLIs you already have; it does not hold your
provider API keys. Network calls happen only in explicit commands such as auto update --self,
auto orchestra, multi-provider review, auto search, and auto connect.
Autopus-ADK is open source under the MIT license. PRs are welcome.
make test # tests with race detection
make lint # go vet
make coverage # coverage report
CI splits the internal/cli tests into name-hash shards. A failing job named like
test-cli (3/5) can be re-run locally with make test-cli-shard SHARD=3/5.
Commits use the Lore format described above. See CHANGELOG.md for release notes.
🐙 Autopus — verify what the agent built by running it.
GitHub checked 112h ago - refresh overdue. Recently viewed repositories target hourly refresh.