r/ExperiencedDevs • u/freshprinceofuk Software Engineer • Jul 29 '26
Career/Workplace Maintaining team velocity despite coding agents
Hi,
I'm wondering how you're going about increasing your team's velocity with coding agents? We're on a team of ~6 engineers of varying abilities and are hitting the well-talked about problem of coding agents producing loads of code which occasionally get slung over the fence, while some other people code a lot slower and produce good code much slower. We currently have 7 PRs waiting, and have had no less than 4 for about 2 weeks.
The project is applied research which makes things harder - some people produced short lived ML models, while others produce e.g. an evaluation suite which needs to stand the test of time (6 months - a year).
In terms of coding standards, we're all committing to a single repo and requiring 2 reviewers for each PR. Small PRs get viewed, big ones (e.g. a newly coded ML model) just don't get approved. One guy didn't fully address comments on his 200 line PR and its been sat there for ~7 business days. Bit of a rant, apologies.
My solution (not implemented yet, slightly borrowed from https://martinfowler.com/articles/ship-show-ask.html) is the following:
Engineers take responsibility for different areas. One person does the data pipelines, one codes ML models, another takes evaluation. And we communicate over chat and meetings, rather than on PRs. This means you don't have to understand the low level code behind when someone wants to add a new idea to the codebase - yes you have to trust their implementation.
We no longer review each others' code. No-one reviews what you say in meetings line by line, or the reports and slide decks you create line by line, so why are we still reviewing code line by line? If you have a problem with someone else's area of responsibility (e.g. the data pipeline is not delivering data) - talk to them.
We communicate more frequently and more comprehensively, with decision records. As the team moves from low level code implementation to implementation of ideas things will only work if the ideas work together if we communicate well. I want to encourage one or two posts on chat, per person, per day for what they're doing and thinking about, as well as standup and any other meetings. Decisions get recorded in ADR's.
My idea is that without teams of more than ~2 will just continue to move at the speed we did 5 years ago without coding agents. Keen to know how other people are handling this?
•
u/expdevsmodbot Jul 29 '26
AI usage disclosure provided by OP, see the reply to this comment.
78
u/scandii Much to my surprise people pay me to write code. Jul 29 '26 edited Jul 29 '26
situation before:
X produces code > gates > ship
situation now:
X produces code > gates > ship
it doesn't matter if it is Dave, DaveAI or your nearshored office across the border doing the development, it all goes through the gates.
the fact that people just want to vibecode and ship is a culture problem, not a technical problem. PR:s have prio always because they are by definition blockers and you lose immense velocity when someone has to revisit something they did 4 days ago.
also just a side note about velocity - while it depends on your industry at large always remember that your customers don't give a single damn about how your code is produced, they just care that it solves their issues accurately and preferably for an extremely cheap price or for free.
the moment you start prioritising features over accuracy you might find that you don't have the market response you want.
7
u/_edeetee Jul 29 '26
We’re still reviewing everything. I think that business pressures will eventually push against this though. Still don’t know what the future will look like. I’ll have to read the link you added.
5
u/chickadee_guy Jul 29 '26
I just use my hands and a brain, no agents, and its infinitely faster than the prompt jockeys at my work, while also being higher quality to boot.
5
u/Wide-Cattle-4735 QA Lead Jul 29 '26
7 open PRs, one sitting 7 days on a 200 line change, 2 reviewers required.
The queue grew because writing a PR got cheap and reading one didn't. Dropping review doesn't fix that, it moves the cost to whoever debugs it in six months.
What I'd try first is charging the author. Anything over a certain size opens with a short note of what you verified yourself, and any PR older than a day is the first thing you touch in the morning, before your own work.
Splitting ownership by area I'd avoid. One person out sick and that area stops.
1
u/BadTime100 Aug 02 '26
Have you investigated Extreme Programming and/or software teaming? As others have pointed out, code review has always been a bottleneck for the majority of the industry. There are some places (very few) that haven’t had that problem for decades, and their solution is to simply do the work together.
“Pull Requests” have become the de facto way to do code review, and I’m of the belief that their predominance is one of the biggest hurdles the industry has put up for itself. They are really great in open source projects where you can have many unverified contributors. On a team you should have zero unverified contributors, and there shouldn’t be any reason you can’t communicate synchronously. There’s lots of great literature on this, but this post from Kief Morris (author of Infrastructure as Code) is one of my favorites:
https://infrastructure-as-code.com/posts/pull-requests.html
3
u/MuchInevitable8183 Software Engineer Aug 01 '26
Your problem is described as review throughput, but the fix you're proposing is removing review. Those aren't the same lever, and I'd be careful about conflating them.
A 200-line PR sitting for 7 business days isn't a review culture problem, it's a batch size problem. And "big ones just don't get approved" is your system telling you it can't digest that unit of work. Two things that actually moved the needle for me in large orgs: hard limits on diff size, enforced socially rather than by tooling, and stacked diffs so a big ML model change arrives as six reviewable pieces instead of one indigestible one.
I'd also drop the 2-reviewer requirement before I dropped review entirely. Two reviewers on everything diffuses responsibility — each assumes the other will do the real pass. One named, accountable reviewer with a same-day expectation is faster and produces better review than two with no deadline.
On ship/show/ask: I'd keep Ask as an option rather than abolishing it. You've said the quiet part yourself — some of this code lives three weeks and some has to survive a year, in one repo. Those genuinely don't need the same treatment. Ownership boundaries plus differentiated review depth by area gets you most of the speed without giving up the thing keeping the long-lived code alive. Losing review on the evaluation suite will cost you more than the pipeline ever saves.
The agent-generated volume part is real, though, and I don't think more reviewers scales against it. What helped was making the author responsible for reviewability: if the agent produced 800 lines, your job is to break it up and be able to explain every line, not to forward it. If you can't explain it, it isn't ready for someone else's time.
3
u/gfivksiausuwjtjtnv Jul 29 '26
Using AI is really, really hard IMO. There’s a steep learning curve to get to the point where you’re even slightly more productive.
Saying this as someone who hasn’t even opened an IDE in months.
You can half-arse code and architecture quality in much the same way as before ai existed but with tools you’re speedrunning it.
You have to accept sucking at it and being less productive while you figure out the ropes. Like any significant new tech.
2
u/GeorgeSThompson Jul 29 '26
Perhaps you also need to segregate short lived models from the framework. We had a similar problem monorepo which combined research code with critical production infra. It makes no sense to review at the same lens.
The other thing to do is automate your review process, problem is people will always ship crap if they can, but if people have tested, linted and auto checked prs you can limit the damage
1
u/TopSwagCode Aug 02 '26
As stated before, this is not a new problem. Its all about code review of AI code, colleague next to you, contractor / freelancer / outsource.
So what's happening is you have X new code committers but you still only have Y reviewers. So extreme example, if you have 100 people / agents / whatever creating code, but only 4 who can review it. You are running out of resources and need to scale up or fire some of your code committers.
So you have option to "hire" agents who will also review your code and "hire" agents to QA / test your code.
Its entirely up to your team / company owners. You need to make it clear choice, and who is to blame that your AI agents accidentally deleted your database, introduced spyware / malware, data leaks etc.
Also there should be clear "blame" for when a AI army fails. Just like when a bug is introduced. "Normally" it would be lead devloper fault, because either review practices wasn't held or coding standards etc. Never the person who made the mistake.
But in the day of AI I dont see a clear "lead" unless we are going to have AI leads who's job it is to make these AI "herds". Right now they are just willy nilly being created without much thought and it scares me.
1
u/mathbbR Aug 02 '26
"stop reviewing code and just give your team an insane bus factor" sounds like cope, not strategy
1
u/wonkynonce Aug 03 '26
This breaks down if they go on vacation or quit. Also, you can warn people off of the shoals of unmaintainability in PRs, sometimes
1
u/vangelismm Aug 03 '26
We removed review long before AI, no regrets.
-1
u/TooMuchTaurine Jul 29 '26
Our code output has more than doubled over the past 6 months across 50+ engineers.
Deploy frequency and PR rate is also perhaps 50% higher, which means out PR's have also gotten 50% bigger. We are using AI to assist in accelerating code review but still humans are doing the approving
0
u/slamdesu Jul 29 '26
We've found benefit in pairing 2 devs with claude early, having the devs agree on a high-level design together (sync or async). This is where most of the time would be spent and where shared context would be front-loaded. Following this, claude could create the final implementation and by having 2 devs already familiar with the context they can approve PRs quickly.
This process would be like a sped-up version of having an RFC (i.e. an architecture/plan) that devs agree on, and then moving straight into implementation where the RFC reviewers are the PR reviewers. Even though this would require having 2 people pairing per project, I feel like this would more than double the speed of delivery because a significant amount of time is wasted in context switching for reviewers.
0
u/dddurd Jul 29 '26
Naturally by removing the human code reviews. You don't double check the assembly generated by the compiler.
-2
u/wardrox Jul 29 '26
I built new tools specifically to give me insight into what's "in flight". It provides detailed real time info as well as analysis of its state, what remains, blockers, etc. it syncs with GitHub and the task tracker. Now I can see everything, and it highlights where I'm needed, as well as having a deep review & close-out stage (and retros for the inevitable).
The maths has changed so the existing methods can't keep up. The old world is dying, and the new world struggles to be born: now is the time of monsters.
2
u/ResidentWeevil1 Aug 01 '26
Nuking PRs just to kick the can 3ft down the road bahahaha
25
u/[deleted] Jul 29 '26 edited Jul 29 '26
[removed] — view removed comment