Do we still need to read AI-written code?
On this page
On 1 December Laravel released a beta of Laravel Rust, the framework rebuilt in Rust. The launch post says it is built for a world where "humans will increasingly neither write nor manually read application code at scale". I wrote about what that means for Laravel and PHP. This post is about the second half of that sentence: reading.
Agents write all of my code now, and for most developers using them it's 95% or more. Writing code by hand is mostly settled. Reading it isn't.
My answer is that you should still read the code when you can. But you also have to accept that some code won't get read by a person, and that's fine. At a certain size of business, I think keeping a human reading the code in the 2AM loop is the irresponsible choice.
The tweet that started it
I tweeted about the launch:
Laravel has released a beta of Laravel Rust.
It's a full-stack framework built on Axum and Tokio. Laravel says it is near feature parity with Laravel PHP, and its internal benchmarks put it 18x faster on Laravel Cloud.
The launch post says humans will increasingly neither write nor manually read application code at scale.
Bun rewrote its JavaScript runtime from Zig to Rust in 11 days, with a pre-release Claude model doing much of the work. Anthropic bought Bun in December 2025. Ladybird has started porting parts of its JavaScript engine from C++ to Rust, also with AI help.
The reasons to pick Laravel are readable code and queues and cache built in. If nobody reads the code, those matter less, and it doesn't need to be in PHP.
I see this as the start of PHP's decline, even though it still runs about 70% of the websites W3Techs can identify a server language for.
The first reply was the objection I hear most:
if nobody's reading the code who's debugging it when prod breaks at 2am
My answer was two words:
Your agent
lol until it fixes the failing test by deleting it
That started a longer thread, and it's the most useful pushback I've had on this. Aiden has been the person holding the pager:
I have been the person holding that page. Reading every line did not stop the 2am call, but it meant I already knew where the system could break. Skipping the read does not skip the page, it just hands it to someone who never saw the code.
yep, the reading was never really about catching bugs, it's knowing where to look at 2am
These are fair worries. I think they describe the wrong fix for the risk, and I'll come back to each one below.
What a 2AM fix looks like with a human in the middle
Here is the version people are defending. Production breaks in the night, and a person has to:
- Get the call and wake up.
- Read the error and find out what is wrong.
- Prompt an agent to fix it, because they don't write the code by hand either.
- Check by hand that the fix works.
- Merge the pull request.
- Check that production is working again.
- Check that the logs look normal.
- Check that the bug is actually fixed.
Every step waits on a tired person. Step 3 gives it away: the person reading the code still hands the fix to an agent. They are mostly there to read and approve.
The cost of every minute
For a small side project, an hour of downtime costs very little. For a business at a certain scale, every minute offline might cost somewhere between £1,000 and £10,000. A long outage then runs into tens or hundreds of thousands of pounds.
Those are my rough numbers, but the surveys are in the same range. New Relic's 2025 Observability Forecast puts the median cost of a high-impact outage at $2 million an hour, about $33,000 a minute. In ITIC's 2024 survey, 41% of large firms said an hour of downtime costs them $1 million to over $5 million.
At those prices, the slowest part of the fix is the expensive part. The slowest part is the person.
Agents are already on call
This isn't a thought experiment. The incident tools are built around it.
- incident.io launched an AI SRE that opens with an alert at 2:00 AM and a root cause by 2:01. It "triages every alert, resolves what it can autonomously, and only escalates when human judgment is truly needed", and it opens a pull request with the fix.
- AWS DevOps Agent starts investigating as soon as an alert comes in. At general availability AWS said it cuts mean time to resolution from hours to minutes.
- Datadog's Bits AI SRE says it replaces more than 30 minutes of manual triage, and often has a likely root cause before the engineer has opened their laptop.
These numbers come from the vendors, so treat them as claims. And every one of these tools still keeps a human approving the fix. So today the realistic setup is that the agent finds the cause and writes the fix, and a person says yes. What I'm arguing is that the person's part should keep shrinking, and that reading the code shouldn't be part of it.
What about the agent that deletes the test?
This is the real risk. An agent told to make the tests pass can make them pass the wrong way. I've seen agents claim tests passed when they never ran them.
This was my reply in the thread:
You can still see the PRs it's creating to see if its just deleting a test.
But deleting a test isnt going to fix production errors.
You need a verification process to check if the bug has been fixed.
You use agents for that.
You need an agent to read the production logs to ensure the error isnt coming back.
You dont need to manually be reading the code at 2AM for that.
Deleting a test doesn't make the error stop showing up in the logs, so a check on the logs catches it.
Guardrails also stop it happening in the first place. In how I verify AI-written code I wrote about mine. A fix starts with a test that fails, and the evidence is pinned to one commit. The rule is never to weaken a test or the expected behaviour to get a pass. A second agent checks the evidence. Laravel Rust makes the same bet in its design: strict types and compile-time checks catch what a reviewer would have missed.
Who writes the check?
Who writes the check the log-reading agent runs? If it only watches for the same error coming back, a fix that renames the failure passes it. The 2am reading was never the check itself, it was the map that tells the checker where to look.
right, a renamed error sails straight past it. somebody who knows the code still has to write that check
This is the better question. If the agent only watches for the same error coming back, a fix that renames the error passes.
My answer is structured logging, which is already common practice. Each log line has a level and a message, so you can query them in Grafana, ELK or the logging tools on GCP and AWS. In Laravel it's just:
Log::error('Error message');
Log::info('Info message');That means you can query by level or by message, and the agent doesn't need to know the code to find a problem. A prompt like this, run every 10 minutes, does the job:
Search for logs where status = error.
Read the error message and stack trace.
Investigate and fix the error.
Create a pull request.The check is "are there any errors", not "has this one error come back". A renamed failure is still an error, so it still gets picked up on the next run.
Nash is partly right that a person still has a job here. Addy Osmani asks the same question in The Code Nobody Reads. He quotes a reply to a post by Thorsten Ball: "If the thing you don't trust is also writing the tests what is it accomplishing?"
His answer is that a check needs a source of truth that didn't come from whatever wrote the code: "a spec a person wrote, a reference implementation, a proof". In Agentic Verification he sums up the human's part: "Your job doesn't need to be reading each line of output, but you need to define what success looks like."
So somebody does write the check. They write it before the incident, from what the system should do, and the agent runs it every 10 minutes. Nobody has to read the code at 2AM for it to work.
What about knowing where to look?
Aiden and Nash's best point is that reading was never about catching bugs. It's the map in your head that tells you where to look at 2am.
I agree that's what the reading gave us. But the map lives in one person's head, and it only helps if that person is the one who gets woken up. That person's map also goes out of date every time an agent merges a change they didn't read.
A stack trace in a structured log already points at the file and the line. An agent can read the code around it in seconds, every time, whoever is on call.
The map can also be written down. Lauren Tan (poteto) builds Cursor's agent skills plugin, pstack. In The Complete Guide to pstack she says it lets her ship 2,000 pull requests a month to production. Part 1 is called "Verification is all you need". Its centre is a verification skill: a small command-line tool that lets an agent run, drive and debug the app, plus a Feature Map. The Feature Map is "an easily searchable map of all the features available in your app, what it does, and how to get to it from a user's perspective". She calls it "materialized memory", and a scheduled job keeps it up to date.
That is Aiden's map, kept in the repository where every agent can read it. Those checks run every time, at any hour. A person reading code at 2AM is the least reliable reviewer you have.
What other people are saying
The split is less clean than the 2AM reply makes it sound.
On the side of not reading:
- Peter Steinberger's interview on the Pragmatic Engineer podcast is titled I ship code I don't read. He treats pull requests as "prompt requests", and talks about architecture with the agent in place of reviewing code.
- Steve Yegge told Tim O'Reilly that code is a liquid: "You spray it through hoses. You don't freaking look at it."
- Andrej Karpathy's original vibe coding post said to forget the code even exists. By February 2026 he was describing agents as delegation and telling developers to "remove yourself as the bottleneck".
- Addy Osmani, two years after telling people to review every line of AI code, now writes in The Code Nobody Reads: "you don't need to read all the code." He still wants a person to approve every merge, and "core and sensitive paths still need an owner and a careful human review". He expects flight controls and high-risk medical devices to keep line-by-line reading for many years.
- Alexander Opalic, learning from pstack, sums up its rule for evidence: the agent runs the real app end to end, and "a passing type check doesn't count".
- Boris Cherny, who leads Claude Code, told Fortune 100% of his code has been written by Claude for months. He doesn't say whether he reads it.
On the side of reading:
- Simon Willison says your job is to deliver code you have proven to work, and that "a computer can never be held accountable".
- In March, Addy Osmani called it comprehension debt: "Making code cheap to generate doesn't make understanding cheap to skip." By September he had moved to the other list.
- Margaret-Anne Storey calls it cognitive debt. The cost of going fast ends up "in the brains of the developers", and they can lose the plot of their own system.
- Armin Ronacher, after a year of working with agents, still reviews a lot, and finds unreviewed AI pull requests "quite rage-inducing".
The numbers say most developers aren't reading every line either. In Sonar's State of Code survey from January 2026, 96% of developers said they don't fully trust that AI-written code is correct. Only 48% said they always check it before committing. Sonar sells code checking tools, so it has a stake in that gap.
The strongest point against me is Anthropic's own study on AI and coding skills. In a trial with 52 engineers, the group that used AI scored 17% lower on a test of what they'd learned. The biggest gap was on debugging questions. If people stop reading code, they get worse at the exact skill the 2AM argument depends on.
I agree with that. I just think it points the other way. If the person you wake up is getting worse at debugging, putting them in the path of every outage makes outages slower.
Where I've landed
I still read code. I read it when a change is risky, when I'm learning how a part of a system works, and when an agent is going in circles. In how I review AI-written pull requests I explained that I grade every pull request by risk. Low-risk ones merge on their tests and CI, and nobody reads them, including me. I gave up reading every line because there were too many pull requests to keep up with.
So my answer to "do we need to read the code?" is: read it when it's useful, and don't build a system that only works if someone does. Accountability is still mine. I just don't think reading every line is how I meet it any more. Tests, types, pinned evidence and an agent that responds in a minute carry more of it than I can at 2AM.
That is the bet Laravel Rust makes too. It puts a strict compiler, typed input and agent skills where a person reading the code used to be. I think it's the right bet.
What I built this week, most Fridays.
What I shipped across my products, the best things I read, and new products before anyone else. Unsubscribe in one click.
Read the latest: Adding security and content checks to Lookout