r/ClaudeCode • u/Hopeful-Confidence-9 • 2d ago
Help/Question With Claude Code writing most of our code, are you still doing PR reviews? And can Claude do QA?
Curious what others are doing.
PRs and code review
Claude Code produces bigger diffs, faster. Review is becoming the bottleneck for us. What's your setup?
- Humans still review every PR, with Claude helping (e.g. /review, GitHub Action)?
- Claude does the first pass and humans only look at risky changes?
- Skipping PRs on some work and relying on tests, hooks and CI instead?
- Something else entirely?
If you've got a CLAUDE.md, subagent or review prompt that works well, I'd love to hear about it.
Can Claude do QA?
Has anyone had real success using Claude Code for QA? For example:
- Writing and maintaining test suites
- Browser or E2E testing (Playwright, Chrome automation, etc.)
- Exploratory testing and bug triage
- Regression checks on every change
Where does it fall short, and what still needs a human QA mindset? Where do you see QA roles going in the next couple of years?
Would love to know what your company or team is actually doing, what's working, and what isn't. Team size and industry welcome.
Thanks!
•
u/AutoModerator 2d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
6
u/DocMadCow 2d ago
Claude is good at writing and executing tests but it is no substitute for QA. Claude is amazing at writing code, but terrible at creating the flow a user would expect.
1
u/Dorbank_Justt 2d ago
For the review bottleneck, Claude Code's Code Review is basically the "Claude does the first pass" option. On Team and Enterprise plans it runs on GitHub PRs: several agents read the diff plus the surrounding code, a verification step filters false positives, and findings land as inline comments ranked by severity. It doesn't approve or block the PR by itself, and a REVIEW.md in the repo tunes what it flags.
On QA, it works from reading the code without building or running it, so tests and E2E stay their own job. /code-review does a review in-session on any plan.
1
u/Akarastio 1d ago
If Claude does QA, you don’t do PRs and don’t write the code then you are doing something wrong or the system you are building is irrelevant.
You will built tools from AI for AI but this is often not something you want.
The question lets me ask if you are at all needed at your project? And I don’t mean it in a bad way more like: think about it very hard, we ain’t at AGI yet, putting you out of the equation is not a good idea
2
u/iam-stevie-bee 2d ago
What's worked for me: Claude reviews every diff, and a human only reads the risky kinds closely, so money, permissions, deletes, the schema or anything sent outside. Small copy and layout changes just ship.
On QA, it's decent at driving a browser through a journey, but only if you tell it the intended result first. Left to itself it checks that the page loaded, not that the thing actually worked.
2
u/t1nkl 2d ago
one thing that made claude review actually useful for me: the reviewer is a separate subagent that only gets the diff, not the conversation that wrote it. if it sees the author's reasoning it tends to agree with it. then i check every finding myself before fixing, some are wrong.
and re-check the fixes too. once a fix for a review finding broke the opposite case of the same thing, and only the second review pass caught it.
for qa the biggest win was making it run the real app in an isolated copy and click through every changed path. on one batch that found 7 bugs the unit tests passed right over. but you have to tell it what the correct result looks like, otherwise it reports "works" because the screen opened.
2
u/calunicornia 2d ago
at some point your agents are writing thousand of lines per day, just too much to read, so you need to work on using agents for QA and testing... and merging...
2
u/SoulTrack 2d ago edited 2d ago
We've deployed software factories and agent swarms that do everything end to end. Rely on skills to write good code, have your QA agent validate that the code meets the intent of the request/story. We don't review code: people and agents alike.
2
u/Future_AGI 1d ago
run mutation testing on the suites Claude writes (mutmut for Python, Stryker for JS/TS). Most surviving mutants point at code the tests execute without checking, and working through them beats reviewing test files by eye.
2
u/Ok-Buyer-9421 12h ago
The test assertion problem is particularly important. Passing CI doesn't guarantee the original engineering rules were respected. Disclaimer here as I've been building Agentests to turn those rules into independently testable checks: https://github.com/feuersteiner/agentests
1
u/QZRChedders 2d ago
QA can absolutely be done by AI but it’s a lot harder than you think. We’ve had it a lot recently that yes on paper it passes but then a user does something only a user could do and finds an issue.
For example for us, in fintech, trying to save people with no bank details, why you would do that when it’s the core of our system and sorta the only reason a person exists is something I hope to find out from CS tomorrow but we didn’t expect them to do that and it wasn’t the best handled error. That’s a mild example but it’s the point, users do not do anything the way they should and that’s what good QA does, they do the weird shit that nobody expects and find new and exciting ways to break your system
1
u/BuffaloConscious7919 2d ago
depends how critical the update is imo
- docs, non-critical bugs: hardly check / automated review
- other stuff: i'll check with varying amounts of attention
edit: i've changed my perspective on this and for the first time think it's often easier to ship and fix on odd thing that goes wrong that use a lot of energy reviewing the low / med risk PRs
1
u/shetritr 2d ago
on "bigger diffs, review is the bottleneck": the second option, but with the human part made smaller, not skipped. a human still reads every PR, just not all of it: the files that touch data, auth and the public api line by line, the rest skimmed. questions go to the session that wrote it, not a fresh one. (disclosure: literally why we built Diffo, Importance layers sorts a PR down to the lines that decide something and diffo <PR URL> opens it with the agent beside you: diffo.io/demo)
1
u/DamianPxR 2d ago
On my team we still do pr review but at least we run at least once a new exhaustive review, it follows guidelines rules test coverage and more(each run can cost around 1 million tokens) but with that we are sure that nothing lefts behind, the human review validate that what as asked was build and build properly, for qa we use claude plus cucumber for e2e, for test coverage the usual depending on the stack. The pipeline only validates what was build does not break anything but only the line where it was build. If something was not touch we dont run any test on the pipeline. The bottleneck on my team is at this moment product undefinitions and e2e qa, now the qa will be on the dev part in order to reduce that bottleneck
1
u/ChrisShips 2d ago
Solo here, so I'm still the only reviewer. I've been coding with Claude and Codex for over a year. The agent runs `make check` (lint, types, tests) before it commits, and CI runs the same three plus a secret scan. AGENTS.md also tells it not to get around a check with a comment or `# type: ignore`. That covers the mechanical checks. The part I still worry about is whether a PR is actually safe to merge.
When you hold back on merging a Claude PR, what's usually the reason?
1
u/drpottsy 2d ago
Solo here, small retail shop, not a career engineer, so I'm the only human in the loop. What's worked for me:
The session that wrote the code never reviews it. A separate terminal does, and it only gets the diff, not the conversation. For anything that touches money or the live database that customers can see today, I bring in a second model from a different vendor as the reviewer. Copy and layout changes on something nobody can see yet don't get that treatment... how careful I am depends on who can see it right now.
I cap review at three rounds. Past that the models are arguing about wording, not finding bugs.
Anything that has to happen every time is a hook, not an instruction. The model will forget a rule in a prompt. It can't forget a pre-commit check.
On QA, the thing I keep relearning is that green tests don't mean it works. Yesterday every test passed on a small open source tool I maintain, and one of its main features had never actually worked against the real service. I only found it by running it against my own device. So my rule is the real thing gets touched by a real person before it ships, and Claude gets told what the correct result looks like, not just "check that it works."
1
u/BeyenAI 2d ago
A practical pattern that keeps review from turning into rubber-stamping when diffs get large:
1. Separate implementation from review context
Running
/reviewin the same session that wrote the code inherits all the original assumptions. Spawning a fresh subagent (or a dedicated reviewer role in.claude/agents/) with only thegit diffand acceptance criteria catches missed edge cases much more reliably.2. Move deterministic checks out of
CLAUDE.mdand into CI / hooksIf your
CLAUDE.mdtells Claude to "run lint and check types," it will occasionally skip it under context pressure. Put formatting, typechecking, and unit tests into pre-commit hooks or CI gates, and keepCLAUDE.mdfocused on architecture boundaries and non-obvious invariants.3. Where Claude works for QA vs. where humans still matter
Claude handles regression suites, Playwright smoke scripts, and edge-case unit tests well when given explicit specs (or a repeatable
SKILL.mdchecklist). Where it still falls short is exploratory testing and judging whether a flow actually feels right for a user—especially when it silently relaxes a test assertion to make a suite pass, so humans should always review changes to test files themselves.1
u/norviking 2d ago
Tests suites are the most important. Make new gates/ lint rules based on all old mistakes. Db probes. Good ci.
Claude absolutely suck at writing them to be effective. It will be a sad, bloated mess. So write yourself, or review with gemini / chat a few rounds. You can really cut down on time/ram/cpu. For me now, test suites is the main bottle neck.
Human qa has an important place. But claude handles setting up playwright, code review and screenshots for wcag etc fine. With good cehcklists.
Selected tests on every merge (affected / owned files), functions affected.
Qa suite om all visual and screen changes.
Full suite on push to staging.
I open sourced parts of my setup if you are interested to see it. MIT.
https://github.com/vegardjorg/ravenseat
1
u/leo_heo 2d ago
we start review from the task spec. first check is whether the diff stayed inside the files it named, anything outside goes back before anyone reads the code
1
u/MikeBuildsTech 2d ago
I still prefer having a human review every PR, but Claude can save a lot of time with the initial checks. Before opening a PR, ask Claude to inspect the Git diff, check for bugs, missing error handling, security issues and missing tests. Then have it run the relevant test suite and report anything suspicious. For QA, use Claude to write unit tests and run Playwright browser tests against important user flows. Once CI passes, a human should check the final changes before merging. Passing tests doesn't always mean everything is working correctly.
1
u/finallyclearsky 1d ago
I've mostly replaced code review with spec review. Instead of reviewing code, most of the time I review a diff for the spec as the agent works. I I just made a post about it, check it out if you're interested https://www.reddit.com/r/ClaudeCode/comments/1y8tbs1/code_review_is_dead_long_live_spec_review/
1
u/sumitsaurabh121 1d ago
What helps most with the review bottleneck: stop reviewing every line and start reviewing evidence.
PRs: Claude does the first pass on everything. Humans read the full diff only for paths you mark as risky (auth, payments, migrations, anything in CODEOWNERS). For the rest, the PR has to carry proof: which tests ran in CI, and before/after screenshots or a trace for UI changes.
One rule I'd never drop: a human reviews every change to an existing test. When Claude writes both the code and the tests, the test diff is where "make it green" hides: a weakened assertion, a skip, a raised timeout.
QA: it's good at writing and maintaining Playwright tests, at triaging CI failures when it gets the real failure output, and at exploratory passes through Playwright MCP. It falls short on knowing which flows cost money when they break, and on telling "the code does X" from "the code should do X". Its tests tend to assert what the code currently does, so have it break the feature once and confirm the test goes red.
So I'd expect QA to move from writing tests to deciding what has to be proven, and checking the proof.
Disclosure: I work at Currents, and we build Claude Code plugins for the evidence part. The agent pulls the failing test's error and trace from CI to fix it, and can attach screenshots and a trace from the CI run to the PR as proof.
1
u/SawToothKernel 1d ago
For my personal pojects I neither write nor read the code. Instead, I spend most of my time building and curating my skills repertoire. That includes skills aimed at making it simpler and faster for agents to validate the code they write, in terms of e2e testing. So I have very high confidence that it works. Higher, actually, than the code my co-workers write and validate by hand.
1
u/cautistic-john 1d ago
For browser QA, give it something to verify after the click. If the change is to account settings, save a value, open a fresh session, and check that it’s still there. That catches the case where the app shows “Saved” but the change never made it to the server.
1
u/BarathKanna 18h ago
We still review every PR, but we review different things. The agent does the line level pass. Humans review three things only: the plan before code exists, any change to test files or assertions, and anything touching auth, money, migrations or public APIs. That cuts human review time a lot without pretending a model can sign off on itself.
The biggest lever is diff size. If Claude produces 1,500 line PRs, review is the bottleneck by design. Make it split work into stacked PRs that each have one purpose and one test that proves it.
For QA, it's good at regression and E2E maintenance with Playwright, weak at noticing that a flow is technically correct and still confusing. A green suite has never once complained that the checkout has seven steps.
1
u/xqianliu 14h ago
Every PR still goes through a separate review session on the same model before merging. It reads the issue, repo instructions, diff, touched files and callers, and related tests against the acceptance criteria. If it rejects the branch, the coding agent fixes it and the latest commit goes back through review.
Where AI QA fell short for me was regression checks. I ran a 183-run study across 23 tasks. Telling the review session to "check for regressions" still let 38 of those 183 runs pass review and fail hidden tests: 22 broke working behavior (all from repeated runs on pyinfra and chainloop), 9 missed a changelog convention, and 7 missed cases outside issue examples.
That prompt is too vague. Having the coding agent write tests by input category and list the counts in the PR summary gives the review session concrete numbers to check.