How I Build Software with AI (Without Letting It Decide)
Claude Code builds, Codex reviews, and I approve every change. The tools, the four rules and the loop I use to ship with AI.
There are two ways to build software with AI. One is to chat with it: describe what you want, paste what comes back, describe the error, paste again, and hope the pile converges on something that works. The other is to treat it like a very fast engineer who needs a clear brief, a tight scope and someone reviewing every change.
The first feels productive for about a day. The second is how I ship. This is the setup, the rules and the loop I use, written up in full on the Agentic Framework page. The short version is one line: I make the calls. The AI does the typing.
Two jobs, kept separate
Most of what goes wrong with AI-assisted development comes from blurring who decides what. So the split is explicit.
My job: decide what done means, approve every write, take over when precision beats speed, and turn every mistake into a rule.
The AI's job: read the files that matter, write the code and the tests, run them, grade the result against the criteria, and report back with the diff.
When the AI starts deciding scope, or I start typing boilerplate, the loop is broken. That sentence catches more problems than any tool does.
Three tools, one job each
I keep the toolset small on purpose. Each tool has one job, and I don't use three where one will do.
- Claude Code is the builder. It works on real files in the terminal, handles long tasks, and hands parallel side tasks to subagents. I use Opus, the most capable model, for planning, and Sonnet, the faster one, for the volume of building.
- VS Code is the editor. It's where I read what was written, line by line, and where I take over by hand when a change needs precision more than speed.
- Codex is the second opinion. A different model reading a diff it didn't write catches what the author missed. It reviews; it doesn't build.
The second opinion matters more than it sounds. A model reviewing its own work tends to agree with itself. A fresh reviewer has no investment in the approach and reads what's actually there.
Four rules I don't break
These are what keep the output usable rather than merely plausible.
1. Write the spec first. If I can't describe done in a paragraph, the agent won't find it in a thousand tokens. Every task starts with a short written spec: the outcome, the constraints, the files involved, and the acceptance criteria it has to pass.
2. Every write is approval-gated. Agents draft. Nothing reaches a repository, a client account or a send button until I've reviewed it. No autonomous writes, ever.
3. Small units of work. One task, one context. A fresh session with a clear spec beats a long conversation every time, because long conversations drift: early decisions get forgotten and old mistakes get repeated.
4. The model grades itself. The acceptance criteria go in with the task, and the output is checked against them before I look at it. Self-review is built in, so my review starts from "it claims to pass, does it?" rather than from scratch.
The loop: frame, build, check, fold back
Every piece of work goes round the same four steps until it passes.
Frame. I set the outcome, the constraints and the files that matter, then write the spec with its acceptance criteria. Opus helps plan. Nothing else goes into the context, because the less the model has to wade through, the better it works.
Build. Claude Code builds from the spec, test-first: write the test, watch it fail, make it pass. Parts that can run at once go to subagents. I don't add requirements mid-run; a new idea waits for the next loop so the current one can finish.
Check. It runs the tests and grades itself against the criteria. Codex reads the diff as a second opinion. Then I read it in VS Code before I trust it. If it passes, it reaches the approval gate. If it fails, it goes to the last step.
Fold back. Whatever went wrong becomes a rule in CLAUDE.md, the rules file Claude Code reads at the start of every session, or a new test. The point isn't to fix the mistake once. It's to make sure the next run can't repeat it.
Then the approval gate: nothing ships until I say yes. And shipped means live. I open the real URL and use it, because tests passing isn't the end. Done is a URL, not a diff.
A real example
The framework page walks through one real feature taken through the loop: the End-to-End Workflow page on this site.
It started with a reference page, studied for its shape only, and the design questions answered one at a time. Then a written spec, every line agreed before any code, and a six-task plan. Each task was built test-first. By the end, 511 unit tests and 194 browser tests were green, and then a fresh reviewer model read the whole branch and found four bugs anyway.
That last part is the argument for the whole approach. Each of those bugs got a test that failed first, then the fix. Two of the lessons became permanent tests, so the same class of mistake can't come back. Then I checked it on the real page and it went live.
The habits that make it work
None of this is clever. It's a handful of boring habits, done every time:
- A fresh session per task. A long chat drifts. I close it and start clean with the spec.
- Read every diff. No exceptions for small changes, because small changes are where assumptions hide.
- No new asks mid-run. Scope creep inside a single loop is how a clean task turns into a tangle.
- Check it on the real URL. The test suite tells you the code does what the tests say. Only the live page tells you it does what the user needs.
What this means if you're hiring
If you're hiring a developer who builds with AI, and in 2026 you almost certainly are, the question isn't whether they use it. It's whether they're in charge of it. Ask how they decide what done means, who reviews the AI's changes, and what happens when it gets something wrong. "I read every diff and turn mistakes into tests" is a good answer. "It's really good now, I mostly just accept it" is not.
The speed is real. AI does the typing far faster than I could. But the value a client pays for is still the judgement: what to build, what to leave out, and knowing when the plausible-looking answer is wrong.
The Agentic Framework page has the whole loop as an interactive diagram, with every rule pinned to the step where it applies. If you'd like this way of working applied to your product, get in touch.