When agents write code, they write it faster than humans, and increasingly, they write it better than humans. But what does that mean? Software engineering is split into the local (a function, a class, a handler), and the global, (an abstraction, a layer, a system). Agents are improving rapidly at the local aspects of software engineering, and can solve more technical problems faster while exercising more autonomy, but does this translate to higher productivity for software engineers? Well, that depends. If an agent spends several hours writing code which is locally right but globally wrong, once the abstraction leaks, or violates some constraints the agent didn’t know about, you might have to roll back all that code and start again. Did you save time, or waste it?
In this post we will develop a simple turn-based model of agent-driven development which explores the relationship between the local speedup that frontier agents deliver and the global constraints of software engineering problems. What this model reveals is that even as model task-completion time horizons continue to scale, longer turns and more autonomy given to the agent are not always better for productivity. It also suggests that an engineer’s knowledge of constraints, and their attention, quickly become the bottleneck.
1 The metrics
One of the ways in which frontier model strength is evaluated is using a metric known as task-completion time horizons.1 This metric measures how long it takes an AI model to complete a task which would take a human engineer X hours, and with what success rate the model does so. The time horizon scaling metric is usually evaluated at certain fixed success rates, such as 50% and 80%, with a higher success rate correlating with a lower time horizon (because the longer the task is, the more likely the model is to make a mistake and fail to complete it). Task completion is usually judged by some deterministic criteria at the end of the task, such as passing a suite of tests.
Time horizon scaling is one lens through which to judge the moving frontier of model strength: it indicates that models are getting better at acting autonomously over longer and longer time periods (and hence, perhaps, getting better at solving more and more complicated problems). However one would be remiss to draw a straight line from time horizon scaling to expected productivity gains from model usage. Indeed, the claim that time horizons at the frontier are doubling every 4 months would seem to imply a rate of productivity growth in the creation of software which is stratospheric, but the reported outcomes in industry are far more lumpy, with many engineers (and not just the AI skeptics) reporting modest or uncertain boosts in productivity.
Indeed, if one looks at other metrics which measure other aspects of the software engineering problem, such as SlopCodeBench, the picture is far less rosy. When evaluated on the challenge of solving a problem with repeated changing and expanding scope, and measured not just against task completion but also against metrics such as cyclomatic complexity, lines of code, unused lines of code, single-use functions, etc. frontier models perform remarkably poorly, and the rate of progress on these metrics is modest or non-existent. There is even a negative correlation between thinking time and outcomes. The latest models achieve a maximum 16.3% pass rate (achieved by GPT-6 Astra XHigh) compared to a 14.8% achieved by GPT-5.5 Sol in May. Indeed many of the frontier models in September scored lower than GPT-5.5 Sol did in May.2 This metric is like catnip to AI skeptics, and seems to explain all of the observed erosion of their code bases from prolonged AI use. It calls into question the long-term maintainability of code bases written by AI with little oversight. Are we just creating a mountain of tech debt under the belief that future frontier models will be capable of unravelling it, despite the evidence against progress in that direction so far?
The question of why SlopCodeBench outcomes are so poor for frontier models is not the subject of this post, but it is fairly easy to guess. Models are good at what they get trained for, and task-completion is a relatively easy metric to use in RL training environments, because one can simply ask for pass-fail on oracle test suites at the end of a task. Measuring and providing a reliable reward signal for iterative improvement and low code erosion is much harder. That requires measuring not just the end result, but the process of getting there, it requires rewarding models for writing code which withstands pivots and changing requirements which were not in the context when it was written, and we don’t have an equivalent of “passes the test suite” for an abstraction which works now but is going to leak badly in the future and end up halving developer (or future AI agent) productivity. SlopCodeBench is a first pass at trying to measure this, and it appears to indicate that coding may not be such a solved problem after all.
So how do we reconcile the large discrepancy between ever-increasing task-completion time horizons for frontier models, the poor and flat performance in SlopCodeBench, and the lumpy, confusing, and poorly understood productivity outcomes actually observed by engineers?
2 The model
The dynamic is quite simple: If you choose the wrong abstraction when you begin a new feature and tell a model to build on top of it, the longer the model works on that wrong abstraction, the more code you need to undo when the abstraction eventually breaks. Even if the model can write the code 5-10x as fast as the human can, if it is writing the wrong code and it all has to be undone, that constitutes a dead-weight time loss when you restart and do it “the right way.”3 Depending on how long you go down the wrong pathway without course-correcting, that loss could massively outweigh the per-unit-code productivity gains of using the AI to achieve the right outcome. It may still be the case that this is faster than if you meat-wrote the code from scratch, but it can lead to wild swings in time-to-completion based on “luck” (i.e. choosing the right pathway at the start). For multi-turn feature development this dynamic can repeat itself multiple times, and sometimes you may need to walk back several turns at once.
How can we make this intuitive idea quantitative? Consider the following simple model of a single-agent workflow that a typical software engineer might follow:
- A human engineer prompts an AI to perform a task worth
hours of expert human engineer time (EHE time).𝜏 - The agent performs the task, taking
as much time to complete the task (where𝜏 / 𝑀 is the multiplier for how much faster the agent solves the task than an expert human).𝑀
Then, either:
- The agent fails the task according to the deterministic checks (the 50% or 80% pass rate, depending on the equivalent human expert time
), incurring a retry and a cost of𝜏 time lost.𝜏 / 𝑀 - The agent passes the task according to the deterministic checks, but the wrong abstraction was implemented along the way.
- The agent passes the task, and is following the right pathway for the overall requirements of the feature.
After the agent has completed the task, the human reviews the output.4 A review incurs some cost
Depending on the size of the task the human gives to the agent, the quality of their prompt, the quality of their review, and the rate of defect generation from the model, outcomes may vary wildly. If everything goes well the model might one-shot the perfect abstraction, striking the right balance of complexity and specificity, safe to be built on in the future. If everything goes poorly, the developer may discover late in the process that an early turn settled a design which is structurally wrong and needs to be salvaged or thrown out entirely.6
The key variable in this model is the engineer themselves. We will approximate the quality of an engineer at building software with a parameter
Let us make a few further simplifying assumptions:
- The agent only drifts when constraints are unstated in the prompt.
- The engineer recognises drift when reviewing precisely when the drift violates some constraint they know about.
- Constraints left out of the prompt come in two kinds, a share
of constraints which are private to the problem and can only be communicated through the prompt, and a share𝜋 which could be inferred by a smarter model.1 − 𝜋
Suppose that the engineer’s share of knowledge of the total constraints of the problem is equal to their taste
When the agent implements a task of duration
, the task-completion pass rate: How likely the model is to complete the task correctly, in the sense of the METR time horizon scaling.10𝑞 - Model drift
: The multiplier for how likely the agent is to implement a bad abstraction which will need to be reworked or rewritten instead of inferring the correct constraints on the inferrable share𝛿 .111 − 𝜋 - Private constraints
: The proportion of the constraints of the problem which cannot be inferred by a smarter model, even in principle, and must be supplied through the prompt.𝜋 , the slop rate: How likely the model is per turn to produce slop output which requires reworking or rolling back. This depends on the drift hazard and the quality of the prompt by12𝑠
Here𝑠 = 1 − e x p ( − 𝐿 ( 1 − 𝑎 𝑡 ) ( ( 1 − 𝜋 ) 𝛿 + 𝜋 𝛿 𝑝 ) 𝑒 − 𝜓 𝑤 ) . is how long the model has been running autonomously,𝐿 is how far through the overall task you are, and𝑤 is how much to front-load poor abstractions, so that𝜓 makes slop less likely as a task progresses.13 The parameter𝑒 − 𝜓 𝑤 is the model drift on unknowable constraints, which is estimated at𝛿 𝑝 14 and cannot be improved by model progress by definition.0 . 1 5 , the recognition rate: How likely the human review is to catch the slop during review. By assumption 2, this is equal to the share of the engineer’s knowledge𝑐 that they didn’t articulate in the prompt𝑡 , as a proportion of the total amount of context left out of the prompt,𝑡 ( 1 − 𝑎 ) , so1 − 𝑎 𝑡 .15𝑐 = 𝑡 ( 1 − 𝑎 ) / ( 1 − 𝑎 𝑡 )
When the agent produces slop, the overall effect depends on how quickly the engineer identifies it: if they recognise it right away, they correct by redirecting or reworking that turn, salvaging some proportion
Figure 1 lays out the discrete-time Markov chain model of the above scenario:
3 Single agent workflow
The question we want to answer with this model is: for a given task-completion time horizon, agent speed multiplier
Figure 2 graphs the real productivity gain (measured in wall-clock speed to task completion) against chosen task size Tune parameters button to experiment with different choices of
taste 0.2taste 0.5taste 0.8taste 0.95taste 1
At these settings a taste-0.2 engineer peaks at 2.04× of an expert's pace with 1.2 h turns, delivering the 40 h project in 22 h, which is 3.68× of their own hand pace. A taste-1 engineer peaks at 3.11× with 3.2 h turns, in 13 h. Beyond their own optimum, longer turns cost the low-taste engineer 1.45× of speedup by the 50% horizon.
What can we take away from this simple model?
- Longer task durations are worse than medium-length task durations, and this effect persists19 even when
improves, because the bottleneck is not just how long the agent can run autonomously to complete a single task, but whether it is completing the right task, and how likely it is to drift into bad abstractions, i.e. produce slop. These aspects are controlled not by𝐻 5 0 , but by𝐻 5 0 . Running the model autonomously for longer simply increases the amount of slop that needs to be undone when it goes wrong. For a low-taste engineer this effect can result in lower productivity than an expert human coder writing the same code by hand, if task lengths drift up to𝛿 , whereas high-taste engineers can catch the slop the agent puts out (but still see a relative decrease in productivity compared to shorter task lengths).𝐻 5 0 - Scaling time horizons supplies only a modest productivity boost, with diminishing returns. At default settings, a 4x increase in
corresponds to a productivity gain from ~3.0x to ~3.3x for a high taste developer.𝐻 5 0 - Reducing model drift also confers only a modest productivity boost for high-taste engineers, but lifts a low-taste engineer’s graph upwards dramatically. When the model is capable of inferring more of the inferrable requirements, and is less likely to drift into slop which passes the tests that turn but is wrong for the overall project, the difference in skill between the low- and high-taste engineer in providing that context matters less. Improving a model’s ability to infer and stick to the right abstractions raises the floor of productivity, but not necessarily the ceiling.
- Even when model drift goes to zero, the agent can only infer the proportion
of the project’s constraints which are in-principle-inferrable. The1 − 𝜋 constraints which are private to the company or rely on private institutional knowledge are unknowable to the model except through the prompts and reviews by humans. The high-taste engineer knows more of these constraints and can articulate them into the spec or spot their violation better, so a small gap in productivity persists even as𝜋 between a low- and high-taste engineer.𝛿 → 0 - Latent slop takes time to surface, so if you smash out the end of a feature without reviewing and paying down any latent slop left over at the end, productivity appears to increase. Indeed the relationship between taste and productivity at long task lengths inverts in this situation, with a low-taste developer appearing to have a higher productivity than a high-taste developer, but this is because the task finishes with more latent slop which the high-taste developer has already avoided or paid down during the project: once you are willing to ship debt, taste stops mattering as much.
- Whilst a low-taste developer may produce worse outcomes than an expert human coder writing the same code by hand in this case, when compared against their own code-writing skills, they still see a productivity gain! It is not more productive to withhold your tokens only for senior developers (more on this when we get to multi-agent runs below).
- For very short tasks (near
), the flat cost of writing the prompt dominates over the speed up the agent gives in writing the code, possibly even incurring a penalty compared to manual coding. A developer needs to be willing to let the model make mistakes by using longer task times𝐻 9 9 , even if it increases the risk of task failure (𝜏 ) or slop (𝑞 ): the speed up in code-writing time incurs a benefit so long as they review diligently and catch the slop before it becomes latent.𝛿
This last point bears some elaboration: The productivity gains of using AI agents do not set in once they become infallible, but when they become “good enough” to complete tasks at a relatively high accuracy and with relatively little drift. A human can make up for the drift with better prompts and better review, and therefore leverage the overall speed up of the coding part to see a productivity gain. What this reveals is that productivity improvements do not necessarily depend on step-function improvements in model capability (i.e. going from “fallible” to “infallible” on a certain category of tasks) but in a gradual improvement which tips parameters over some hump, after which the agent starts to win out over hand-writing code even though it is fallible. Once this happens, even if the productivity gain is only modest in an absolute sense, it no longer makes sense to hand-write code.
To get an idea of how these outcomes vary through the Markov chain model, Figure 3 shows the P10-P90 bars of the delivery outcomes depending on the transition probabilities
With H80 turns (3.2 h), a taste-0.5 engineer lands between 0.83× and 3.35× of an expert's pace: slower than an expert 19% of the time, but slower than their own hand pace only 6% of the time, averaging 1.8 rollbacks per project and 0.2 wrong abstractions still latent at delivery. A taste-1 engineer lands between 2.67× and 3.61× with none.
Figure 4 summarises the optimal outcomes per level of taste: how long tasks should be in EHE hours, and what sort of gains an engineer can expect relative to their own hand-coding ability.
4 What about multiple agents?
The more popular way to leverage AI agents, and the one which takes advantage of the fact that the agent programs autonomously, is to parallelize work. There is a scale of parallelization, from a more careful multi-agent workflow with context switching, to full agent swarms with AI-driven review. How do these change the productivity outcomes and does the speed-up from multi-agent workflows with weaker review outweigh the slop production?
When an agent is completing a task of
Figure 5 represents the outcomes when running the Markov chain model in parallel, with the human performing review and prompting while waiting for other agents to finish coding.
1 agent2 agents3 agents5 agents8 agents
At taste 0.5, one agent delivers 2.04× an expert's pace at best, with 1.2 h turns and the engineer busy 72% of the time. Two agents deliver 2.31× with 1.2 h turns. The most any team size manages is 2.31×, with 2 agents and 1.2 h turns; 8 agents manage 1.12× at best, with the engineer spending 36 h per project against 14 h with one.
The most interesting conclusion from this chart is that, with our default choices of parameters, optimal productivity is achieved with just two agents at a time. This is because an engineer only spends about 20%-40% of their time waiting on the agent to complete its task, with the rest of the time spent writing the prompts, reviewing the output, and investigating latent slop which has surfaced and needs to be salvaged. Once an engineer is using two agents, their time is already saturated and they have become the bottleneck to more productivity. With two agents the gains by parallelizing still outweigh the costs of context switching, but at 3 or more agents most of the agents are idle, and the engineer incurs a scaling cost to context switching for no productivity benefit.20
This effect gets worse as model task completion speed
What the chart shows, however, is that for a fixed level of model performance, trying to use longer task horizons to give oneself more time to take advantage of parallelism is a losing gambit: with any number of agents the outcomes are worse, because the amount of slop produced and needing to be caught and rolled back (or left latent) far outweighs the productivity gains per-turn.
A few more minor points to draw from the multi-agent case:
- For low-taste developers, even using two agents is not necessarily more productive. This is because their optimal task horizon time is lower, leaving them less time waiting on agents and more time on review and prompting in order to see good outcomes. At shorter review times, the context switching cost between multiple agents essentially wipes out the gains of parallelism: junior developers should stick to using one agent and focus on higher quality review and prompting rather than attempting to contribute more by introducing multi-agent workflows. If they reduce their diligence in review, effectively reducing their taste parameter even further, to try to make multiple agents work, the result is more slop, and therefore a lower net productivity for the project (or far more tech debt once it completes).
- Humans become the bottleneck to achieving further productivity from leveraging multiple agents relatively quickly. Whilst a high-taste developer gets more out of their tokens than a low-taste developer, that gain in productivity is capped because just two or three agents already saturates their parallelism. After that point, a company is better off hiring another high-taste developer rather than making their existing developers use agent swarms or reduce their amount of care and review. If no other high-taste developers are available, a low-taste developer still achieves a net productivity gain, especially relative to their own hand-coding ability, by being given more tokens. This argues for a triaged approach to token use: high-taste developers should be given more tokens than low-taste developers, but only enough to run two or three agents simultaneously. After that point, there are vanishing returns and the surplus is more productive if given to lower level engineers.
5 What about agent swarms?
And what about agent swarms, with AI agents reviewing the code and writing the prompts to implementor agents, with the human engineer directing the overall direction? SlopCodeBench does not cover the case of evolving projects with elaborate harnesses which perform architectural review in addition to implementation, so perhaps the results are not so bad here?
Let us try use the model we have developed to answer this. An implementor agent implements the right abstractions when the context they are given contains them, and otherwise it has a chance to drift. When a human engineer delivers that context which they can articulate,
When a review agent is instructed to review the code of the implementor, it is usually given a bit more of that original context, including what the implementor was meant to be doing, and an overview of how that part fits into the whole. Let’s say the reviewer therefore receives twice as much context as the implementor, so a
We will make two brief comments about these simplifying assumptions:
- In this model, layered agentic workflows with coordinator agents themselves coordinating implementors and reviewers are equivalent to a single layer. Context split 16 ways to 16 implementors is the same as split 4 ways to 4 coordinators, and then 4 ways again to each of their implementors.23 For this reason we will just look at a single layer of fan-out.
- Unlike the case of human review, where a human may pick up on contraints that they could not articulate in their original prompt during review, a review agent can only pick up on those architectural constraints that they have been told to look for, plus a proportion of the inferrable constraints. A stronger model may be able to infer more of those inferrable constraints, but the un-inferrable portion
of constraints which were known but not articulated by the engineer will never be picked up by the AI reviewer. We will assume in this model that a review agent picks up about half of the inferrable but unstated constraints upon review, and none of the unstated, un-inferrable constraints.𝜋
Under these simplifying assumptions, does an agentic workflow confer speed-up benefits which balance out the worse quality contextual requirements and review? Figure 6 depicts the productivity gain of a human engineer performing a multi-agent workflow versus leveraging an agent swarm with AI reviews.24
The chart shows that as the number of agents increase, the agent swarm generally achieves worse overall productivity than a high-taste human engineer leveraging 1-3 agents with human review, but only when you count the cost of reversing the latent slop at the end of the project.25 At all task lengths, the agent swarm produces more latent slop, with a high-taste engineer requiring 2-3 hours worth of rework surfaced from their careful review, compared to 30-50 hours for the swarm.
taste 0.2taste 0.95
engineer reviewsagent reviews
With H80 turns (3.2 h) and the latent debt paid down before shipping, a taste-0.2 engineer reviewing in person peaks at 1.34× with 2 agents, and at 2.18× with 3 agents once an agent reviews. The wrong abstractions laid cost 39 h per 40 h project to undo and redo in person and 43 h in the swarm, where 3.2 of them are patched over mid-project and 1.1 are still in the code at delivery against 0.4. A taste-0.95 engineer peaks at 3.38× reviewing in person, laying 2.3 h of rework, and at 3.81× in a swarm, laying 27 h.
A few more conclusions which can be drawn from the chart:
- With tech debt shipped, high agent counts look preposterous: productivity appears to shoot up to 10-20x, with a 40 hour project completed in 2-3 hours on the wall clock, but shipping the equivalent of 40-50 hours of latent slop. In other words, the solution would need to be completely rewritten to fit into a broader architectural pattern even if it completes this one feature, incurring a rework cost in EHE hours dwarfing the productivity, no matter how large it is. This is the “worst case scenario” of leveraging agent swarms, and on this metric if the bill eventually comes due it would be very large.
- For low-taste engineers under these simple assumptions, the review agents are capable of inferring more of the inferrable constraints than the 0.2-taste engineer is: about 25% of drifts from the constraints for the AI reviewers compared to just 11% for the engineer. This contributes to an inversion of the above conclusions for low-taste engineers, who see a net productivity increase by leveraging several agents in a swarm with AI review, while producing approximately the same amount of tech debt: a high-taste engineer using 1-3 agents outperforms an agent swarm because they produce little tech-debt and achieve a modest productivity gain, but a low-taste engineer produces a lot of tech debt anyway, so they are better off leveraging the AI agents which are better at review than them.
6 Conclusion
This simple model suggests that if secondary measures of
Engineers with better taste and sense for these constraints and abstractions see higher productivity gains than more junior engineers, and see those gains while giving agents longer tasks which increases their fallibility, but make up for this by catching any violations sooner, and therefore getting a productivity boost from the agentic coding multiplier with little risk of producing slop.
The sweet spot for task size per turn is not the largest task size reported by metrics like the METR task-completion time horizon, but a more modest workflow which balances the risk of autonomous agents producing slop.
Parallelising this workflow over multiple agents only confers a real productivity gain while agents are not sitting idle, after which the context switching cost makes multi-agent workflows with human specification and review worse with agent count. A simple model of AI agent review indicates that perceived productivity gains from leveraging swarms are likely at the cost of large amounts of latent slop left in the codebase upon project completion.
Notes
This metric is no longer updated, due to it being considered “saturated.” ↑
Arguably 14.8% vs 16.3% is even attributable to noise, so one could reasonably claim there has been no sure progress on this benchmark at the frontier recently. ↑
Not to mention the more code there is, the harder it is to review it and even determine how it has gone wrong, and the more challenging it is to extract which parts, if any, can be salvaged from it. ↑
If the human skips review, that’s basically the same as increasing the turn duration plus incurring the small cost of writing the next prompt, so we will assume for simplicity the human always reviews after each turn. ↑
You can imagine more complicated models for how review time scales with code, but we will assume a flat cost across a whole feature here. ↑
When humans discover this about human code, we call it tech debt. When we discover it about AI-generated code, we call it slop. In either case, there is a choice about whether you roll back or roll forward. In this model we will assume you always roll back. ↑
Or “experience,” or “skill,” perhaps ↑
So
means the engineer understands about 50% of the total constraints of the problem at that turn. We will assume the taste remains constant within a given model run, which corresponds to roughly one major piece of feature work. ↑𝑡 = 0 . 5 Different choices of a here largely adjust the difference between a junior vs senior engineer, so we choose a reasonable middleground. ↑
For a task of duration
equal to the METR 50% pass rate, this value is𝜏 = 𝐻 5 0 . ↑0 . 5 In practice,
and𝛿 are clearly not independent variables, because a smarter model is likely to have higher time horizons and be less likely to make poor decisions due to lack of context. However the dramatic time horizon scaling compared with the statistically insignificant improvements in SlopCodeBench justify the simplifying assumption that𝐻 5 0 can be treated independently of𝛿 . If they are weakly coupled, the model does not meaningfully change in outcomes. In practice, the drift hazard is more related to overall model intelligence and the quality of training environments to encourage models to leverage their latent knowledge of and taste for abstractions while coding, which requires RL environments optimizing for benchmarks like SlopCodeBench instead of simple task completion. ↑𝐻 5 0 The exponential comes from integrating the corresponding probability, the exponent, per small linear step in time during a turn. ↑
This term measures the dynamic where abstractions are front-loaded in a long task, and once a design is decided, the mechanical aspects which follow from it are carried out relatively mechanically. You can turn this dynamic off by setting
so that slop is just as likely at the end of a project as at the start. ↑𝜓 = 0 Which roughly translates to “a wrong guess on a fork in design based on some private information the model does not have once every ~5 EHE hours of autonomous work.” ↑
And clamped on both ends to
and0 . ↑1 We also count all latent slop upon delivery of the feature, which is like setting
after the last turn ↑𝜂 = 1 B is approximately
, but takes into account any work salvaged in previous steps, and failures from the pass rate𝑘 𝜏 which get corrected in the same pass. ↑𝑞 The weighting
is added because the longer latent slop has gone and been built on, the less of it can be salvaged, so the proportion of𝜑 𝑘 which you have to rollback increases the more turns have happened since it occurred. ↑𝐵 Relative to
. ↑𝐻 5 0 In this model,
represents the entire structural cost to this parallelisation. With no context switching cost𝜒 , the difference between multi-agent counts vanishes and converges on the same value achieved with two agents, which is achieved once human time is saturated. ↑𝜒 = 0 Scaling this
by some constant multiple changes the scale of the conclusions we will draw, but not the trend. ↑1 / 𝑁 Again, a different muiltiple of
will change the scale of the effects we will observe, but not the trend. ↑1 / 𝑁 ↑4 × 4 = 1 6 One small artifact of the chart is that since a review agent receives
parts of the original prompts’ context, at two swarm agents they receive the same context as a human. This appears as the two-swarm team being better than the human, but this is mostly an artifact of the model assumptions. The more important point is the trend as2 / 𝑁 increases, which remains similar even if you fine-tune the constant ratio of context the agents receive. ↑𝑁 At higher agent counts, the agent swarm outperforms the human using the same number of agents and reviewing themselves, but still does not beat a human doing more careful review with their own agents: at high agent counts the human pays a high context-switching cost which is most of the lost productivity there. ↑