Apocha
The agent does the work. The controller decides what ships.
An open-source controller for coding agents. It grew out of the harness that built this site, and every change it accepts carries a receipt. View the code on GitHub ↗
Jump to any step
- A person writes the task: the paths the agent may change and the checks that decide.
- The controller makes a private clone of the repository at the base commit.
- The agent edits only through harness tools: no shell, no built-in tools.
- The task's checks run in an OS sandbox, from a catalog the agent can't edit.
- A separate reviewer agent judges the verified change, bound to its exact digest.
- Findings go back for a bounded number of repairs, or to a person.
- A passing change is committed with a receipt; land checks every receipt.
Apocha developing itself, Oct 5–16, 2026: one machine, one operator, not a benchmark. The earlier harness, Sep 26–Oct 3: 62% passed review with no repair, 91% within one.
01The contract
A task is a contract,not a prompt.
Before any agent runs, a person bounds the work: what it is for, where it may write, what it must not touch, which checks decide, and how many repairs it gets.
task manifestassembled from a published receiptIllustrative layout. Field values come from the published receipt; paths are summarised, not shown.
A task names the paths the agent may change and the checks it must pass. Check IDs select commands from a closed catalog in project configuration read from the base commit; tasks cannot supply commands.
02What it guarantees
An agent can't changewhat judges it.
Each guarantee is enforced by the controller, not left to the agent's judgment.
ENFORCED BYCHECK CATALOG
Checks it can't rewrite
Checks come from a closed catalog in the project config, read from the base commit. A task names check IDs but can't supply commands, and agents can't edit the config or protected paths.
REFUSED
ENFORCED BYTEST POLICY
Tests change only with evidence
To change an existing test, the controller runs the old test on the new code. If it still passes, the edit must be a declared refactor or keep every assertion; otherwise it's rejected.
EVIDENCE
ENFORCED BYHARNESS TOOLS
No shell, no built-in tools
Agents read, search, patch and run named checks only through the harness. Each runtime adapter disables its own tools, and a live probe checks whether a runtime can escape.
SCOPED
ENFORCED BYOS SANDBOX
Checks run sandboxed
Agent-written code runs in a fresh copy of the tree, without .git or secret-looking files, under macOS Seatbelt or Linux bubblewrap, with no network by default.
ISOLATED
Infrastructure errors never count as passes.
03Receipts
Every accepted changecarries a receipt.
The receipt is a Git note on the commit: the task, the config, the checks that ran, the review decision and the exact change they were bound to. Receipts can be signed. apocha land moves a branch forward only through commits whose receipts match.
The first change Apocha delivered to this site: the System page moved to Apocha's own address.
Receipt
Apocha gets its own address
PASSEDMove Apocha to /apocha, turn /system into a handoff for old links, and add a 404 page.

BeforeAfterReal screenshots and excerpts from this delivery.
04Who decides
People decide.The controller enforces.
The human
- Sets the scope and the checks
- Approves claims, costs and releases
- Resolves conflicts and repeated failures
- Never turns a failing check into a pass
The controller
- Isolates every candidate
- Runs only the checks the task named
- Binds each review to the exact change
- Owns every state change and cleanup
05Evolution
From one site's harnessto an open-source tool.
- Aug–Oct 2026The harness behind this site
Built around the open-source Pi agent to ship changes to this portfolio. It delivered 111 agent-written changes; 62% passed review with no repair.
- Oct 4Extracted
Pulled out of the portfolio as a standalone tool that any repository can configure.
- Oct 5Apocha v0.1
Published as open source: Codex, Claude Code or Pi as runtimes, workflows as data, receipts as Git notes.
- Oct 7v0.2
Signed receipts, a verify-only GitHub Action, a deny-by-default macOS sandbox and an optional reviewer from a different provider.
- SinceTests need evidence
Existing tests change only when the controller's evidence supports it, because editing tests is the easiest way for an agent to cheat.
06Next
Where it goesfrom here.
- 01
Publish the evaluation suite: replays of real changes with hidden tests, and cases it should refuse.
- 02
Sandbox the agent runtime process itself, not only the checks.
- 03
Open it to more repositories than its own and this site.
It doesn't sandbox the agent runtime process itself, and it never pushes, opens pull requests or deploys.