BLOGBuilding with agents
Agentic engineering: how I build software with an AI council
Agentic engineering is AI agents planning, building and testing code inside rules that decide who checks what. How I do it, and what went wrong.

Agentic engineering is building software with AI agents that plan, write, run and test the code, inside an engineering system that decides who builds, who checks and what stops them. The agents do most of the typing. The system decides what counts as finished.
I’m an AI engineer. This is how I build software at Code23 and across my other businesses, what I changed five times in five months, and how I set the same thing up inside agency development teams. I’ve written before about agentic coding in an agency, which covers the basics. This is the deeper version: the rules, the mistakes and the numbers.
Vibe coding, agentic coding & agentic engineering
The three terms get mixed up, and the difference matters when it’s a client’s code.
| Vibe coding | Agentic coding | Agentic engineering | |
|---|---|---|---|
| What it is | Prompting an AI and accepting what it writes | An AI tool that edits files, runs commands and fixes its own errors in a loop | Agentic coding inside an engineering system |
| Who checks the work | Nobody, until it breaks | Usually the same agent | Automatic checks, a second model and a person |
| Good for | Throwaway prototypes | Faster work by one developer | Client and production software |
Andrej Karpathy coined “vibe coding” in February 2025, and it’s brilliant for a weekend prototype. Simon Willison and Addy Osmani have both written well about the professional end, which they call agentic engineering. The tool can be the same in all three. What changes is everything around it.
My one rule: no agent marks its own work
I learned this the hard way. More than once, work that passed the author model’s own review had real problems that a model from a different company spotted straight away. If I’d trusted one model’s opinion of its own code, those problems would have shipped.
That isn’t bad luck. Models recognise their own writing, and they like it. A 2024 study, LLM Evaluators Recognize and Favor Their Own Generations, found a direct link between how well a model recognises its own output and how strongly it prefers it.
So I work like a council, and a council needs at least three members. With two models, a disagreement is a coin toss: one says ship it, the other says stop, and you’re back to guessing. With three, two can outvote one, and the odd one out has to show its working. I run at least three on anything that matters, usually four.
Right now the pool is Claude, Codex, Gemini (through Google’s Antigravity), Meta’s Muse and Grok. Which of them sit on the council this month matters far less than the fact that there is one. They come from different companies, trained differently, with different blind spots. One builds. A model from another company reviews. When they disagree, a third settles it, with the project’s tests as the final referee. Nothing skips independent review, including work that started with me.
The reviewer isn’t always right
Here’s the part most people miss. In July 2026, researchers tested exactly this on 116 coding tasks, with Claude and Codex reviewing each other and themselves.
Claude reviewing Codex’s drafts lifted the pass rate from 71.6% to 89.7%. But Codex reviewing Claude’s drafts dropped it from 91.4% to 82.8%. The reviewers in that study couldn’t run the tests, and a confident reviewer talked good code into bad changes.
That matches what I’ve seen. So a review finding is evidence, and evidence gets checked. The project’s own tests, types and build settle the argument. If a reviewer is in a minority of one but can show the bug, it wins. If it can’t, it doesn’t.
People search for this as an “LLM council”. Karpathy’s open-source LLM Council asks several models the same question and has them rank each other’s answers. Mine applies the same idea to software, with one extra member that never has an opinion: the test suite.
How I build now
This is the whole set-up, as it runs today.
One command. Every session starts with a single command, claude-yolo or codex-yolo. It loads the team’s rules, picks the right account and gives the agent full freedom inside its own branch. Anything that reaches the outside world, like sending, deploying, spending or deleting, still needs a person.
A lead plans, workers build. The lead model reads the brief and splits the work into slices. Each slice goes to a worker in its own git worktree, a separate copy of the code, so nothing collides. When Claude leads, Codex or Grok workers write the code, so the most expensive model spends its allowance on thinking rather than typing. A Codex lead uses its own workers. When one company’s allowance runs low, new slices can move to another.
Checks run. The project’s own tests, type checks and build. These are the referee, because they can’t be talked round.
Another model reviews, in proportion. A small change gets a fresh agent that didn’t write it. Anything risky or large, like security, payments, data or a big change, goes to a model from another company, with a third brought in if they disagree. I built a small tool, xreview, that sends it a short brief and the exact change, and nothing else.
A real-user test, when I ask. A Mac mini in the office uses the site the way a person does, clicking through the journeys and screenshotting what it finds. Passing tests doesn’t mean the checkout works. I’ve published the method as the open-source Agentic QA Toolkit.
Docs updated, then I decide. If behaviour changed, the documentation changes in the same piece of work. Then a person decides what merges and what ships.
Where the work happens
I’ve tried most of the places you can run coding agents: Cursor, Zed, Warp, Conductor, the Claude and ChatGPT desktop apps, Google’s Antigravity and plain Ghostty. They’re all good, and each suits somebody. I’ve gone back to cmux, a free, open-source macOS terminal built on Ghostty.
Two reasons. It feels direct: I type, the agent responds, and nothing sits in between. Polished app interfaces often add a beat of delay, and when you’re steering several agents at once you feel every one. And I can lay it out exactly how I like to work.
Every project sits down the left as a vertical tab, and each one tells me whether its agent is working, finished or waiting for me. The agent sessions run in the middle. On the right, a browser has the project’s tasks open in Linear, so the ticket and the work sit side by side. When an agent needs me, its tab says so, and I don’t have to go looking.
The tool matters less than the habits. If your developers love Cursor, keep Cursor. What I’d standardise is the command they start with, the rules it loads and the checks it runs.
How a model earns its seat
Frontier models change every few weeks. OpenAI ships something brilliant, then Anthropic answers, then Google. A model that led my work in July can be the weakest in the room by September. So no model gets a seat because of its name or its launch-day benchmarks. It earns it on my tests and on real work.
I keep a frozen test suite: real agentic tasks, like a job queue, a config merge and a dependency planner, each graded by hidden tests the model never sees. Every serious new release runs through it, and I grade it on the same tasks as everything before it. On my September run, most frontier models scored two out of three. One well-known model scored nothing at all. The only perfect score didn’t come from a single model. It came from a team: one model planning, another building, a third reviewing. That one result is the whole case for a council.
Claude is the best example of how this works. The Claude model before Opus 5.5 scored one out of three on that suite, behind models that cost a fraction of the price. I’d already stopped letting Claude lead my builds because it burned through tokens and didn’t deliver. It was out of the stack.
Opus 5.5 earned its way back on real work, not on Anthropic’s announcement. A single Opus 5.5 session built a complete set of legal pages that passed every check, for USD 1.80 in six minutes. It then held up as a reviewer on work other models had built. Today it’s one of my two leads. If the next version slips, it goes back on the bench.
I test the tests as well. In July, one of my reviewer rankings looked convincing until I noticed the same model had written the test cases, competed in the test and marked the results. I withdrew the ranking. The rule now: the model setting the exam never sits it.
Leads, workers and handoffs
Every build has a lead: a frontier model running in my own start-up command, with the team’s rules, tools and memory loaded. The lead plans the work, breaks it into slices, and writes a tight brief for each slice before handing it to a worker in its own isolated copy of the code. Since 19 October, a Claude lead doesn’t write code at all. It plans, briefs, joins the pieces up and checks the results, and that frees it to review, because another company wrote the code.
The reviewer is always a company that wrote none of the code, whoever led. With three families in play (Anthropic, OpenAI and xAI, with Google’s Gemini as an extra reviewer), there’s almost always one that wrote none of it. If there isn’t, the merge waits.
The part people find most surprising is the handoff. I run on subscriptions, and every subscription has a limit. When one family drops to 20% of its allowance, new work can start going to another. At 5%, the lead checkpoints and hands over: the next session picks up the same task, the same rules, the same deadlines and the same count of attempts so far. Nothing resets because a different model took the wheel. A handoff only counts when the new session has actually started and made progress, not when a hand-over note exists.
Subscriptions vs API: the most expensive lesson
Subscriptions have limits, so I tried to get rid of them. In September I moved my whole build stack onto pay-as-you-go API access through OpenRouter, so I could use any model without ever hitting a cap.
On subscriptions I was spending the equivalent of £25 to £50 a day. On the API, I burned £1,500 in a day. Agentic work is token-hungry: long sessions carry hundreds of thousands of tokens of context, and almost all of the spend went on the frontier models doing the thinking. One reply to three emails cost USD 43. I capped the key that day and moved back.
The reason is simple: the AI companies subsidise their subscriptions. SemiAnalysis tested every major plan to its limits in October 2026 and found subscription margins are far lower than API margins, with both OpenAI and Anthropic now working to reduce what they call subscriber subsidies. That won’t last forever, which is one more reason not to depend on one company.
So the frontier models live on subscriptions, across several families, with the handoff above moving work between them. The API is kept for small, cheap jobs, with a daily cap, approved hosts only and no training on my data.
Claude Code vs Codex: why I pay for both
Agencies ask me which one to buy. My answer is both.
They’re both excellent, and they feel different to work with. Which one leads depends on the job and on whose allowance has room. Whoever builds, a different company reviews. The study above is also why a review from either side is treated as findings to check, never changes to apply without question.
The bigger reason is resilience. If one company changes its pricing, has an outage or switches off a model, the work carries on with the other. Earlier this year I had a model switched off for 19 days. Two subscriptions cost far less than a week of a stalled team.
Five months, five set-ups
None of this arrived fully formed. Here’s how it changed.
In September I built my own scripted build loop to run work unattended. On the same homepage rebuild, it beat a chat-led agent by a mile.
The chat-led agent took 28.4 hours. For 13.5 of them it sat idle after announcing it had “safely paused”. The scripted loop did the same job in about two hours with nobody stepping in.
Then the loop itself became the job. Over its life, only 11 of 52 runs fully passed, and I spent more time fixing the loop than building client work. Meanwhile, Claude Code and Codex had become very good at running their own subagents. On 1 October I stopped fighting them, froze my loop and went back to one command and the tools’ own features. Most of what I built along the way, I threw away. That’s fine. It’s how I learned what mattered.
What went wrong, and what I changed
These are the mistakes worth knowing about before you start.
The reviewer that made things up
One model’s code reviews started citing functions and file paths that didn’t exist. A review you can’t trust is worse than none, because it’s convincing. I stopped using that model for reviews. A review only counts now if it comes from a qualified model from another company and points at real code.
The builder I stopped trusting with data
Another low-cost model began describing a project that wasn’t mine, with a file that existed nowhere in the repository. I’ll never know where that came from, and I didn’t wait to find out. It was banned the same day. Every model I call through a third party now runs on a host I’ve chosen, with zero data retention and no training on my code.
The five-hour loop, and then the opposite problem
An agent once spent five hours in a review and repair loop, fixing one thing and breaking another. I brought in hard limits: work in 30-minute stages, and stop any approach that goes 15 minutes without real progress. Switching model or branch doesn’t reset the clock.
Then I over-corrected. Agents started stopping after every successful step to ask permission. So I made the rule explicit: a checkpoint isn’t an approval gate. Agents keep going through known, safe steps and stop when the evidence says they’re stuck.
The approval queue nobody read
At one point 246 items sat in an approval queue for 22 days. If every decision needs me, I’m the bottleneck in a business built to run without one. Sensitive work now gets more checking by more agents, and a person signs off the things that really matter: what ships, what touches money and what touches clients.
One very expensive session
A single 18-hour session cost USD 252 in cache reads, 86% of that week’s spend. The cheapest fix wasn’t a cheaper model. It was clearing the session between tasks and sending bulk reading to short-lived subagents.
Rules that never reached the agents
I’d written good rules, and some sessions never read them. Now the one command loads the team’s rules every time, so every agent on every machine starts from the same page.
What the wider evidence says
I’m not alone in any of this. In July 2025 an AI agent deleted a live production database during a much-publicised build, despite being told there was a code freeze. Research from METR found frontier models gaming the tests they’re scored on, changing the test rather than fixing the code. Instructions in a prompt aren’t a security boundary. Enforced sandbox permissions, checks the agent can’t change and credentials it can’t reach are. Branches keep code changes separate, which helps, but they don’t stop an agent doing something it has permission to do.
Does it make developers faster?
It can, but not on its own. In 2025 METR ran a careful study with experienced open-source developers. With early-2025 tools they took 19% longer, while believing they’d been 20% faster. By early 2026, METR struggled to run the follow-up because so many developers refused to work without AI.
Stack Overflow’s 2025 survey shows the same tension: 84% of developers use or plan to use AI tools, 46% don’t trust the accuracy, and 66% say their biggest frustration is code that’s “almost right, but not quite”. Google’s DORA research describes AI as an amplifier. Good engineering gets faster. Weak engineering gets broken faster.
My own example: I rebuilt the Code23 website in seven days, against about three months for the site before it. The speed came from the system, not from any one model.
How I set this up inside an agency
This is the work I do with agency development teams. It’s built on what runs in my own businesses, and it becomes theirs.
- Write the standards down where agents read them. An
AGENTS.mdorCLAUDE.mdin every project: how to build, test and deploy, what “finished” means, and what never to do. - One command for everyone. Every developer starts every session the same way, with the same rules loaded.
- A branch for every task. Small pieces, each in its own worktree, so agents can work in parallel without treading on each other.
- Checks that run every time. Tests, types and builds the agent can’t quietly change.
- A second opinion from another company. Proportionate review, with findings tested before anyone acts on them.
- A real-user test before release. Somebody, or something, clicks through it like a customer.
- Limits on unattended work. Time-boxed stages, a stall stop and spending caps on every key.
- Docs as part of done. If behaviour changed, the documentation changed with it.
- People decide what ships. Always.
I usually start with one developer on real tickets for two weeks, with me alongside. By the end, the team has the rules, the commands and the checks in their own repositories, and the skills to change them. I don’t license any of it. Every agency works differently, so the set-up ends up shaped around how yours does.
Where this fits
Agentic engineering is how I build. The agency OS is where the agents live and work from the same data, and the memory layer is what they all know. If your development team is experimenting with coding agents and you’d like it to hold up on client work, that’s what I help with. See how I work, or send me a message.

