Oussama Essamadi

わたしの文章

Coding in the era of agentic coding

Agents now read the repo, run the checks and open the pull request. Past both the hype and the dismissal, what that changes, what it doesn't, and what we might lose when we stop writing code ourselves.

公開日

読了時間

7分

本文

Four years ago I wrote about my first three weeks with ChatGPT, a chatbot that wrote plausible code and checked none of it. Today an agent reads the repository, changes a dozen files, runs the tests, reads the failures, fixes them and opens a pull request, and depending on who you ask, that’s either the end of programming as a job, or an expensive autocomplete wrapped in a lot of marketing.

I don’t buy either of those. I’ve been using these tools every day for long enough to have an opinion that’s a bit more boring than both (boring in the sense that it doesn’t fit in a tweet), so this post isn’t a guide, and it isn’t a warning either, it’s me trying to sort out what actually changed, what didn’t, and what I think we’re giving up without really noticing.

Two stories, both too clean

The loud story goes something like this, you describe an app in one sentence, the agent builds it, and developers are a few years away from being a nostalgic job title. The demos are real, I’ve watched agents do in minutes what would’ve taken me a day, but notice what the demos never show, the second month. Nobody films the moment someone has to change that app, find out why it breaks on the 31st of every month, or explain to a client why last week’s data is gone.

The other story is just as loud, only from the opposite corner, it’s statistics, it’s predicting the next token, it doesn’t understand anything, so whatever comes out of it is worthless. The first half of that is technically true, and I still find the conclusion lazy, because whatever is or isn’t happening inside, the output does real work, a migration across forty files that compiles, passes the tests and does the right thing is correct, no matter what produced it.

What bothers me about both stories is that they’re about the tool, when the questions I find interesting are about us, what we do with the time it frees, what we stop doing, and what we slowly stop being able to do.

What actually got cheaper

I want to be precise here, because “AI writes code now” hides the important part. What got cheap is producing code that looks right, a refactor, a test suite for some old module, boilerplate, a migration, the hours I used to spend typing those are mostly gone.

What didn’t get any cheaper is everything around the code, deciding what’s worth building, knowing what it must never do, noticing that the requirement itself is wrong, and judging whether what came back is actually correct and not just plausible. Those were always the hard parts of the job, they just used to be buried inside the typing, spread across days, so it was easy to confuse the hours with the work.

The cost of not writing it

This is the part I keep coming back to. When I write code myself, I don’t only produce it, I build a picture of it in my head, why this function exists, what breaks if I touch that one, which part I’m not fully sure about. That picture is what lets me debug something at 2am, it’s what makes me useful in a codebase at all, and I’m not convinced that reading a diff builds the same picture, I suspect it builds a thinner one.

There’s an old idea that you only really understand something once you’ve had to make it, and I think it holds for code more than we’d like to admit. Reviewing is a skill, but it’s one you earn by having written a lot, by making the mistakes yourself so you recognize them when someone else makes them. So I wonder about the people starting out right now (and I don’t have an answer here), if you never write the boring code, where does the judgment to review the interesting code come from?

It’s also why I still write some things by hand, on purpose. Not because I’m faster, I’m usually not, but because some parts of a project are the parts I need to understand completely, and I don’t know of a way to understand them without writing them.

Who signs the pull request

An agent can open a pull request, but it can’t be responsible for one. When something breaks in production, “the agent wrote it” isn’t an answer anyone accepts in a postmortem, and it shouldn’t be, the code ships under my name, so it’s my code, whoever typed it.

So I review an agent’s work the way I’d review a stranger’s, line by line, looking for anything it changed that I didn’t ask for. Agents rarely write broken code anymore, which honestly makes them harder to review, not easier, what they write is plausible code that does slightly more, or slightly something else, and plausible is exactly what slips through when you’re tired and skimming.

Checks, and their limits

What helps is making “done” something a machine can verify, one command per repo that audits the dependencies, lints, type-checks, runs the tests and builds. An agent saying it’s finished means nothing until that passes, and the check doesn’t care how confident the agent sounded.

But I want to be honest about how far that goes. A check only verifies what you thought to check. Coverage can be gamed, a test that runs every line and asserts nothing passes just fine, which is where mutation testing comes in, the tool changes the code on purpose and expects some test to fail, and if none does, the tests weren’t checking anything. And even with all of that, what I get is proof that the code does what the tests say, and nothing at all about whether the tests describe the right thing. That question is still mine, and I don’t see any check taking it off my hands.

Faster, and then what?

Every tool that makes something cheaper also changes how much of it we make. When code gets cheap, we write more of it, more features, more services, more pull requests, and every one of them lands on the one part of the work that didn’t get cheaper, the review. I don’t think more code is automatically more value either, most of the software I’ve had to maintain would’ve been better with less of it.

There’s something else that bothers me, more quietly. A model writes something close to the average of everything it has seen, which is great for the boring parts, and a little worrying for the rest. If most of the code in the world starts coming out of the same few models, I wonder whether it all slowly drifts toward the same style, the same patterns, the same safe solutions, and whether the odd, slightly wrong-looking approach that sometimes turns out to be the right one gets rarer, not because anyone decided it should, but because nobody typed it.

Where I land

I use agents every day, and I’m not going to pretend otherwise. For work that can be checked, migrations, refactors, tests, anything with a clear right answer, they’re one of the best tools I’ve had. Where the output can’t be checked, where the question is what to build or whether it should exist at all, I trust them a lot less, and I don’t expect better models to change that much, because the hard part there is that someone has to own the decision, and a more capable model doesn’t change who that someone is.

So I’m not writing this to tell you to use them more, or less. I’m writing it because most of the conversation around them is either cheerleading or mockery, while the actual work sits somewhere in between, in the unglamorous parts, reading, checking, deciding, and staying able to do all three.

次へ

または文章全21件またはランダムまたはホーム

わたしの作品わたしの文章

一覧を読み込んでいます…

一覧を読み込んでいます…

キーボードショートカット

検索とコマンド
Ctrl K⌘K
ライト/ダークを切り替え
T
すべての作品
P
すべての文章
W
開いている一覧を検索
S
ホーム
H
メールを送る
C
このショートカットを表示
?
開いているものを閉じる
esc

ショートカットはオンです。