AI writes a lot of my code now. Here’s how I decide what ships.

Claude Code does much of the typing in my projects. The part I don't hand over is deciding what's true: the context it starts with, the diffs I read, the real inputs I test on, and the audits where every finding gets checked by hand.

An AI agent now writes a lot of my code. I use Claude Code every day, on client work and in my job at a US company building AI products. That has changed how fast I work. It has not changed who is responsible when something breaks in production: I am.

So the question I care about isn’t “can AI write this?” It usually can. The question is “how do I know it’s right?” This is the process I’ve settled on. None of it is clever. It is mostly discipline.

1. Start every session with the same context

Every repository I work in has a CLAUDE.md file. It says what the project is, how to run it and test it, which conventions to follow, and what not to touch. Every session starts from that file, so the agent doesn’t guess at things the team already decided.

On a larger, multi-repo AI platform the same idea goes further: shared rules, reusable skills, and permission files that limit what an agent may do on its own. The point is the same at any size. Most bad AI output I’ve seen came from missing context, not from a weak model.

2. Plan first, then let it type

For anything bigger than a small fix, I ask for a plan before any code: which files change, what the data looks like, what could break. I correct the plan, because a wrong plan is cheap to fix and a wrong implementation spread over twelve files is not.

Then the agent implements it, and I read every diff before it merges. Not a skim. If I can’t explain a change to someone else, it doesn’t go in. This is the slowest step, and it’s the one I’d never cut.

3. Prove it on real inputs, not just on tests

Tests matter, and I keep end-to-end tests (Playwright, in GitHub Actions) running across development, staging and production. But code can pass its tests and still be wrong on real data.

The clearest example is an answer-sheet marking service I built for national maths contests: Python, FastAPI and OpenCV, reading scanned bubble sheets for around 5,000 students per contest. Computer-vision code can look perfectly reasonable and still misread a page. So the reader draws what it detected (the grid, each bubble, each mark) on top of the scan, and I compare those debug images against the paper.

That is how real problems got caught: tilted scans, and scans placed high on the scanner bed, where the answer grid was being read two or three rows too low. No unit test would have found that. Looking at real scans did. Each fix was then re-run on the scans that had failed before.

4. Use AI to audit, then verify every finding by hand

AI is also good at reading a large codebase and pointing at things that look wrong. I run code audits this way on one of the products I work on: the agent sweeps the codebase and lists findings, and I check each one myself before anything is reported or fixed.

Some findings are real. Some are false alarms that look convincing until you read the surrounding code. A few are real but less important than they sound. The value is in sorting them, not in the length of the list. Fixes are then re-tested rather than trusted.

5. Keep the human jobs human

Across all of this, the AI does much of the typing. My job is to:

  • set the context it works from,
  • decide what to build and in what order,
  • read what it produced,
  • prove it works on real inputs and real devices,
  • own the result after it ships.

That last one is the reason the rest exists.

What this means if you’re hiring

If you’re bringing in a developer or an agency in 2026, “do you use AI?” is the wrong question. Almost everyone does. Better questions are:

  • What context does the AI start from in your projects?
  • Who reads the diffs, and do they read all of them?
  • How do you test on real data, not just on the tests the AI wrote?
  • When AI flags a problem, who checks it is real?

The answers tell you more about the quality you’ll get than any list of tools.

If you’re working on a Laravel, Next.js or AI product and want someone who works this way, you can reach me through the contact form on this site.

Need help with Laravel, Next.js, AWS or AI integrations?

Get in touch