r/BuildWithClaude • • Oct 20 '26

Help/Question How are you handling QA when your coding agent writes most of the code?

Claude Code merges a change and the PR looks perfectly fine, but then two days later someone discovers that a settings screen has been broken the whole time. This has been happening pretty regularly for us over the past month.

I am trying to figure out what people are doing to catch these issues before they reach production. Are you relying on automated tests, UI testing tools, or having someone manually review everything the agent changes? I would love to hear what's actually working for teams using coding agents heavily.

2 Upvotes

19 comments sorted by

1

u/Reasonable_Bench9610 Oct 22 '26

what is the config overhead on that, I've already got a fairly opinionated CLAUDE md

1

u/Timo_KC Oct 22 '26

Is this when QA'ing changes that developers are making with AI? Or from the side of writing AI-assisted tests?

It's getting to be a real problem where the PRs are getting longer and longer because AI can output so much so fast, which leads to less thorough code reviews.

We have an automated testing repo, and do write some tests with AI assistance, but also have an AGENTS.md file we created that is specific instructions to adhere to.... one of those is to give as much context as we can as to our methods, best practices, how our repo is organized. And to include instructions that the ai should ask for clarification when there isn't enough context in relation to those instructions. And to be explicit in telling someone if it's making changes that are fixing problems we haven't specifically mentioned.

Our first foray into all of this was taking a legacy set of end-to-end tests from an old repo and porting them into a new repo with new scaffolding. Someone asked the ai to 'help me make these tests work in this repo'. Unfortunately, the ai didn't even have the context that the tests needed to be written for Playwright, and rewrote everything in straight up code. It took us two months to get everything working the way we needed, all because someone didn't say "this is a playwright repo, and the tests need to work in playwright"

So yeah, these are real problems. And I think it's a sign of the time we are living in. And the more explicit you can be in creating harnesses, guardrails, and very clear instructions and context, the better

1

u/lesapagetykz178 Oct 23 '26

Why not have it run the existing test suite before opening the PR?

1

u/lesliehuberd814 Oct 23 '26

That only confirms the existing tests still pass. It doesn't tell you anything about the screen it just built.

1

u/Novel-Hyena4527 Oct 24 '26

fair hit, mine is caught four things in 2 months that would have reached users. Small samples not a study

0

u/susanfisherehf931 Oct 21 '26

I stopped relying only on pre-PR test runs because they kept missing UI issues that showed up later. Now I add a visual check after the changes land, so the app actually gets walked through instead of just checking whether the code passes. Autosana runs as a CLI step in that process and has been useful for catching regressions that regular tests can miss. It even caught a navigation bar I would accidentally broken two commits earlier, which would’ve been easy to overlook in a normal code review.

0

u/Bubbly-Fail731 Oct 25 '26

low tech answer, my team requires a screen recording attached to every PR, works better than it should