Doubling token spend buys ~10% more commits: five weeks with 404 engineers at JetBrains

The AI Era's Lines of Code? A Case Study on What an Engineer's Token Spend Measures

Shyam Agarwal, Olga Lvova, Agnia Sergeyuk, Anastasiia Serova, Timofey Bryksin, Thomas Zimmermann, Bogdan Vasilescu

cs.SE, cs.AI

2026-11-10

Five weeks of metered agent usage for 404 JetBrains engineers: doubled token spend tracks only ~10% more commits; token spend measures agent use, not output.

What problem this solves

Companies have started treating engineers' token spend as a management number. Meta had an internal dashboard where staff competed to be the top token user, taken down after press coverage; Salesforce set minimum monthly spending targets; executives at Nvidia and Meta have said a good engineer should spend tokens worth a large share of their salary; analytics vendors divide token cost by merged pull requests and sell the ratio as ROI. All of these rest on one assumption: whoever spends more ships more. Uber burned its 2026 budget for AI coding tools in four months, and its COO said the link between spend and shipped features "is not there yet."

The counter-evidence so far comes from benchmarks and cross-organization vendor data. Nobody had followed spend and output for the same engineers over time. Researchers from CMU, UC Irvine, and JetBrains Research did exactly that: the company's internal gateway meters the tokens of every coding-agent call, so five weeks of per-engineer spend could be joined to the same engineers' commits, alongside an anonymous survey of 412 employees.

Method

The telemetry covers 3.1 million agent calls over five weeks, with two agents accounting for nearly all tokens (69% and 31%). One detail matters throughout: the median call sends about 400 times as many tokens as it receives, because context is re-sent on every turn.

Results

FindingValue
Elasticity of spend to commits, within engineer0.26 [0.19, 0.32]; doubled spend tracks 10% more commits
90th/10th percentile spend among weeks with similar commits39-240x
Variation in spend explained by output metrics38% between engineers, 13% within; engineer identity alone 79%
Share of spend not varying with the week's output (upper bound)39% [31%, 46%]
Cost of a zero-commit week77% of the engineer's average week
Agent evaluations involving non-coding use89%

Spend is also stable: five-week totals rank engineers at a projected reliability of 0.87, and the 90th-percentile engineer spent 71 times the tokens of the 10th. Instrumenting commits with lines changed lifts the elasticity to 0.48, still far short of proportional. A new frontier model landed in week 3 and absorbed 45% of all spend within two weeks; at the same commit count, weeks on the new model spent about 45% more tokens. A single model release moves any company-level "token efficiency" ratio.

In the survey, 91% of agent evaluations reported time saved (median 10 hours/week), but only 63% involved coding. Data analysis (52%), brainstorming (49%), research (44%), and planning (39%) all ranked high. Coding-only users reported a median of 3 hours saved against 10 for those with two or more non-coding activities; in a regression holding other answers fixed, the count of non-coding activities and colleagues otherwise needed predict hours saved, while coding use does not. On the cost side, 49% of free-text answers about lost time named wrong or low-quality output.

Why it matters

The data come from a setting with no targets and no leaderboards, and spend still differed 39-240x among weeks with the same commit counts. That disqualifies token spend as a productivity metric before anyone even games it. Meta has said token counts won't be used in evaluations; Amazon shut down its usage leaderboard and called token usage "deeply flawed." This paper supplies the evidence behind those retreats.

The practical guidance is concrete. Five-week totals are stable enough for budgeting and resource accounting. Per-person caps are blunt: the heaviest third of users accounts for 79% of all tokens yet has the lowest share of output-independent spend (36%), so caps cut productive spend too. The recommended levers come first: compress context, cache repeated context, route routine calls to cheaper models, and track billed cost rather than token counts. The token-cost-per-PR ratio fails four independent ways; the most practical one is that weeks with more commits mechanically look more efficient. For adoption monitoring, replace token thresholds (which shift wholesale with model releases) with weekly headcount plus the share of engineers using agents on most working days. To get at value, record which issue each session served at the gateway, and track whether engineers took on tasks they would otherwise have skipped (58% here did).

Limitations

The authors list them plainly: one company; JetBrains builds AI coding tools, so some metered use may be employees testing their own agents; the work happens in established codebases; usage was voluntary with no targets; five weeks is short, and the between-versus-within slope difference has a confidence interval that includes zero. The survey can't be linked to telemetry, and self-reported time savings are suspect (a randomized trial they cite found developers took 19% longer with AI tools while believing they were faster). Commits miss review, design, and quality; no pull-request data was available.

Two more from the numbers: elasticity varies by role, from 0.22 for developers to 0.62 for QA engineers, so a single pooled coefficient hides role structure. And the "not tied to output" share is an upper bound by construction, since it includes the fixed cost of using an agent at all and the spend behind hand-written commits.

Terms

Source

What people are saying

Related papers

All paper explainers