r/webdev • u/TheOnlinePolak • Nov 02 '26
Discussion For experienced devs who now allow AI to write most of the code: what do you actually review, and what do you let slide?
I’ve been a casual developer across many languages for ~10ish years but got a degree in mechanical engineering. I pivoted and started an analytics engineering job around 3 years ago and starting doing web development for side projects.
Lately my team has leaned heavily into AI-assisted programming primarily using Claude Code to build React Apps in Databricks. These are primarily CRUD apps but sometimes they do write back to our ERP so they affect the business greatly. The AI writes most of the code now, and I’m trying to figure out where my review time is best spent.
Options I’m weighing:
- Full line-by-line review (quality, readability, structure)
- Mainly reviewing the tests, and trusting the code if the tests are solid
- Testing through the UI, then checking the DB/tables to confirm data was written correctly
Does code readability still matter if AI is the one maintaining it? What has bitten you when you skipped review? If you have a concrete review checklist, I’d love to see it.
12
u/Realistic-Eye-5088 Nov 02 '26
You casually mention that these CRUD apps write back to your ERP in the middle of a bullet point, like that's a footnote, and that's the only part of this I'd actually care about. Everything else is a style question.
4
u/Warm_Trouble6656 Nov 03 '26
業務だと難しいかもですが、個人プロジェクトなどで一回全部ノールックマージで、開発してみると、レビューしないといけない所が見えてくると思いました!
2
u/codebryo 27d ago
I actually stopped caring too much for the code written. The secret to success here is to build a good gauntlet of challenges all code needs to pass through.
What I actually do review are tests.
But here's the rought gauntlet:
So far ... this does wonders. And I'm sleeping really well while products are running.
131
u/armahillo rails Nov 02 '26
I review all my generated code before pushing it up for another user to review. I always catch stuff. I always ask myself “how would i review it if it were someone else’s PR?”
I always manually read another dev’s PRs. I may also have claude look through it and then i discuss my thoughts with claude about it to see whether my feedback makes sense, or to ensure i understand what it does.
Readability still matters a lot to me because we are still responsible for resolving bugs and misbehaviors. Also my experience from being burned by things in the past can often fine-tune the code to be more adaptable to future change.
56
u/magnakai Nov 02 '26
Review everything. It doesn’t matter if I write it or my agent writes it, I still have to take responsibility for it.
134
u/joshhbk Nov 02 '26 edited Nov 03 '26
Very very funny that a common trend in this thread seems to be “I review all my precious backend code but pretty much just YOLO the bits my actual users interact with”
If this is how you think then I’m sorry to tell you that yngmi
10
u/Frozen-Yogurt-Man Nov 03 '26
If your company still allows you the luxury of time to thoroughly review all AI generated code, consider yourself very lucky. We rely a lot on CodeRabbit and an internal tool where 3 separate models review your changes and align on a consensus. It’s the only way to hit our required metrics and stay off the chopping block
9
u/prophase25 Nov 03 '26
I think that knowing what is worth writing a spec for, reviewing the code of, etc. is becoming the skill gap. Programming well the past 10 years was about knowing what to write yourself and what to leave to a library. Go all the way back, and it was about what to write in assembly vs. C.
There is no general answer to the question of, "should I review the code". Is it important code? Review it. Knowing what is or isn't important code is and always has been the skill gap.
17
u/FragDenWayne Nov 02 '26
Nothing. Nobody cares about anything where I am anyway.
5
u/acamann Nov 03 '26
Like always, make sure I understand which bits have the greatest risk or blast radius and give more attention to those, and largely trust the developer/agent with most of the rest until they give me a reason not to.
5
u/word_executable 29d ago
I question the decisions. I suggest different ways. Don’t read the code anymore unless it’s very important.
4
u/rpgFANATIC Nov 02 '26
If I can't read, understand, and enjoy the styling of the code then I don't publish and I don't approve
Same as before
11
u/guidedhand Nov 02 '26
Anything internal tooling, unreleased, front end or test files are just glazed over these days. At this point, I don't care if the code breaks anything, as the repercussions are on the one making the pr, not the reviewer. With prs growing to like 70 changed files these days, I've stopped caring to look closely. It would mean I never got to do any actual work my self
6
u/Bitter_Plastic_818 Nov 02 '26
Anything touching permissions, payments or database writes deserves careful review. Passing tests alone is not enough.
6
u/Shoemugscale Nov 02 '26
So, I have been developing professionally for 26+ years now, I have seen it all and built it all.
For the last year and change I have gone fully agentic in my coding.
What do I do now? Well, I montor, review and direct. Much like a manager if you will, for example, I'm working on a large-ish project fully done with claude.
For me, I took my years of experiance and applied it to AI, meaning, the project started off with a solid body of research, design requirments and MVP etc. This allowed me to start from a good foundation.
At first, I would monitor everything the AI did, I slowly started to trust it more and more and the models for sure got better, however, each commit came or comes with its own code-review and e2e testing update, should something new be added or changed, it must create its test scripts (along with fully unit testing too)
Additonally, I have whole other sessions running along side, building the MCP layer, whos whole job is to build against it agentically, that has been like having a live unit tester because it will discover gaps and usibility issues etc.
The harness I have today is much more mature then what I started with, but I'm really happy with how things have come togeather, its basically allowed me to build a system that is 'me' in a sense, taking decades of experiance and cramming it into a toolset, fully designed to replace me.
Yes, I purposly built it to replace me, I'm going to retire in a few years and well, I need to give the youngers on my team a tool that they can master and continue on, one that is purpose built for AI, meaning it will grow with the demand of AI, but they will be the ones who know how to use the tool
That might be wishful thinking but, I very much want to create an ecosystem that makes them more productive, can lean on agentic technologies and also allows them to not become a victum of AI
11
u/k3liutZu Nov 02 '26
It used to produce code like a junior dev. Reviewing and redoing parts would sometimes take as much if not less. And you could get better quality.
Than last year with Opus 4.6 it started producing mid level code (sometimes better, sometimes worse). Good enough for various tasks. A solid companion. You can let non-critical items in. Like with a more junior teammate. Sure, the variable name is _fine_.
With Opus 5.5 (and Fable, but that’s just too expensive) it’s a solid senior dev. It can do most tasks. Quickly and most of time with a good reliability attached to it. I could spend 2 days writing this. Checking all cases. Or I could have Opus 5.5 do it in maybe 30 min. With me writing the ask for 15 min and another 15 min of testing.
Also bear in mind that all models do have wast knowledge. With the more intelligent ones they also put it to better use. Does it produce bugs? Yes, if it misses things. That’s what you need to review it for and keep a good high-level knowledge of the system. It already finds places and flows I might miss. But you have to check. have him check any smell in the code or architecture. It will find and solve them.
Do I also get dumber? Maybe that’s a harsh word. In a way I am. But I am 20x-50x more productive. I’ll take the 1 hour jo’s instead of 2 days and have maybe 6-7 other items done in the same day. Lots of them which would have just staying piled at the bottom of the backlog otherwise.
3
u/JadedAd8349 Nov 02 '26
Trusting the code if the tests are solid" only works when the tests weren't written by the same agent that wrote the code, otherwise they just confirm the code does what the code does. Readability matters precisely because AI isn't the one maintaining it, you are, at 2am when someone asks why the ERP writeback posted an invoice twice.
17
u/GarlicDaGhost Nov 02 '26
I do full stack development. Generally my biggest concern is the backend, i usually do a thorough review of it to ensure security and optimizations.
On the frontend i don't worry much. I don't code review it much. As long as it looks nice and the flows are correct.
Client bugs can always and ugly buttons can always be fixed, but a security breach or vulnerability on the server / backend can do irreversible damage.
2
u/Dagoneth full-stack Nov 02 '26
It’s been really interesting experimenting with different ways of using it, because I don’t think anyone really knows at the moment.
I have ADRs that I have it write against, and a suite of really good tests to apply enough back pressure so that it writes pretty decent and competent code, and then just apply my own product knowledge on top.
That’s all based in a good 20 years of engineering experience though, so it’s just really doing what I could do but faster. I have no idea how the next generation is going to do it.
2
u/Virtual_Active_7434 Nov 02 '26
your ERP will find out
2
u/Afraid-Driver4160 Nov 02 '26
just let it touch the ERP
2
u/Empty_Ninja_6291 Nov 02 '26
The only way I know is to run it, or bullet point 3. Old school black box testing. Trying to manually review it line by line like human code is pointless, because it's too inhuman to read, and there's too much of it.
2
u/No-Mechanic-433 Nov 02 '26
Since it writes back to your ERP, I'd spend most of the review time on that path: what exactly gets written, what happens if the same job runs twice, and what happens if it dies halfway. Give it a service account that can only touch the tables it needs, so a bad generated query can't touch anything else. The rest I'd spot check.
2
u/avenp Nov 02 '26
All of the above, and AI generated code still needs to be able to have humans work on it and review it, so for me readability is still very important. Better to be using "boring" patterns instead of clever one-liners, etc. regardless of its AI or human generated.
2
u/AggressiveResist8615 Nov 02 '26
Get another agent to review it lol
2
u/onesneakymofo Nov 02 '26
Business logic, UI / UX, security, database design, and context
2
u/CopiousAmountsofJizz Nov 03 '26
It's about supplying derministic mechanisms to make AI self-accountable. The easy win here is make it habitual that it writes E2E suites and test coverage for all contributions. Gate review passes before PRs merge and then respond with an adversarial evaluation that verifies with you before pushing and resolving.
2
u/elydelacruz Nov 03 '26
Everything except the tests; I have several directives about test coverage, linting, and builds and all commits and new code (including bash scripts, etc.) must be covered by tests and must be covered at a minimum of 80%.
Note: I review the test files only until I see the actual test cases start (like to make sure things are looking as expected up to then).
Also, on top of everything - Suite wide coverage, lints, and builds must pass before a commit can be made and a PR could be opened.
2
u/Regular_Antelope7381 Nov 03 '26
one thing that's helped me: before reading the diff, ask it for a short summary of what it changed and anything it assumed. then review the diff against that. the bugs are usually where the two don't match, or in an assumption it states like it's obvious. and yeah the erp write-back is the part i'd read line by line, the crud screens way less
2
u/ammuench Nov 03 '26
What I've done to make it more manageable for myself is build a plan for the work, then direct the agent to divvy the plan up into related "chunks" of work that act as a good checkpoint for me to review together. Helps me read through more meaningful diffs, and then also make adjustments way more rapidly than waiting 'til the end of a 20 file diff. Once I approve a checkpoint, I commit it then let the agent build up to the next one. Rinse and repeat
Plus, if you have other teammates, you can use that structure to give them a review guide by letting them follow the commits
2
u/ArielCoding Nov 03 '26
Your Databricks staging table is your safety net, so focus your review on the code that writes to it, make sure running a job twice can’t create duplicate rows, reject bad data before it’s saved, and log who or what wrote each row and when.
Then after each release, click through the app and check that table matches what you did, so you’re verifying results instead of reading functions.
2
u/abundant_singularity Nov 03 '26
As a principal engineer i mostly review AI slop, sit and lead architectural meetings, write tech docs, and ensure tech leads are on the right track. The toughest part is we are very light on the product side so we have to pull teeth to get any guidance if we want acceptance criterias to guide AI
2
u/saito200 Nov 03 '26
read the post by claude.dev about how they do code reviews
2
u/mulquin Nov 03 '26 edited 29d ago
I was and still am a mediocre programmer but have a decent eye for design and systems architecture. So I start with the interface; it should show the correct information at the correct time, etc. Then I throw all kinds of prompts at the code to look for things like security holes, n+1 issues and potential areas for caching, "imagine you're a hacker that is determined to destroy this sytem". These prompts must be done on a continuing basis. But it all comes back the user interface.
I found a lot of issues came from the model making assumptions due to my initial design prompt not being clear or having unintended implications. At the end of prompts I put "Ask me lots of clarifying questions", and it will then assess those assumptions before proceeding and have me confirm them.
2
u/Former_Produce1721 Nov 03 '26
AI can't maintain at medium or large scale
For tools I vibe code. For product I review every line and other AI and humans also review before merge.
2
u/PravoNaZhizny Nov 03 '26
not a webdev simce childhood but in firmware i review absolutely everything but my agents are very solid
2
u/sydrk Nov 03 '26 edited Nov 03 '26
To answer your question, yes I believe that code readability should still matter. Anything that you "trusted" AI to do, has to be verifiable by the human. Everything project that you do should be of a quality in code and documentation that can be handed off to a human team. While I appreciate Jensen Huang's view that in future nobody will ever code, I don't think that would be sooner than he thinks. Besides, it won't mean that no human being in the world will ever know how to code ever. Therefore, the principle in my answer should still stand.
What I think is realistic, is when AI has proven to be aligned with how you build your web product, you begin to identify low to medium impact tasks and work that you can "risk" it to go wrong and then easily fix. That said, all the more you cannot hand off coding entirely to AI. Ideally, full line-by-line review will become less and less but never gone.
Since you are talking about web products, AI running Playwright for headless testing has been very useful to me. Nonetheless, real human inspection through the actual UI is still necessary to straighten out against misinterpretation or miscommunication of the outcome (happens in human teams too – and not rarely!). However, as you and your team build more reliable expectations of your AI agent's work, the amount of testing should reliably come down.
I built my latest web app this way. It is a locally run web builder that can create quality marketing Next.js sites using the principles that I just shared. Definitely helped me to build multiple websites far more quickly, efficiently and DRY-ly, always updating the Product Requirement Document and the Technical Design Document. At any time if I need to hand-off to a human or a human-team, I am confident they can take the project and run with it.
2
u/squeeemeister Nov 03 '26
“Allow” hah, “forced” is more like it.
2
u/Full_Tooth_a Nov 03 '26
I'd review the ERP write-back closely and spend much less time on the React markup. I'd want evidence that authorization and account scoping are correct, retries can't duplicate a mutation, partial failures can be recovered, and every change produces a useful audit trail. UI tests won't catch most of those problems. Readability still matters because the eventual bug may be "why was this order updated twice three weeks ago?" rather than a clean test failure.
2
u/Narutom 29d ago
I'd say I review code more now that I use Claude. I've saved a bunch of time not having to work things out and write the code manually, but the code that reaches PR goes through a rigorous back and forth, exploring options, filling gaps, and a significant amount of quality control, so the time taken to do that almost cancels out the time saved.
However, all my PRs now come with tests, adequate documentation, and follow up tickets where I've found existing gaps or bugs in the codebase. I also use agents to do manual testing of user journeys and find edge cases. So overall although my output in terms of tasks is only marginally increased, the depth and quality of what's produced is significant.
2
u/rachie27 29d ago
AI pre-review and autofix. I read to code to ensure I understand what it’s doing. I don’t read tests. I have scripted tests using Playwright, monitors, and manually verify what’s left.
2
u/smakusdod 29d ago
Nothing slides. Your previous commits inform the future. Review and understand the code and decisions made. Still create unit tests for things that tend to break or critical sections - benchmarks should be part of this.
2
u/Gary-Burfield-Wallis 28d ago
Your clarification about the Databricks table is the important bit for me.
I'd be much more concerned about what happens when that data eventually reaches the ERP than whether the React interface appears to work.
You can have a perfectly functioning screen, correct-looking staging data and still end up with the wrong result in the business system.
I'd deliberately test what happens with duplicate submissions, retries, invalid records and interrupted updates. Then check the actual ERP result, not just the staging table.
I'd also want a clear record of what changed, why it changed and how to recover if something goes wrong.
Tests are important, but when AI writes both the implementation and the tests, there's a risk they're both working from the same incorrect assumption.
I wouldn't necessarily spend hours reviewing every cosmetic detail, but anything changing business data needs to be understandable to the person who's going to be responsible when it breaks.
2
u/nightman 23d ago
There's nice Matt Pocock one-way and two-way door explanation - https://x.com/mattpocockuk/status/2100895593618907402?a=Ej_QLyxZ7DN3rTbH0rU&s=20
3
u/Vegetable-Capital-54 Nov 03 '26 edited Nov 03 '26
I don't read the code anymore.
A year ago I would have thought that's a crazy statement btw. A few days ago I pushed 100k line commit straight to production. Claude is better programmer than me anyway, and I've been programming for 21+ years. Manual programming is dead.
2
u/Clear-Aide1349 Nov 02 '26
Who wrote the tests though? If it's the same model that wrote the code, "the tests are solid" just means it agrees with itself. Readability matters the day an ERP write goes sideways and you're the one in the diff.
2
u/vikentii_krapka Nov 02 '26
I'm an engineer with over 17 yoe currently leading a team. My policy is to not review code itself basically, maybe skim through it to see if something catches the eye and that's it. The reason behind it is that we don't work with code directly anyway, AI writes it and AI maintains it. So, PR review focus is now shifted from code to product outcomes.
2
u/Me-Regarded Nov 03 '26
Just let it do everything, check nothing. I'm just doing as little as possible and riding this into the ground which is coming for everyone. Dev work is obviously finished
1
u/oscarolim Nov 02 '26
Knowing the code matters, because you shouldn’t be using an agent to change a single line of code. However for you to know which line to change, it requires you to know where it is.
Always ask to plan the changes first, or the implementation plan, so you can review and amend where required. And ask for small elements at the time when dealing with complex goals (for example if you’re building a dashboard with charts and metrics, first define how a single chart per type should behave, then the metrics, then the dashboard, instead of going for “make a dashboard with 3 charts and 2 metrics”. The former makes it easier to review, the latter gives you a barrage of code you feel like too much to look at.
1
u/ZachVorhies Nov 02 '26
Design out tests and architectural linting and find bottlenecks to unlock more speed.
1
u/Ok_Jello8972 Nov 02 '26
Small thing: "~10ish years" is saying it twice, the tilde already means approximately. And "I have an analytics engineering job around 3 years ago" doesn't hold together, that one should be past tense.
1
u/Irythros Nov 03 '26
Short basic script for doing some management thing? I'll glance over it. Look to see what is there, what may be missing, the inputs etc but I won't be scrutinizing it for edge cases. It's using just 100-200 lines of bash so it's not really a problem.
Medium to long management script? I'll probably give it less of a review but I will instead have it be written in something like Go with types and testing attached.
The rest is also kind of like the above. When its super short I'll be more critical on the review but less critical on the requirements (type checking, bounding, etc). The longer it gets the more restrictions it has and the more testing it gets.
Additional care is taken when it comes to certain areas. For example payment interaction, authentication, authorization etc. Those get 100% complete manual review with heavy scrutiny. They also get sent through security testing with abliterated models trying to break it.
1
u/RafaelSirah Nov 03 '26
I wrote a CLI on top of Claude code that integrates with our project management tool via mcp that reviews the work by the agent(s) in 3 stages.
1
u/saltyourhash 29d ago
The code
1
u/IslayProgrammes 28d ago
Make it write tests for everything and review the tests, that’ll give you a real look into what it’s doing without reviewing 1000’s of lines of code
1
u/FrenchFryNinja 23d ago
For production apps:
Every line gets reviewed by a human. I’m in health care. We’re pretty rigorous with testing and code quality.
1
u/Positive_Dirt_7020 4d ago
Code review is dead with AI, now I only watch for important parts and user experience. Get over with it guys
1
u/-Paradise javascript 29d ago edited 29d ago
Simple changes - just prompt.
Medium - A simple plan grill me with docs skills / to spec / build
Large changes - I tend to just POC something with the AI let it build something and have a high level review how it approached and see what it done differently to whatever I had in my head. Ill then use this information to and any other research maybe use the wayfinder skill to then come up with the actual spec and to tickets.
https://plannotator.ai/ Is probably the best tool i've used with AI.
annotate the plans and the code review tool in it is great for working with agents.
I do all the the options you listed it just depends on the feature. Small changes I would rather just verify it myself. Utilise stacked PRs or don't let your agent commit and have it ask for a review after each task and be sure to break the tasks down small.
I find that AI still over engineers a lot of solutions and theres still value in the code being readable and you understanding how everything works.
-1
u/mcharytoniuk Nov 02 '26
I wrote my own custom linter that enforces specific rules I like, and I kept expanding it until I felt no need to review the code.
So now I pretty much just start a coding session and go away to do something else in the meantime
-3
u/BlahYourHamster Nov 02 '26
I read any backend code or database scripts line by line but I mostly gloss over HTML/CSS and front end JS to some degree.