cauri jaye
← All writing

AI didn’t break code review. It revealed what we’d already broken

26 January 2026

Originally published on Substack, 26 January 2026.

A colleague recently posed a question that keeps rattling around engineering teams: “PRs keep arriving with obvious AI-generated errors. How do we, as maintainers, handle this without getting completely swamped?”

I hear this everywhere now. And I find myself giving the same answer: the problem doesn’t lie with coding agents. It lies with how people set them up. Or rather, how they don’t.

We’ve entered one of those periods where everyone fumbles with new tools and blames the tools for the fumbling. Fair enough. But teams have started finding patterns that work, and those patterns tell us something worth paying attention to.

New tooling demands a new setup

PRs arrive with issues that feel obvious in hindsight: deleted tests, broken APIs, and architectural violations. Easy to blame the agent. But the agent did exactly what someone asked it to do—it just lacked the context to do it well.

When you use a coding agent without constraints, review loops, or supervision, you get raw output. The agent optimises for the immediate task. It doesn’t know your architecture. It doesn’t know that the API faces the public. It doesn’t know those tests matter. How could it? Nobody told it.

This doesn’t represent a flaw in the technology. It represents an invitation to think deliberately about how we use these things. Most people skip that part. Most people want magic.

What a good setup looks like

Teams that have solved this problem built layers that catch errors before they ever reach a reviewer. Nothing revolutionary here—just discipline applied in the right places.

Coding agents like Claude Code and Codex support skills: structured instruction bundles that teach the agent how to work in your codebase. A skill consists of a folder containing a SKILL.md file (plus optional scripts and resources) that encodes your constraints—architectural boundaries, testing requirements, API stability rules, code review checklists. The agent discovers these automatically and follows them. This transforms a generic coding agent into one that understands how your team actually operates.

One colleague put it simply: “A team AGENTS.md file can go a long way.” Treat it as infrastructure. Refine it continuously as you learn what works. This becomes the place where you encode knowledge that would otherwise live only in senior engineers’ heads—the stuff that takes years to absorb through osmosis, now made explicit.

Then you have AI-assisted self-review. Before the PR goes out, run a review pass. Have the agent check its own work against your standards. “Review this diff for unintended consequences” costs almost nothing and catches a surprising amount. I keep wondering why more people don’t do this. The agent just made changes to your codebase—why not ask it to critique those changes before you ship them?

Another colleague described their approach: “I’m still supervising my agents and approving diff-by-diff since I haven’t automated a faster solution. It lets me catch the agent steering away from my intentions quickly and avoid burning a whole session on something stupid.” This kind of incremental oversight prevents that particular frustration—discovering late that a whole session went sideways while you weren’t watching.

After all of this, the engineer still looks at the diff. If twenty-five tests disappeared, that shows up. This should function as the last layer, not the only one. But it still matters.

Here’s a mindset shift I keep coming back to: code has become cheap. If verification fails, you don’t have to fix the broken output. You can delete it and regenerate. Commit often, so a simple git reset takes you back to a clean state. Then try again with clearer instructions.

When human engineers wrote every line, deleting work felt wasteful. You’d spend hours trying to salvage broken code because someone spent hours writing it. Now regeneration often runs faster and cleaner than repair. Design, generate, verify. If it doesn’t verify, zap it and go again. This alone prevents plenty of broken code from ever reaching a PR.

With this setup in place, errors get caught early. They never reach a PR. The downstream pressure disappears. The reviewers stop drowning.

Learning together (whether we like it or not)

For teams still developing these practices, one colleague offered a useful tactic: when a problematic PR comes through, get the author on a screen-share and walk through the review together. No blame—just sharing the process. Most engineers want to do good work; they just need to see what “good” looks like in this new context. Nobody taught them. How would they know?

The goal remains making quality everyone’s concern, not concentrating it on reviewers. That has always held true, but coding agents make it urgent. You can't keep doing things the old way and expect different results.

Accountability hasn’t changed

The engineer still owns what they submit. That hasn’t changed. The coding agent serves as a tool, and the person using it carries responsibility for the output.

As one colleague put it: “What makes the feedback process different when LLMs get involved, other than that problems can compound more quickly before getting resolved?”

Nothing fundamental. If someone needs help setting up their workflow, provide it. If someone needs coaching on how to review AI-generated code effectively, teach them. The standards remain the same. We just need to learn new ways to meet them.

The time arithmetic

This comes down to where you want to spend your time.

A few minutes setting up skills and commands. A few minutes encoding your constraints in AGENTS.md. A few minutes reviewing the diff before you submit. Small investments that prevent hours of back-and-forth downstream.

The engineers doing well with coding agents have figured this out. The ones struggling often just haven’t found the right setup yet. That represents a learning curve, not a character flaw. And the tooling remains young—we all continue improvising to some degree.

So take coding agents seriously enough to use them well. That really captures all of this. The technology doesn’t need defending or condemning. It needs competent operation. Same as everything else.