Coding agents

Congratulations, You Gave Your Most Confident Junior Engineer a Megaphone

Ownership, review and the senior engineer’s job when an assistant writes much of the code.

Matt Kindy · · 9 min read

If you run an engineering organization, you have probably been adopting AI coding tools since early 2024, as fast as your teams could take them on. Most companies have: a Techreviewer survey of software development companies, published in July 2025, found that 97.5% of them were using AI in their development process. The promise of much higher productivity, faster roadmaps and happier developers was hard to resist.

Now that the dust is settling, a strange paradox is showing up. Your team is generating code faster than ever, yet it doesn’t feel like you’re shipping reliable software any sooner. Research pointed the same way. In July 2025, a study from METR found that experienced open-source developers took 19% longer to complete issues in their own repositories when they used AI tools. (METR now marks that result as out of date, and its data on tools from late 2025 shows some speedup.)

If you feel that gap, you have run into a bottleneck that is new and easy to miss. Charity Majors passes along how Kent Quirk, an engineer she works with, describes generative AI, and it is a long way from a team of super-powered seniors: “an excitable junior engineer who types really fast”. Giving the tools to every engineer hands that junior a megaphone.

An AI coding assistant is a brilliant mimic, a very capable autocomplete with a photographic memory of public code. For well-defined tasks like generating boilerplate, writing unit tests or translating a function from Python to Go, it can save a great deal of time. The danger comes when it is asked to write new, complex application logic, because it knows nothing about your company’s history.

It doesn’t remember the P0 outage last year that led to a new, mandatory caching pattern, or the strategic decision to deprecate a legacy library. It can’t see the unwritten rules and hard-won wisdom that separate a senior engineer from a novice. And while its snippets may look fine on their own, the AI will happily generate code that doesn’t parse or compile, because it makes up variables, method names and fields that don’t exist.

So it will confidently head for the same cliff your team painfully learned to avoid, and the code it writes on the way can read well and still be insidiously wrong.

Passenger developers and who is accountable for AI code

Engineering leaders often respond to that risk with a simple rule: “The developer prompting the AI is responsible for the output. They need to review it.”

That rule ignores decades of hard-won lessons about code ownership. The standard has always been high. As Charity Majors puts it, you should “never accept a PR unless you can explain it if it breaks”. Ownership that deep is why we have separate roles for the author and the reviewer, and why we rarely hold reviewers fully accountable for bugs in code they approved. We understood, without needing to say it, that a reviewer lacks the author’s deep, line-by-line context, so we expect diligence and care from them and accept that they won’t be perfect.

Today, the AI is the author. The developer who accepts its suggestion is at best a reviewer, a passenger in the creative process. Holding this “passenger dev” fully accountable for the AI’s architectural mistakes applies a standard we never applied to human reviewers. It leaves junior and mid-level developers in a precarious position. They are encouraged to use tools that speed them up, and they are implicitly responsible for outcomes they don’t have the context to own, which sets them up to fail.

The result is a black hole of accountability. If the AI is the author and the human is a passenger, it isn’t clear who owns the code. And if the AI is writing the code, people start to wonder, usually without saying so, what a senior engineer is for.

What makes a senior engineer valuable

That question misunderstands the value of any senior engineer who has spent a weekend debugging a production outage caused by a subtle, multi-step failure.

What that engineer brings is familiarity with the system, a hard-won and almost intuitive understanding of the codebase’s dark corners and emergent behaviors. It has little to do with typing faster, being a better linter or even having encyclopedic knowledge of APIs and protocols. As Charity Majors writes, “being a senior engineer is not primarily a function of your ability to write code. It has far more to do with your ability to understand, maintain, explain, and manage a large body of software in production over time”. Being senior is about understanding the sociotechnical system, the way software, tools and people interact.

Owning software in production that way is what Charity Majors means by “you build it, you own it.” Her slide on it tells engineers to “watch your code go out as it deploys” and ask “is it working as intended?” An AI can’t do that. It can trace a direct dependency graph, but it won’t know that changing Service A has always caused odd latency spikes in Service Z, because the two share an overloaded database cluster that no IaC file maps. Nor does it have the instinct that tells a senior engineer any change to the auth service, however small, needs a full regression test.

Both of those are implicit knowledge, which explicit logic doesn’t capture. An AI may eventually find what you tell it to look for, while a senior engineer knows what to look for in the first place. Turning our most experienced engineers into full-time AI babysitters badly misuses our most valuable talent.

Why writing the rules into a prompt doesn’t work

The intuitive first step many teams take is to make that implicit knowledge explicit by writing it down: “Just add our architectural rules to an AGENTS.md or CLAUDE.md file for the AI to reference. Problem solved.”

Writing it down is like asking engineers to memorize a 100-page style guide when you could give them an auto-formatter like Prettier, and it misunderstands how both developers and complex systems work. Critical context goes well beyond a set of explicit rules. It works like an institutional immune system, built from the hard-won lessons of past outages, the unspoken consensus on technical direction, and the subtle performance trade-offs that separate senior intuition from junior enthusiasm.

Even if you could document every piece of this tacit knowledge, you would be handing it to a system that offers no guarantee of following it. An LLM’s main job is to generate output that sounds plausible, and nothing makes it strictly obey a set of logical constraints. Your carefully written rule about “never calling the legacy payment service directly” becomes one more input, weighed against the trillions of public data points in its training set.

The approach also gets less reliable as the rules pile up. Each rule and edge case you add turns the context into more of a “suggestion soup,” and the AI becomes more likely to get confused, ignore critical constraints, or hallucinate a compromise that violates the spirit of the rules. In general, the more instructions you give it, the less reliably it follows them.

That unreliability is why we have spent the last decade building systems of enforcement. A failing unit test is a fact and a linting error blocks the change, while a rule in a markdown file is only a suggestion. Going back to polite, probabilistic hints would be a big step backward for software reliability.

Moving senior engineers from gatekeeping to gardening

If senior engineers shouldn’t be AI babysitters, their mandate has to change from manual gatekeeping to active gardening of the whole engineering system. In that role they spend less time inspecting every pull request and more time building an environment where bad code struggles to grow in the first place.

Investing in the system has been good advice for years, and what makes it urgent now is scale. A human developer could only introduce so many flaws per day, while an AI-assisted engineer can generate a hundred plausible but insidiously wrong solutions before lunch. When every engineer has a megaphone, manual gatekeeping becomes a mathematical impossibility, and the only approach that scales is to change the system the code passes through.

Here is a common case. An engineer asks an AI assistant to add a feature. The AI, trained on years of public code and drawing on patterns from across your own codebase, including long-deprecated ones, confidently generates a solution that calls a non-performant database function.

A gatekeeper handles it by hand, and the fix doesn’t last. They spend 15 minutes writing a PR comment that explains the N+1 query problem, link to a wiki page, and block the change. That feedback applies to one pull request, so the AI will suggest the same flawed pattern again tomorrow.

A gardener spends an hour writing a custom static analysis rule, and that hour keeps paying off. From then on, the rule blocks the anti-pattern in the CI/CD pipeline for everyone. Its feedback is instant and specific to the code in front of the engineer, and it explains why the AI’s suggestion was flawed.

The same flawed AI suggestion, a non-performant database call, handled two ways. The gatekeeper spends 15 minutes on a PR comment about the N+1 query, links a wiki page and blocks the change, and tomorrow the AI suggests the same pattern again. The gardener spends an hour writing a custom static analysis rule that blocks the anti-pattern in CI/CD for everyone, with instant feedback that explains why. The gatekeeper's approach 15 minutes on a PR comment about the N+1 query, a wiki link, a blocked change Tomorrow the AI suggests the same pattern The gardener's approach An hour writing a static analysis rule that blocks the anti-pattern in CI/CD For everyone, with feedback that explains why
The same bad suggestion, handled two ways.

Working this way encodes the senior engineer’s expertise so that it applies to every change, which frees them from repetitive toil to work on the next architectural problem. For the AI-assisted engineer, the system becomes the senior partner in the pairing. Its immediate feedback turns the AI’s flawed suggestions into teachable moments.

The change is hard, though. Senior engineers are already short on time, and building this tooling asks them to also master Semgrep, Open Policy Agent and observability platform APIs. It is a significant hurdle, and it points to a gap in the market for tools that help engineers encode their institutional knowledge without becoming specialists in policy languages.

Until those tools are widespread, the upfront investment is still necessary, because encoding architectural integrity into the development process gives teams a more predictable and reliable way to deliver software. The old saying “slow is smooth, and smooth is fast” applies here. The goal is to raise the throughput of high-quality work, and sending code to QA faster does not do that on its own.

What engineering leaders need to change

Blaming individual developers for not being diligent enough is tempting, but I think the failure belongs to leadership, which has not adapted the system to a technology that changes how software gets written.

Building a culture of deterministic guardrails takes significant upfront investment, especially in organizations already struggling with basic engineering practices. Letting AI-generated code spread without systemic checks costs far more in the long run, though, as an invisible tax of technical debt and production risk.

If you lead engineers, the challenge is to stop asking your best people to be better gatekeepers and let them be the architects they were hired to be. That means keeping these powerful assistants and building a system where your best engineers can encode their hard-earned context and scale it across the whole organization.

Endless reviews will burn out your senior engineers. You get the productivity AI promised by giving them the leverage to build a system that makes the right way the easiest way, which also frees them to work on the next generation of problems.

Get the next essay

Follow the RSS feed to see each new essay when it goes up.