Cheap inference does not imply cheap software
The marginal cost of generating a patch can fall toward zero while the cost of shipping a correct, maintainable, secure change remains high. Software value is realized after requirements are understood, code is integrated, reviewers accept it, systems continue to operate, and opportunity costs are considered. Tokens are upstream intermediate goods.
OpenAI’s August 2026 Codex documentation offers subscription allowances, additional credits, and API-key usage. Credit consumption varies by model, input and cached tokens, output, context, reasoning, tools, and speed configuration [1]. These prices are time-sensitive. Even a perfect current rate card would not answer whether an agent saves money, because direct model spend can be dominated by developer and incident cost.
Define the expected net value of agent-assisted task
where
The economic unit is an accepted valuable change
Lines of code, commits, pull requests, agent turns, and completed tickets can all rise while value falls. Generated code may duplicate functionality, increase maintenance surface, or shift work into review. The economically relevant throughput is
where
A practical organization can report cost per accepted change,
The metric should be sliced by task class. Documentation and test scaffolding, unfamiliar-repository bugs, migrations, UI work, security patches, and architecture decisions have different verification costs. A global mean can hide that agents create value in one class and consume it in another.
What the productivity studies establish—and do not
The literature does not produce one contradictory mess. It estimates different treatment effects.
A controlled GitHub Copilot experiment asked recruited developers to implement a JavaScript HTTP server. Its treatment group completed the task 55.8% faster [3]. This is evidence for a large effect on that fixed task with that tool and participant distribution. It is not a 55.8% estimate for mature repository throughput.
A randomized trial with 96 Google engineers studied three internal AI features on a complex enterprise-grade task and estimated about 21% less task time, with a wide confidence interval and explicit warnings about translation across ecosystems, tools, and time [4]. This moves closer to enterprise context while remaining a designed task setting.
METR randomized 246 real issues for 16 experienced open-source developers working in repositories where they averaged years of experience. With early-2025 tools, the study estimated a 19% increase in completion time, despite developers predicting and perceiving speedups [5]. The result applies to that high-context population, task selection, tool era, and quality standard.
METR’s late-2025 continuation is methodologically instructive. Developers increasingly refused non-AI work or withheld tasks they especially wanted to do with agents, while parallel work made time accounting difficult. The researchers concluded that their updated estimate was an unreliable proxy for current productivity, despite raw point estimates shifting toward speedup [6]. Adoption changed the experiment’s selection process.
Finally, METR’s 2026 survey of 349 technical workers found median self-reported value multipliers between 1.4 and 2 and a larger self-reported speed multiplier, while emphasizing convenience sampling, selection, counterfactual difficulty, and reasons to suspect overstatement [7]. Perception is evidence about use and willingness, not a causal estimate of output.
The correct synthesis is heterogeneity. Effects vary by skill, repository familiarity, task shape, quality bar, interface, model, date, and organizational adaptation. A company should estimate its own distribution rather than pick the study whose headline supports its purchase decision.
Direct model cost is a routing problem
Current Codex documentation presents several models differentiated by capability, speed, and consumption. It recommends stronger models for ambiguous high-value work and smaller models for clear, repeatable tasks [2]. The economic implication is conditional routing.
For task features
where
Routing quality must itself be measured. A classifier that sends difficult tasks to a weak model creates false economy; one that sends everything to the strongest model eliminates savings. Start with explicit task classes and only automate routing after observing outcomes.
Context is a cost variable. Long AGENTS.md files, broad repository retrieval, verbose tool output, and many MCP schemas consume input. Caching can reduce repeated-input cost, but stale context can increase failure. Minimize irrelevant context, not decisive evidence.
Sandboxes have positive and negative economic value
Isolation consumes setup time, container storage, dependency installation, and sometimes developer effort to make environments reproducible. It also lowers expected loss, enables more autonomous action, and turns hidden environmental assumptions into configuration.
Let sandbox cost be
before counting secondary benefits such as reproducibility and reduced approval fatigue. For sensitive code or production credentials, the loss term can dominate. For a disposable tutorial repository, setup can dominate.
The correct optimization is not “sandbox everything maximally” or “remove friction.” Use inexpensive workspace isolation for ordinary changes, disposable cloud or container environments for untrusted builds and long tasks, and stronger boundaries for credentials and deployment. Reuse hermetic environments where reuse does not import poisoned state.
Fixed integration cost determines the scale threshold
An agent pilot can begin with one subscription and a repository. A dependable deployment may require reproducible environments, instructions, evals, identity integration, secret brokers, network policy, telemetry, legal review, training, support, and incident response. These are fixed or stepwise costs omitted from per-token comparisons.
If fixed deployment cost is
Large organizations can amortize
There is an option value to a careful foundation. Machine-readable build commands, hermetic tests, narrow credentials, and explicit ownership improve conventional engineering as well as agent performance. Allocate their benefit across both uses rather than charging the entire investment to AI. Conversely, a proprietary memory, evaluation, or plugin layer can create agent-specific sunk cost whose value disappears on migration.
The scale decision should therefore compare incremental rollout cohorts. Add repositories only when their expected task volume and value amortize the additional environment and policy work. A platform that succeeds in the paved-road service may remain uneconomic in a safety-critical monolith.
Latency and throughput are not inverses
Interactive pairing values low response latency because the developer waits. Asynchronous agents can run in parallel while a human does other work. This changes the queueing system.
Little’s Law states
where
This explains why local productivity and organizational delivery can diverge. Developers produce patches faster; reviewers face more and larger diffs; integration queues lengthen; work in progress rises. DORA’s 2025 framing describes AI as an amplifier of existing organizational strengths and weaknesses, with returns depending on the surrounding delivery system [8]. Its companion capabilities model focuses on organizational practices rather than tool presence alone [9].
Measure queue length, age, diff size, review rounds, and merge-to-deploy time. If review is binding, invest in better specifications, smaller patches, automated prechecks, reviewer tooling, and fewer low-value candidates before buying more generation.
Parallel agents: capacity, redundancy, and coordination
Parallelism has three economic uses:
- Throughput: independent tasks complete concurrently.
- Search: several attempts explore alternative solutions.
- Specialization: research, implementation, and review use different agents.
Costs include duplicated context, token use, environment runtime, merge conflict, synchronization, and human attention. If
Use parallelism first where outputs are compact and independent: repository maps, test failures, documentation checks, and review dimensions. Allocate one writer per ownership boundary. Make the integrator’s cost visible rather than treating synthesis as free.
Review time is an endogenous cost
Agent output can be easier to review when it includes focused diffs, tests, and logs. It can be harder when confident narration, generated tests, and broad changes require reconstructing intent. Reviewer time depends on both actual quality and calibrated trust.
Let
Independent review should sample supposedly low-risk output deeply enough to estimate false negatives. Track which findings agents catch, which human reviewers catch, and which escape. If reviewers begin rubber-stamping because “the agent ran tests,” the process has converted automation into correlated risk.
Task substitution changes measured productivity
When coding becomes cheaper, developers attempt work that was previously uneconomic: additional tests, dashboards, migrations, prototypes, documentation, or low-priority cleanup. Time saved on old tasks does not map one-to-one to value because the task distribution changes.
METR’s survey explicitly separates self-reported speed from value for this reason [7]. Acemoglu and Restrepo’s task framework distinguishes automation’s displacement of labor in existing tasks from the reinstatement effect of new tasks where labor has comparative advantage [11]. Coding agents can do both inside one occupation.
New human tasks include specification, evaluation design, context curation, integration, security policy, exception handling, and deciding which software should exist. Whether these are higher-value jobs or added overhead depends on product demand and institutional allocation.
Human capital can appreciate or depreciate
Short-run task time does not measure the effect on future capability. Agents can teach unfamiliar APIs, expose examples, and let junior developers attempt larger tasks. They can also reduce practice in debugging, decomposition, and low-level mechanisms. The economic asset is a joint human–tool production function, not today’s completion time alone.
Let developer capability evolve as
where
Skill effects alter bargaining and resilience. If only a few employees can diagnose agent failures or operate without one vendor’s stack, the organization accumulates key-person and switching risk. If shared evaluations, instructions, and ordinary engineering tools make behavior portable, agents can diffuse expertise.
Measure onboarding time, independent debugging performance, review accuracy, and recovery during tool outages. Productivity that vanishes when a rate limit, model deprecation, or provider incident occurs has a reliability discount. Current Codex documentation itself shows rapid model turnover, reinforcing the need to treat model-specific habits as temporary [2].
Switching cost also affects vendor economics. Exportable repository instructions, standard MCP services, tool-neutral tests, and retained transcripts reduce lock-in. Product-specific hooks, memories, automations, and policy schemas may create value while increasing migration cost. Include an annual exit exercise in the total-cost model: reproduce one representative workflow with an alternative harness and record what does not port.
Benchmarked task value is informative but incomplete
SWE-Lancer links more than 1,400 freelance tasks to roughly $1 million in historical payouts, including implementation and managerial proposal selection [10]. This is more economically interpretable than a unit-test count. Yet payout is a historical market price for a bundled service that may include communication, discovery, and support beyond the scored artifact.
For internal work, estimate value through avoided cost, revenue, risk reduction, or option value, then report uncertainty. A bug fix preventing a rare outage can have high expected value and noisy realization. A prototype can create information without shipping. Not every task needs a dollar point estimate; every ROI claim needs a defensible value concept.
Build an organization-specific measurement program
A credible Codex rollout can proceed in four stages.
1. Instrument the baseline
Measure task arrival, active time, waiting, review, rework, lead time, deployment frequency, change failure, incidents, and developer experience before intervention. Define quality and acceptance.
2. Randomize representative work
Where feasible, assign eligible tasks or teams to configurations. Freeze assignment before developers decide which tasks are “good for AI.” Stratify by repository, task type, and experience. Record noncompliance rather than silently dropping it.
3. Measure the whole system
Track model and environment cost, human minutes by role, queueing, accepted output, defects, security events, and new-task creation. Analyze intention-to-treat and actual use separately. Report confidence intervals and heterogeneous effects.
4. Re-estimate continuously
Models, pricing, and workflows change monthly. Preserve a stable reference cohort and add current tools. Revalidate routing and permissions after updates. Do not apply a 2023 completion effect to a 2026 multi-agent workflow.
The investment rule
Adopt a coding-agent configuration when the expected value of additional accepted work and reduced cycle time exceeds all direct, human, coordination, and risk-adjusted costs. Scale it when the next unit of agent capacity still creates value at the current bottleneck.
That rule sounds obvious because economic mistakes often come from measuring a convenient proxy. Tokens are observable. Generated diffs are visible. Accepted, durable value is slower to measure. The organizations that do the harder accounting will know whether Codex is lowering software cost or merely moving it to a queue they stopped watching.
That distinction is the economic center of agentic engineering.