Repo · Pre-alpha
Autometta
Token-maxing is the gateway drug to AI psychosis. Autometta is a lightweight YOLO pattern library for headless agent orchestration on a single machine without constant human oversight. Worker agents code against requirement cards, verified by cross-family agents: Codex verifies Claude, and vice versa.
Autometta turns requirement cards into implemented, independently checked commits. It runs Claude Code and Codex CLI as worker and verifier pairs on one laptop. A cron-driven tick handles dispatch, budgets and recovery. The human writes the cards and takes the decisions the contract cannot.
The interesting engineering problem is not getting an agent to write code. It is what happens after the agent says it is done. Autometta separates implementation from acceptance, keeps failed attempts, and records who wrote, who checked and who integrated every change. You read the brief, the checks and the commit, not a chat summary.
How it works · How it learns · The bets · How it got here · What it taught us · Evidence and limits · Get started · Documentation

An earlier fleet run. The current dashboard adds repository selection, stage-card click-through and separate views of per-role usage and the shared subscription allowance. See the dashboard guide.
Why bother
Faster code generation does not shrink the work. It moves it to specifying, checking and integrating. Autometta makes those three jobs explicit before anything is dispatched.
- Define done first. Each card names its deliverables, constraints, acceptance criteria, worker and verifier. The acceptance test can be frozen with a digest, so the worker cannot rewrite the test to fit its output.
- Separate delivery from approval. The worker's completion envelope triggers verification. A verifier from the other model family runs the criteria outside the worker's sandbox. A worker cannot approve its own change.
- Bound the autonomy. Budget files, quota admission and liveness checks decide when the loop stops. Failed work is kept for inspection. Anything the tick cannot decide becomes an escalation for a human.
- Leave a trail. Stage cards, frozen assertions, verifier artefacts and role-attributed commit trailers connect intent to code. Cost logs and first-attempt rates show where the process wastes effort.
If you run engineering teams, this is what delegated AI delivery looks like when it has to stop on its own and explain itself afterwards. If you are an engineer, it is bash, Markdown, JSON, YAML and git, with no hosted orchestration dependency.
How it works
%%{init: {"flowchart": {"curve": "basis", "nodeSpacing": 36, "rankSpacing": 56, "padding": 14, "wrappingWidth": 320}}}%%
flowchart LR
classDef store fill:#e9e9ec,stroke:#55585e,stroke-width:1.5px,color:#15171a
classDef op fill:#dbe4f2,stroke:#3b5b8a,stroke-width:1.5px,color:#13213a
classDef worker fill:#e4ecda,stroke:#5e7a3a,stroke-width:1.5px,color:#1e2b11
classDef verifier fill:#f4e7cf,stroke:#9a6b1f,stroke-width:1.5px,color:#3a2808
classDef pass fill:#d4ead8,stroke:#2f7a46,stroke-width:2px,color:#0f3b1d
classDef fail fill:#f2d9d7,stroke:#a3352e,stroke-width:2px,color:#4a1210
STATE[("git state store<br/>state.yaml · budget.json")]:::store
CARD["Stage card<br/>scope · acceptance · budget"]:::op
subgraph TICK["Tick · cron or launchd · read state, one transition, exit"]
direction LR
W["Worker · family A<br/>sandboxed run worktree"]:::worker
ENV["Completion<br/>envelope"]:::worker
V["Verifier · family B<br/>acceptance outside the sandbox"]:::verifier
W --> ENV --> V
end
LAND["PASS<br/>commit with role trailers<br/>land or await integration"]:::pass
KEEP["FAIL<br/>preserve the attempt<br/>escalate to the operator"]:::fail
STATE --> CARD --> W
V --> LAND
V --> KEEP
The card is the brief for both roles. The worker implements inside its declared permissions and returns a structured envelope. The verifier checks the tree against the card and its frozen assertions. The orchestrator owns the commit and the decision to integrate.
The automated layer is a short-lived tick run by macOS launchd or Linux cron. It reads state, advances whatever is eligible, records the result and exits. Two adjacent stages may overlap when their declared path claims are disjoint; verification and landing stay ordered. A stage that depends on earlier code waits until that code is on its dispatch base.
A verifier PASS is not the same as integration. If a run branch cannot land cleanly the work waits as awaiting integration for the operator. Mechanical recovery is the tick's job. Decisions go to the operator's orchestration chat through lifecycle hooks, with optional idle wake-ups that are batched and rate-limited. There is no scheduled controller agent; that experiment is covered below.
How it learns
A run that goes wrong usually says something about the harness, not only about the card. Those lessons used to sit in prose incident logs, where nothing could list them or tell which had been acted on. Since November 2026 they go through a loop of their own, built from the same parts as everything else.
%%{init: {"flowchart": {"curve": "basis", "nodeSpacing": 30, "rankSpacing": 44, "padding": 12, "wrappingWidth": 240}}}%%
flowchart LR
classDef store fill:#e9e9ec,stroke:#55585e,stroke-width:1.5px,color:#15171a
classDef op fill:#dbe4f2,stroke:#3b5b8a,stroke-width:1.5px,color:#13213a
classDef worker fill:#e4ecda,stroke:#5e7a3a,stroke-width:1.5px,color:#1e2b11
classDef pass fill:#d4ead8,stroke:#2f7a46,stroke-width:2px,color:#0f3b1d
RUN[("Runs<br/>halts · failed attempts · workarounds")]:::store
PROP["Proposal<br/>one ledger line, with evidence"]:::op
REVIEW["Weekly review<br/>the operator decides"]:::op
CARD["Stage card<br/>frozen test, red first"]:::op
PAIR["Worker and verifier<br/>opposite families"]:::worker
LAND["Landed<br/>proposal closed against the commit"]:::pass
RUN --> PROP --> REVIEW --> CARD --> PAIR --> LAND
LAND -.-> RUN
- Record. While a run is in flight, any orchestration chat that meets a halt, a harness-caused failure, a workaround or a check that lied writes one line to the proposals ledger, citing evidence a reviewer can open. A verifier that notices a harness defect flags it in its report and the chat lifts it across. Recording is one shell command and no model turn. Nothing acts on a proposal when it is written.
- Review. Once a week the operator opens a chat and works the open items: merge duplicates into one cause, check whether the mechanism recurred, decide. A proposal is a note to that review, never authority to change anything. Only an approval recorded with the operator's own words lets one become a card.
- Run. An approved change is a stage card like any other: a contract test frozen before dispatch and proven red, a worker in one family, a verifier in the other. When it lands, the proposal is closed against the commit.
The harness is not allowed to edit itself. It writes down what it noticed, a human chooses, and the change then has to pass the same gate as any other work.
The ledger opened on 2026-11-08. Two weeks in, on 2026-11-22:
| Proposals | Count |
|---|---|
| Recorded | 91 |
| Merged into another proposal as the same cause | 11 |
| Landed | 13: nine through seven stage cards, four as direct fixes the operator approved in chat |
| Rejected | 0 |
| Still open | 67 |
Two approval rounds have gone all the way round. On 18 November six proposals became cards 175 to 178 and all four had landed within two hours. On 22 November three more became cards 179 to 181 and landed in a little over an hour. They fixed things the loop had got wrong about itself: usage from an interrupted dispatch that went uncounted, a verifier's finish time taken from the verifier's own clock, a card's explicit serial flag ignored once it also declared path claims, budget headroom that nobody checked before queueing a batch.
It was not clean. Five of the seven cards passed verification at the first attempt. Card 177 was rejected once by its verifier and card 180 twice before it landed on the third attempt. Another harness card from the same week, 183, reached the three-attempt limit with three worker passes and three independent rejections, and is parked with the work preserved. With 67 items undecided, recording is running well ahead of review, and two weeks is too short to say whether the fixed mechanisms stay fixed.
The ledger file stays in the private working repo. The schema, the command, the recording and review skills and every resulting card and commit are public, and each card names the proposal it answers. The learning log has the design, including why there is no automatic probe step.
The bets
Made early, on purpose, and unchanged since.
| Bet | Why, and what it costs |
|---|---|
| Git and files as the state store | Cards, run branches, state snapshots and commit trailers are readable with ordinary tools. In exchange, file integrity, locking and worktree ownership all need explicit handling. |
| A contract before a scheduler | The seven-step dispatch protocol works by hand. The loop automates the same boundaries rather than inventing a second delivery process. |
| Cross-family verification | Claude checks Codex, or Codex checks Claude. Authorship and judgement are separated. It is not a guarantee against a bad requirement or an error both models share. |
| The sandbox is the role boundary | Codex workspace-write limits worker permissions. Worker self-checks do not replace independent acceptance; checks needing wider access require an explicitly equipped verifier seat. |
| Cron plus tick, not a daemon | No resident model is paid to poll a queue. Scheduling latency and a laptop that has to stay awake are the price of a single-machine design. |
| A budget file, not retries | The loop halts or escalates rather than backing off. Caps are enforced per dispatched process, so one dispatch of overshoot is the floor. |
| Explicit billing routes | Subscription, metered API and free local routes are chosen per repo. Every dispatch sanitises inherited credentials, so a stray key cannot silently move you to API billing. |
The dispatch contract, tick-loop design and lessons carry the reasoning and the failure modes behind each row.
How it got here
Autometta did not start from a blank page. It packages two earlier projects: a dispatch contract from a fractal-rendering side project (the stage card, the acceptance command, the headless gotchas) and the cron tick, budget file and cross-family verification protocol from an agentic RAG build. Steve Yegge's Gas Town supplied three patterns taken verbatim (git-backed ledger, persistent agent identity, stall detection as a first-class state); Aider's architect/coder split supplied the role taxonomy.
The release history records how the contract grew:
| Date | Autometta |
|---|---|
| 2026-05 | v0.1.0: dispatch contract, tick loop and unattended launchd path |
| 2026-08 | v0.2.0: TUI, pipeline pairs, stale-build warning and verifier bake-off |
| 2026-09 | v1.0.0: typed fact ledger, guarded SDK verifier route, frozen card assertions and network preflight |
| 2026-10 | v1.1.0: model-scoped reserve, live agent progress, stage dependency graph and Codex admission below full usage |
Since the tag:
- Controller retired. The scheduled controller agent is gone. Lifecycle notices and bounded native wake-ups replace it.
- Card quality. Card lint, a first-attempt rate, and the card-review and oracle skills.
- One tick agent per machine, instead of one per repo.
- A learning loop. Harness lessons go to a proposals ledger and are decided at a weekly review. See How it learns.
- Failing closed. An unreadable budget file refuses that repo's dispatch. An unknown Claude quota reading holds Claude dispatch. A provider limit that lands mid-run pins the work on a branch before the stage is rewound. An interrupted dispatch is charged once.
- Spend, before and after. A headroom report at card preparation compares the card and batch estimates with the remaining budget. The dashboard, TUI and ticker show the running dispatch's spend against a typical one. A run summary can be rendered at a finish or a halt.
- Unattended runs. The
yoloskill attends a queued run with the operator away: caps and a stop time agreed up front, a hard stop at a stage's third failed attempt, and a decision log to read in the morning.
Three experiments closed against adoption on the way. A resident SDK controller lost to cron plus tick: the SDK session could not create its own session directory inside the sandbox, and a resident process gives up restartability and outside observation for nothing. A worker SDK route was tried and parked: it could not reach its first tool call without widening the very scope the sandbox exists to hold. A terminal multiplexer was retired once the SDK transport covered what it was probing. The postmortems are under docs/experiments/. The SDK survives in one seat, the verifier, with a route guard: the raw Claude API SDK returns 429 on a subscription token while claude -p answers on the same one, so that pairing is sent back to the CLI (see SDK verifiers). The bets did not change; the passes since v0.1 have been about making the loop remember what it learnt and refuse to lie about what it checked.
What it taught us
The lessons file records twenty-three headless gotchas, each with the incident, the failure mode and the fix. The ones worth knowing before your first overnight run:
- The only safety failed silently while everything looked green. The budget cap was checked once per tick, not at the point of spend. One repo burned 149 times its token cap in a day, every stage passed, the work was good, and the daily reset zeroed the evidence by morning. The cap now guards the spawn and a breach log survives the reset. A safety belongs at the action it guards, not at the top of the loop that eventually performs it.
- A worker can die at 21 seconds and leave a zero-byte log. A Claude worker in a subshell got SIGHUP when the launchd tick exited. Codex, with no subshell, was fine. Fix is
disownplusAbandonProcessGroup, and the heartbeat now treats a silent log as a stall. - A missing space killed every verifier.
IFSwithout a space turned an intended word split into a no-op, so--effort highreached the CLI as one option name and burned all three retries per card. Multi-token arguments travel in arrays. - A tick can destroy its own state.
state.yamlwas gitignored, the backupgit addwas a silent no-op, and a degenerate write could replace the only copy with an empty stub. The tick now keeps a rolling backup and snapshots state through a throwaway index. - A sandbox pass can be a lie. A worker that appears to pass acceptance inside
workspace-writemay be reporting side-effects it could not perform. That accident became the role boundary rather than a bug to patch. - A criterion the verifier cannot satisfy fails exactly like broken code. The case study's one rejection came from a card that asked for something the verifier's seat could not check. Card review now includes a seat check before anything is queued.
Evidence and limits
One operator runs this daily across several repositories. The latest tag is v1.1.0, dated 2026-10-09. The tag means the contract, loop and operator surfaces are stable. It does not mean teams or production.
| Evidence | What it shows |
|---|---|
Self-host stage cards and Autometta-* commit trailers |
The loop built this repo with itself. Worked briefs, acceptance checks and role provenance for every landed stage. |
| Logistic Mandelbrot case study | One creative brief became a five-stage product build in about 4.5 hours, including a 50-minute model outage. The verifier rejected one faulty requirement; human visual polish and release followed. |
| BENCH-005 lane reports | A formal external Swift refactor benchmark. Both lanes exhausted their bounded attempts with acceptance still failing. Failure evidence, not a productivity claim. |
| Lessons and contract smokes | Reproducible checks for lost state, broken argument handling, silent agent death and the budget overrun. |
| Verifier bake-off | Eight free-tier candidates graded against ten benchmark stages. No free candidate exceeded 77% FAIL recall, so the free tier handles mechanical checks only. Dated, not a current model recommendation. |
The case study shows the workflow working. It does not establish a speed-up or a return on investment. There is no green result from the external benchmark yet.
Scope is one human, one machine. macOS is the reference platform with Linux via cron. No native Windows; WSL2 is untested. No team coordination, no SLA. The host has to be awake.
Provider behaviour has a shelf life. Local-model compatibility, SDK routes, prices and quota readings all depend on installed versions and account state. The setup guide carries the preflights; measurement shelf life explains how dated findings are kept honest. Codex chat delivery of wake-ups has been exercised; live Claude idle resumption has not.
Get started
Use Autometta when the task has a clear acceptance condition and splits into bounded stages. Exploratory work with no definition of done belongs in a normal interactive session first.
Try the contract by hand. Read the seven-step protocol, fill in the stage-card template and walk the orchestrator checklist. Dispatch one worker, run acceptance outside its sandbox, then have a verifier from the other family inspect the result before you commit. Either family can orchestrate. No scripts/, no cron.
Automate a queue. The loop needs Bash 3.2+, Git, Python 3, jq, yq, both vendor CLIs, agent-whoami, op-fetch and the 1Password CLI. The helper scripts and credentials do not arrive with this clone. Homebrew is needed for the local installer; tmux is optional. Check the dependency inventory first.
From this checkout on macOS:
scripts/install-homebrew-local.sh
autometta check-deps
autometta init /path/to/target-repo
git -C /path/to/target-repo status --short
init creates local configuration and state, registers the repo and installs or refreshes the machine's single fleet LaunchAgent, com.autometta.tick.fleet. Review the generated files, tracking policy, auth and budget before queueing anything. Do not force-add ignored runtime state or the local manifest. The runbook covers card review, queueing and scheduling; setup covers the Linux cron path.
Check the billing route for each family before dispatching:
autometta auth status
autometta auth check codex
autometta auth check claude
Watch a run:
autometta status
autometta graph --repo /path/to/target-repo
autometta tui /path/to/target-repo
autometta dashboard --open
After updating this checkout, rerun scripts/install-homebrew-local.sh, then autometta --version and autometta check-build. Pulling source or brew update alone does not refresh the installed toolchain. See deployment for subscriber refresh and build provenance.
Documentation
| You want to | Start here |
|---|---|
| Assess the design | Philosophy, dispatch contract, tick loop |
| Inspect the evidence | Case study, stage cards, benchmark reports, lessons |
| Adopt and operate it | Runbook, setup, command manual, deployment |
| Understand acceptance and ordering | Verification, worker envelope, dependency graph |
| Watch health and spend | Observability, dashboard, cost log, budget drains |
| Extend verification or shared memory | SDK verifiers, verifier panel, fact ledger, learning log, graph engineering |
docs/design/, docs/proposals/, docs/experiments/ and the dated incident records keep the reasoning and the results. A proposal is not evidence that a feature shipped. The vendor comparisons in prior art are context, not buying advice.
Development
There is no application build or package manifest. The product is the contract, the templates, the agent skills and the shell and Python scaffolding under scripts/, exposed through bin/autometta. The contract tests are scripts/*-smoke.sh; a few provider integration checks need credentials or a configured host.
Start with the frozen-contract gate, then the offline smokes relevant to the change. For card preparation:
scripts/check-contract-test-gate.sh --worktree
scripts/card-template-fields-smoke.sh
scripts/card-lint-smoke.sh
Frozen assertions and their card digests stay together. A passing targeted smoke is evidence for that surface, not a claim that every provider route or historic stage has been re-run. Claude Code and Codex CLI share the same agent brief and the in-repo memory contract.
Security and publication
Credentials and machine settings live in ignored local files or the secret manager. Runtime records stay local. Stage cards, templates and tests are public review material; private session handoffs and run records are kept off the curated public head.
Publication goes through a guarded PR with a leak audit over the incoming history as well as the final tree. A human reviews and merges. See billing setup and the publish workflow.
Licence
MIT. See LICENSE.