arXiv:2610.20394cs.SEOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.20394

What Should a Software Team Spend on Agents? Simulation-Based Cost Optimization of Mixed AI-Human Teams

Steffen Herbold

Abstract

Context: AI agents are rapidly adopted in software development, but their token costs are rising and it is unclear how much a team should spend on agents, and on which tasks.

Objective: We determine how teams should divide spending between human developers and AI agents to deliver the features a project demands at the lowest total cost.

Method: We model mixed teams of human developers and AI agents with eight specialized roles as a discrete-time stochastic process covering bug injection and detection, technical debt, human supervision of agents, and release cycles with feature freezes. Using Monte Carlo simulation and evolutionary search, we determine cost-optimal teams for 432 scenarios varying developer capability, project velocity, debt dynamics, agent capability and price, and bug costs, and compare them with a human-only baseline.

Results: Escaped bugs are the dominant cost driver, and 61% of the agent budget goes to finding bugs. Agent capability matters more than token price, since higher-quality outputs reduce downstream quality assurance costs. In teams with capable agents, human developers mostly fix bugs and leave the implementation of new features to the agents. Teams with high-capability agents are typically cheaper than human-only teams, but low-capability agents offer no consistent advantage. At realistic velocities, the optimal teams still spend more on developers than on agents.

Conclusions: There is neither a universal token budget per developer nor a universal agentic team structure. As in traditional development, this depends on many factors and teams need to be carefully tailored to the project context to achieve the optimal cost-quality trade-off.

Keywords AI agents · software process simulation · simulation-based optimization · technical debt · cost of software quality · team composition

Steffen Herbold, 0000-0001-9765-2803

University of Passau, Passau, Germany. E-mail: steffen.herbold@uni-passau.de

Steffen Herbold

1 Introduction

If that 500,000engineerdidnotconsumeatleast500,000 engineer did not consume at least250,000 worth of tokens, I am going to be deeply alarmed — Jensen Huang, CEO of Nvidia (March 2026).

Agentic AI systems based on Large Language Models (LLMs), hereafter referred to as agents, have been shown to have strong capabilities in software engineering tasks, including code generation (Aleithan et al., 2024; Merrill et al., 2026), code review (Hu et al., 2026), and natural language focused software engineering activities (Peña and Herbold, 2026). This has led to a rapid adoption of these agents in software development teams (Bogdanov, 2026). Recently, the uncritical adoption and unrestricted use of these agents is being rolled back (Juricic, 2026), not least due to the spiraling costs. Such problems are not unexpected with new technology, where we are still trying to understand all implications of AI-native software development (Hassan et al., 2026). This raises the question whether Jensen Huang's general estimate that developers should consume at least half of their salary in agent tokens is reasonable, or whether there are better ways to compose human and agent workforces. This is the central research question of this work:

RQ How should software development teams compose their human and agent workforce to deliver the work a project demands at the lowest total cost, counting the cost of the developers, the cost of the agents, and the cost of the bugs that reach production?

To answer this question, we develop a simulation model of mixed AI-human software development teams. The core assumption of our model is that the human developers still own the code, take responsibility for the quality, and guide the key design decisions. Agents support the human developers by implementing features, fixing bugs, and providing quality assurance. However, the agents also drain resources from the human developers because they require supervision, need feedback on design decisions, or help resolve issues where they fail autonomously.

We simulate the development of a software product represented as a stochastic process that evolves over multiple sprints, where each sprint represents a fixed-duration development iteration. Within each sprint, human developers and agents implement features, inadvertently introduce bugs, as well as fix known bugs. Bugs can be detected by code reviews, more expensive audits for security issues, and generated tests. Implementing features can also require changes to the architecture, which are more expensive to implement and require the sign-off by the human developers. Neglecting architecture maintenance, code documentation, and refactoring accumulates debt, which can be reduced by agents investing effort in these activities to prevent a slow-down of the development.

Within our model, we distinguish between eight different agent roles for different development and quality assurance tasks, so that we can not only analyze how to spend on agents but also how to allocate this money for different purposes. Costs are estimated based on the estimated token use by agents, salaries of human developers, and the cost of bugs that reach production. Using a simple evolutionary search, we determine optimal team compositions for different scenarios, e.g., different assumptions on agent skills and costs, development speed, and human capabilities and costs.

Our simulations show that the costs of agentic software development and the optimal team compositions depend on many interacting factors. The key findings are:

– Agent capability matters more than agent cost. High-capability agents require less human supervision, reducing personnel costs, while also creating fewer bugs, which reduces the number of bugs that escape to production. Consequently, differences in costs for tokens matter less than the capability differences.

– Capable agents turn developers into bug fixers. For the most capable and cheap agent tiers we tested, developers should spend a median of 88–90% of their coding time on bug fixing, while at the same time, few agents are used to fix bugs.

– Agents only pay off if they are good enough. Under weaker capability assumptions, agent-supported development is not consistently cheaper than our human-only baseline. More optimistic estimates of agent capability nevertheless show that significant cost savings are possible.

– Agents enable velocities that are impossible to achieve with human-only teams. The throughput of agents can be scaled to extreme development speeds, possibly enabling new classes of products and more rapid development than can be achieved by human developers.

– In most of our scenarios, costs for human developers exceed those for agents. Unless extreme or high velocities force a strong reliance on agents, our simulation still favors paying more for human developers than for agents.

– Escaped bugs, not labor, are the main cost driver. Because escaped bugs are expensive, the optimal teams invest heavily in quality assurance. Even so, escaped (security) bugs remain the largest cost factor.

– Quality assurance consumes most of the agent budget. Since preventing bugs saves money, quality assurance activities are often scaled to high effort and therefore dominate the costs for agents. In other words, getting features is cheap, but preserving quality is expensive.

References (38)