Retrieved article excerpt
Open article · Retrieved 2026-11-26T07:21:08.820176+00:00
# Fix the process around coding agents before adding more of them
Running reviews and integration tests together, instead of one after another, cut time until a change is ready for team review by 15–22%.
Magnus Ekdahl · 25 November 2026
Many teams added coding agents to the process they already had. An agent implements the change, another agent reviews it, a human reviews it, and integration tests run last. When the tests fail at the end, the repaired change goes back through both reviews. People still pass along diagnostics, ask for another review and restart work that has stopped. More agents raise output at one step, and reviews and coordination became the new bottleneck.
The same process with a coding agent implementing and testing, an independent agent reviewing and possibly testing, then a human reviewing and testing before automated integration checks. Failed checks return work to implementation. The team still coordinates the work and owns final approval and merge.
**Before: agents added to the existing process.** Checks run one after another, and a failed check sends the change back to implementation.
The fix is to change when the checks run, to shorten the time from implementation to team review. Agent review, human review and integration tests now start together. If an automated check fails, the human review request is withdrawn and an agent repairs the change straight away, without anyone passing the failure along. The quality bar is unchanged: all three checks must still pass before team review.
Implementation is followed by agent review, human review and integration checks, which can overlap. Each result can change what runs next. Starting a repair cancels checks in progress. All three checks must pass the current revision before team review.
**After: the same checks run together.** The process acts on the results it has so far. All three checks must pass the current revision before team review.
A model of the change predicted 22% less time from implementation to team review. In the first 24 changes afterwards, time fell 16% once differences in waits and stalls are removed.
## Agents make a different order possible
Agents add an option the old process lacked: an agent can repair a failed integration test right away, without waiting for a person to pass along the diagnostics.
Recording each check’s result, duration and model usage against the code revision also gives the probabilities that a check passes and that a repair succeeds. With those probabilities, a standard partially observable Markov decision process (POMDP) calculates the best action: which checks to run in parallel or when to repair. Partial observability here means that nobody knows whether the code meets the quality bar until integration tests, agent review and human review all agree.[1](https://oxtan-maker.github.io/parallix/articles/parallel-ai-coding-bottleneck/#method-note)
## What the pilot measured
Compared with the usual order, the model predicted 21.7% less time from implementation to team review for the fastest action. Measured, time was 15.7% less with waits and stalls removed and 49.7% less as recorded. The model predicted 9.9% more agent and test spending per change; measured with stall recovery removed at similar change sizes, spending was 12.7% less, a difference that is not statistically clear, and 45.7% less as recorded. Spending excludes human review.
**Once waits and stalls are removed, time lands near the prediction. Spending didn’t rise as the model expected.**[2](https://oxtan-maker.github.io/parallix/articles/parallel-ai-coding-bottleneck/#pilot-note)
The pilot measured the fastest action. It requests all three checks together. Once the tests and agent review report, it withdraws any pending human review if either check failed and starts a repair, with both sets of findings if both failed. If both passed, it waits for the human verdict if it hasn’t arrived. All three checks still had to pass before team review.
The model predicted 22% less time. As recorded, time from implementation to team review fell by half, but the earlier changes stalled more often: a failed command waiting for recovery, or a repaired change waiting for fresh approval. Review responses were also quicker during the pilot, an observer effect. Removing both differences leaves 16%, a little below the prediction. The records show the mechanism the model relies on: tests started before the first approval in every pilot change and in none of the earlier ones. Team review and merge come afterwards and weren’t measured, so the saving shortens total lead time only if team review takes no longer than before.[2](https://oxtan-maker.github.io/parallix/articles/parallel-ai-coding-bottleneck/#pilot-note)
On cost, the model expected agent spending to rise by about 10%: more agent reviews, paid for by fewer human reviews. Agent review spending did rise. Repairs went the other way. When the tests and agent review both failed, the repair agent got both sets of findings at once. Counting such a combined repair as two fixes, the number of fixes stayed about the same, but each fix cost about 30% less. The model repairs one set of findings at a time, so it missed that saving. With stall recovery removed and at similar change sizes, agent and test spending came out about 13% lower, though that is within the uncertainty.[2](https://oxtan-maker.github.io/parallix/articles/parallel-ai-coding-bottleneck/#pilot-note)
### A simpler first step: move tests ahead of human review
Moving tests ahead of human review, with nothing else changed, gets about two-thirds of the modeled time saving and nearly all of the cost saving: 14% less time and 15% less cost. That is the first step for any team, and adopting it needs no model. The model found it and put a number on it. Running the checks together adds the rest of the time saving, 22% against 14%.[3](https://oxtan-maker.github.io/parallix/articles/parallel-ai-coding-bottleneck/#results-note)
Compared with the usual process, moving tests ahead of human review saves 14.2% of modeled time and 14.8% of cost. The fastest action saves 21.7% of time. The cheapest action saves 15.2% of cost.
**Running the checks together adds the last third of the time saving, but almost nothing to the cost saving.**[3](https://oxtan-maker.github.io/parallix/articles/parallel-ai-coding-bottleneck/#results-note)
The cost figures treat waiting as free: a change waiting for review, and the people waiting on it, cost nothing. Getting close to that takes a reviewer who works through reviews one after another with little context switching. Few organizations work like that, so the cost figures are a best case, and the process is optimized for time. The cost saving also depends on the reviewer. A review started on a change that is then withdrawn is wasted, and about 2.3 minutes of that per change cancels the modeled cost saving. A reviewer who would rather not be interrupted can wait until the tests and agent review pass. That costs the same, and the time saving drops from 22% to 17%. In a team, measure it by logging when a reviewer opens a change and comparing that with when its review request is withdrawn.[3](https://oxtan-maker.github.io/parallix/articles/parallel-ai-coding-bottleneck/#reviewer-cost-note)
The best action was chosen on early estimates. It did better than expected once checks could run together and repairs could combine findings. The larger reason to keep it is the model behind it: when an agent, a test suite or a review step changes, the time to team review can be re-estimated before deciding whether that engineering work is worth doing.
## Estimating the impact of the next engineering investment
The model also shows how improving one part of the process affects the time needed to complete a change.[4](https://oxtan-maker.github.io/parallix/articles/parallel-ai-coding-bottleneck/#sensitivity-note)
Effect of a one-percentage-point change
| Outcome that becomes more likely | Example: +1 point | Modeled time |
| --- | --- | --- |
| Test repair passes all checks | 38.8% → 39.8% | **1.0% less** |
| Test repair introduces a human-review problem | 1.05% → 2.05% | **1.1% more** |
| First implementation passes all checks | [6% → 7%](https://oxtan-maker.github.io/parallix/articles/parallel-ai-coding-bottleneck/#first-pass-note) | **0.8% less** |
Each row changes one assumption by one percentage point. That nearly doubles the 1.05% rate but changes the 38.8% rate by less than 3%, so the rows show where a point is worth most, not which problem is biggest. Improving one outcome can reduce the repeated work on which another improvement would act.
Consider the first row: an integration test fails on code that would otherwise pass both reviews. Raising the chance that its repair produces code acceptable to all three checks from 38.8% to 39.8% yields **nearly a full percent less time across the whole process for a one-point improvement in that repair outcome**.
Better test repairs show diminishing returns. Total modeled time saved rises to 32.4% at 100% repair success. Savings in each step decline from 9.7% for 38.8% to 50% success, to 4.2% for 90% to 100%.
**Total savings compare with the 38.8% success rate and 581.1 modeled minutes; step savings compare with the preceding success level.**[4](https://oxtan-maker.github.io/parallix/articles/parallel-ai-coding-bottleneck/#repair-sweep-note)
The returns flatten in this sweep. Moving from 50% to 60% saves about **38 minutes**; moving from 90% to 100% saves about **17 minutes**. Even perfect repair in this one situation leaves about **393 minutes**. Other repairs, required checks and waiting still consume time. The investment question is how much the next improvement would save and what it would cost to achieve.
In this example, improving test repair saves slightly more time than the same percentage-point increase in first-pass success. There is only one first implementation per change, but test repairs can happen repeatedly. Better repairs reduce the chance of sending work through another round of checks, repairs and waiting, so the improvement can save work more than once per change.
## Where to start
Before adding more agents, look at what happens to a change from implementation to team review. The first step needs no model: move integration tests ahead of human review. That alone gets most of the time saving and nearly all of the cost saving. Running the checks together adds the rest.
If the extra time saving matters to you, or you want to estimate the impact of an engineering improvement before you make it, the next step is a cost model of your own process. That takes more work: the model needs measured inputs for every check, repair and wait in the process.[5](https://oxtan-maker.github.io/parallix/articles/parallel-ai-coding-bottleneck/#inputs-note)
I run this process in [Parallix](https://github.com/oxtan-maker/parallix), the open-source tool I build for running coding agents in parallel. If you’re working on the same problem, [I’d like to hear from you on LinkedIn](https://www.linkedin.com/in/magnus-ekdahl-0311402b).
[Magnus Ekdahl](https://www.linkedin.com/in/magnus-ekdahl-0311402b) builds [Parallix](https://github.com/oxtan-maker/parallix) and writes about engineering with coding agents.