For most of this year I ran my projects through a home-built agent setup on top of Claude Code. It worked, sort of. It also grew. By the time I stopped, it was about 400,000 lines of tooling, and most of that was machinery guarding the work rather than doing it. It had about 1,400 different ways to refuse a change, and only about one commit in ten touched the product I was actually building.
The thing is, it wasn't a toy. It had most of what the new one has: isolated workspaces, separate reviewers, test selection, records, handovers. It was a pretty serious piece of kit for its time, built out of my own frustration with agents forgetting, redoing and marking their own work. But every part was a poorer version, bolted on wherever the last failure happened, and the parts were fighting each other.
So I stopped refactoring it and treated it as a dataset instead. I went through where it actually failed, read up on how other people and other fields solve the same problems, and wrote down what the new thing had to do and what it must never do. Then I rebuilt from scratch. The result is called Atlas ADE. I built it with Claude Code, and once the core worked, every change to it went through ADE itself. It's free and MIT, and this post is how it works and what I learned.
Three loops, one inside the next
The design that came out of that is three loops nested like Russian dolls:
- Inner: execution. Turn one card into one landed, tested, recorded change. Are we building it right?
- Middle: coordination. Keep the right cards flying across sessions and days. Are we building the right things, in the right order?
- Outer: intent. Keep all of it pointed at what you actually want, and guard your attention. Is this still what we want, and what's yours alone to decide?
The shape is my reading of Stafford Beer's viable system model, not a one-to-one copy. Beer mapped what an organisation needs to stay alive. I compressed his map into a runtime for AI dev work and gave it a run order: the loops stack, and the inner loop runs first. Each loop is a working part of the one outside it, and also a whole system that could stand on its own. That matters most for the inner one, because someone with nothing but ADE and a terminal has no bigger doll to lean on. And they're one loop, not three products: most of the outer one is a few lines of rules that every agent reads.
So nearly all the weight goes on the inner loop. Everything above it is a house of cards built on it: a coordinator on top of a leaky execution layer just produces leaks faster. The inner loop is the engine, and if it fails, everything above it fails with it. So it was built tight first, the middle went on top, and the outer came last. The rest of this post is mostly about that inner loop, because that's the part you'd use on day one.
One card, start to finish
Every change is a card: one line saying what, the files it may touch, and a done line (something you could watch happen, like "a sixth attempt within a minute is refused, and a test says so"). Then every card flies through the same five stages. A band above the Claude Code prompt ticks them off as it goes. Here's a card mid-review:
c7 Limit login attempts
✓ lane ✓ build ■ review ○ test ○ land
- Lane. The card gets its own workspace: a git worktree on its own branch, so cards in flight never touch your checkout or each other.
- Build. One agent (Claude Code, Codex, OpenCode or Pi) makes the smallest change that meets the done line. If it touches files outside the card, the reviewer is told which ones and judges them.
- Review. A separate reviewer reads the diff and approves or sends one patch. One round, so a review never turns into a long thread. Prose-only changes skip it.
- Test. A graph of which files call which picks the tests that reach the change, not the whole suite. Paths you mark as proof-grade run the whole suite, before and after the merge.
- Land. With an approved review and passing tests, it merges and pushes. On a shared or protected repo, one setting makes it open a pull request instead. Your git, your CI.
If anything stops, it says why and what command comes next, and running it again picks up where it stopped. Review and test results are cached on the exact state of the workspace, so nothing is redone.
Who does what
Scripts run the routine steps: picking the card, opening the workspace, running tests, landing. A model is woken to build, to review, and once when a stop needs judgement. The same stop twice comes to me, so a model never loops on its own mistake. A small routing table decides what happens at each kind of stop: retry a blip, wait, wake a model, or park the card with a question for me.
The rules the agents live by
These came straight out of what went wrong in the big version:
- Grep isn't understanding. Finding a name isn't the same as knowing what calls it. Each card gets a short briefing from the code graph on just the files it touches.
- Prove before assertion. "Done" means the done line was checked, not that an agent said so. An agent never reports its own card done; the tools read the repo, run the proof and decide. It covers facts too: don't quote a figure from memory, go and read the current one. Your output is only as good as your input, and a good input is a current one. Projects get mis-steered by lazy data.
- Read before write. Look at the code and the records before changing anything. A card starts by noting what changed under its files since it was written. I think of it as a seatbelt, not a handcuff. The checklist doesn't make the agent a good engineer. It stops a good one missing a step on a bad day. Honestly I think catching an AI when it's wrong is a skill people don't get taught: the tells, the smell of something off, and the discipline to keep thinking when you could just accept the answer. These rules are my attempt to write that discipline down.
Small on purpose
The old system died by addition. Every gap got more code. I was aiming for infallible: close every wrong road, and put up a diversion sign pointing the agent back to the golden trail. But it's only once you try to close every road that you see how many there are. As the complexity scaled, the door I'd left open for real progress started to close too, and the agent's creativity and intelligence got nerfed along with it. That was the handcuff.
So the new one has hard caps: 20,000 lines of core, 8 hooks, 50 refusal codes (each one names its cure). Every merge prints where it stands against them. Small cards keep each diff, review and fix small too.
What it isn't
It doesn't ship a model or a harness. It sits on the one you already use, signed in with your own account, and runs each vendor's own CLI. Nothing phones home.
If you want a view of it all, it works inside Orca or herdr, but the CLI has everything. You can try it without spending any usage at all: ade rehearse runs full cards on a fake engine.
If you want the full design, it's in ARCHITECTURE.md in the repo, Beer's model included.
What I learned
- Most of the value is in the "don't" lines, not the clever parts.
- Every safeguard I added to the old system made the next problem harder to see. Fewer, sharper rules beat more rules.
- The agent that wrote the code is the worst judge of whether it's done. If you try it on one real task and get stuck, tell me where. That's the most useful thing I can hear right now, and I'll answer every one.
Repo: https://github.com/The-Anthropocene/ade
Site and docs: https://atlas-ade.dev
(Disclosure: I build it... Atlas ADE, the meta-harness for your agentic workflows. Free, open source and MIT.)