
Agents changed who types the code. They didn't change who owns it.
For the past few months, something at work has been bothering me.
Features ship faster than ever. They work, the ticket closes, everyone's happy. But then in review or, say, a pair coding session, you ask a simple question: How does this part work? Why is the check here and not in the service that already does this? What did you test? And you get a pause.
Not from bad engineers. From good ones. They aren't hiding anything. They don't know, because they never sat with it long enough to know. The agent wrote it, it passed, and that was apparently enough.
I'd been chewing on that when a tweet landed in my feed.
I'm starting to wonder whether clean code and architecture was just something designed for humans.
Does clean code matter to agents? It's all chinese to them.
I've yet to hit a wall where they're like "sorry, can't make sense of this codebase anymore."
I couldn't dismiss it. If the thing writing most of the code doesn't care how the code looks, who are we keeping it clean for? And if clean code was only ever for humans, maybe understanding the code was too. Maybe the pause I kept seeing was fine. Maybe I was the one clinging to an old job description.
Then I remembered a clip that had gone round a few days earlier, from Shane Parrish's conversation with Shopify's CEO Tobi Lütke. It described what I'd been seeing, from the receiving end.
Lazy work used to mean too little output.
Now, with AI, it often means too much and more work for everyone else.
@tobi call it "slop grenades."
A "Slop Grenade" is when you let AI produce the work and pass it on without adding any value (including checking it).
Shopify has an internal name for it: a slop grenade. Pull the pin, toss it over the wall, walk away.
Lütke's examples ran from bloated AI-written emails to code, but the first one he reached for was a pull request. In his words: "You need a change of some kind. You just tell the AI to go nuts. It makes a PR. You just say, yeah, that's good. You don't really read it. And now it has to be reviewed by your colleagues."
That clip reframed the tweet for me. Whether an agent can read messy code was never really the question. Agents are built to get things done, and they're very good at it. What they don't do is care which path they took, because they'll never have to live with it. You will. If you don't understand how something works, you can't debug it when it breaks, optimise it, scale it, or build the next feature on top of it. You can't even tell whether it succeeded beyond "it runs." The agent did the work. It didn't take responsibility for the choices inside it.
This isn't a post about writing better prompts. It's about what you owe the people who work with you.
One we caught before it shipped
The requirement was simple: a welcome banner in the header, shown only to logged-in users. The header loads on every page, and the app already knows whether you're logged in.
Here's what the agent proposed, reconstructed and simplified. Treat the code as illustrative rather than our actual stack.
// routes.ts
export const routes = [
{ path: '/login', component: Login, showBanner: false },
{ path: '/pricing', component: Pricing, showBanner: false },
{ path: '/blog', component: Blog, showBanner: false },
{ path: '/terms', component: Terms, showBanner: false },
{ path: '/dashboard', component: Dashboard, showBanner: true },
{ path: '/orders', component: Orders, showBanner: true },
{ path: '/settings', component: Settings, showBanner: true },
];
And here's the size of what was actually asked for:
// Header.tsx
const { isLoggedIn } = useAuth();
{isLoggedIn && <WelcomeBanner />}
It looks reasonable for a second, until you see what was actually built. Instead of using the auth state the app already had, the agent reinvented user state as route metadata: a flag on every route, maintained by hand for every page anyone ever adds. More code than the feature needs, and a trap for whoever builds the next page. It got the job done, in the most short-sighted way possible.
- Show the banner to logged-in users
- One condition, one place: the header
- Works on every page, present and future
- Show the banner on a list of pages
- A flag on every route, maintained by hand
- Vanishes for a logged-in user on pricing, blog, terms
We caught it in a pairing session, seconds after looking at the change. Nobody had to open the app, and a quick manual test would probably have passed anyway: log in, see the banner on the dashboard, done.
That's the process working. The problem isn't that an agent occasionally proposes a plausible wrong design. They do, and they will. The problem is work leaving your hands before anyone has challenged it.
How you challenge it is up to you. I don't read every line either. Sometimes it's the diff, sometimes it's asking the agent to walk me through its approach, sometimes it's pushing back on the plan before any code exists. The method is yours. The bar isn't: before you pass it on, you should be able to explain the choices in it and stand behind them. Had this gone straight from the agent to a PR, it would have looked finished, and someone else would have inherited the job of noticing.
The handoff is the grenade
Think about what opening a pull request has always meant. It's a claim: I understand this, I've looked for the ways it's wrong, I stand behind it. Reviewers rely on that claim, which is why review is a conversation and not an audit. When you open a PR you haven't read, you're still making the claim. You've just stopped meaning it. The reviewer doesn't know that. They review it as if a person thought about it, and the gaps a person would have caught are now theirs to find.
Earlier in the same conversation, Lütke said something that's easy to skim past: machines can't take responsibility; only people can. So when the author of a PR doesn't carry it, the responsibility doesn't vanish. It just lands on whoever reviews it next.
That's the grenade. Not the AI output itself. The handoff.
Does clean code matter to agents?
Back to the tweet, briefly. Maybe agents will eventually navigate any codebase we throw at them, and conventions written for human eyes will loosen. That isn't the question this piece needs to settle.
Because even if the code stops needing us, the change still does. Somebody has to be accountable for whether a change is correct and fits the system it landed in. In the banner case the agent did what agents do: it reached for a nearby structure that could hold a flag rather than the service that owned the answer. Whether a cleaner codebase would have steered it better is an interesting question. It's not the point. The point is that a person had to notice, and did.
What ownership looks like when agents write the code
Working is the entry ticket. It's what has to be true before we can start asking whether something is good. And the banner shows that "it works" needs a qualifier: works for whom, on which page, under which state? The dashboard case worked. The requirement didn't.
Good is a different set of questions. Does it fit the codebase, or did it invent a parallel way to do something that already existed? Can the next person change it without breaking something two files away? Can you explain why it's shaped this way and what you'd have done differently? What did you check, and what did you decide not to?
You had standards before agents wrote your code. Did they disappear? "Claude wrote it" is not an excuse for shoddy work.
You can delegate the typing. You can delegate the draft. You cannot delegate knowing.
Our head of engineering framed the process side well: when agents got good at writing code, human attention was supposed to move to the front of the lifecycle. Here's how I'd put it: explore the options, pick the one that fits, decide what has to be true, then let the agent plan the tests and write the code. Those early decisions are how you steer. Without them you're a passenger who finds out where the car went at review time.
At work, we steer our agents with guardrails: architecture decision records, agent system prompts, repository rules that enforce modularity and stop business logic being duplicated. CodeRabbit reviews our PRs against those rules and catches the obvious slop. All of it helps, but it's still the engineer's job to confirm the output actually makes sense for the broader product goals.
So, in practice:
Fully owning your work will sometimes slow you down. That's the job, not a failure. The real failure is claiming the speed while quietly handing the unfinished part to someone else.
The agent wrote it. You still own it.
Did this land for you?
Leave a thought below, or start a thread where you already are.