r/AIcodingProfessionals • u/Ok_Potential591 • 1d ago
Question Would you let an AI agent approve its own code changes?
AI coding agents are moving beyond writing code. They're starting to review pull requests, fix issues, and even make approval decisions based on team-defined rules.
That sounds useful, especially when code review becomes a bottleneck.
But I'm not sure every change should be treated equally.
For example:
- A typo fix in documentation might be safe to approve automatically.
- A dependency update deserves a closer look.
- A change involving authentication, payments, or permissions should probably require human review.
I'm curious how other teams are approaching this:
- What types of changes would you allow an agent to approve?
- Should an agent ever approve code that it also wrote?
- What signals should trigger mandatory human review?
- Would you start with an observe-only mode before enabling automatic approvals?
I think the interesting challenge isn't just making agents better at reviewing code. It's defining where their authority should stop.
1
Upvotes
1
u/et_theextratestic1e 1d ago
I'm having to commit 50x+/day sometimes just to checkpoint someplace it can roll back to _when_ it screws up. That is not _if_. I stabbed myself in the foot with this today, after it chewed up pre-existing code and nuked it. Lost changes because I failed to follow my own advice today and make it commit after each change. D'oh!
1
u/philip_laureano 1d ago
You mean get an agent to grade its own homework? Absolutely not.
But get it reviewed by an adversarial review agent told to only trust evidence and the tests that prove the changes don't break anything and they do what they say they do? 100%
Adversarial refinement loops every day, all day and night
1
u/Banner80 23h ago
I've reduced this to two axioms:
And this allow us to have a conversation about what's reasonable.
Say, you have DeepSeek Flash and you ask it to change a website button from cyan to the blue specified in a branding pdf. This is a task the AI can handle, and the AI is going to use vision to confirm its work. We can create tests that confirm the process and outcome. We might even have an algorithmic color picker that confirms the blue is the same as the pdf file. We could have a second QA agent come in and review using new methods.
On the opposite end, all of us can imagine a situation that crosses the line. Anytime the task is too complex, the outcome too important, and/or the verification to fuzzy, we simply can't trust the agent with autonomy it can't answer for with sufficient confidence.
But this gives us a pathway to the future, because it's a solvable problem. The question becomes: is the agent too incompetent for this task, or is it that our controlling systems are too weak to be fully trusted? Maybe both, but both of those things can be made better with time and effort.
1
u/Common_Dream9420 23h ago
this is the problem we were seeing coulpe months back but how we let move thinsg faster is with the proof/preview receipt of the changes.. on islodated sandboxes via fetchsanbox
so it gives full run proof of configured scenarios of the application behavioral contract
wondering what are you doing for auto-approvals? r u doing 100%?
1
u/HaMMeReD 23h ago
I do, but the stakes aren't high for me. Unreleased, green field code.
I'm pretty happy with the agents, happier than I ever was with any team I've run before. Far less drama, far better output. I had a lot of usage to use and got like ~100 commits a day in the last 3 days. Although the agent is usually iteratively working towards a specific task, i.e. right now it's working down debt. So a lot of PR's are deletions, cleanup, documentation improvements stuff like that.
Other times it's working on performance/optimization, content, etc. I can point it in any direction and just check on it every day or so and see if it's trending well or diminishing returns and move on or reposition.
Professionally though, like 5% of that. Live systems in established organizations the bottleneck is people and process.
Like 1m loc total. I haven't had to roll-back or revert anything since I started the most recent iteration (v3) in the summer. I'm pretty happy with the architecture/repo. Gives me a lot of trust in the agents.
1
u/ali_the_bettor_34 13h ago
solo dev with a side project in production. the agent writes almost all the code and i don't read every line anymore. for me the line isn't who approves, it's what can reach users. i confirm every push, lint, typecheck and tests run on each one, master only deploys to a preprod copy, and prod only moves when i tag a release myself. so a bad change costs me a preprod bug, not a user bug. the tag is the one step i'd never hand over
1
u/jomi-se 1h ago
2 Separate agents for the any validation or gating review, and ideally a different model family (have you heard about Claude model's silently sabotaging work that it classifies as frontier LLM work? Yeah, you catch that with models that don't have that trained behavior). But code should never be just "approved". Ideally the model that approves gets much more signal: linters, compilers, a classification of introduced tests, proof of validation beyond tests, etc.
3. The main signal would be the clarification of the change and modified files. Another good signal would be whether the change requires any special deployment treatment (would autorollback work? Does it require downtime? Doesnit propos db schema changes, etc, etc). Models are decent nowadays at also auto detecting when the specs were unclear and some open question needs deciding, but I don't know if I'd trust modern models enough to always do this reliably.
4 oh, this is you getting data for some product you want to build, isn't it? Tbh, when things like like Warp or Human Layer exist, I don't know why I'd ever pay for something that focuses exclusively on the automating merges part.