Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

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

Token spend mostly reflects how much engineers use agents, not their output

  • Problem Teams use token spend to rank engineers and judge productivity, but nobody had checked it against output for the same people over time.
  • Method The authors compare each engineer's weeks with their own other weeks, holding the engineer's usual level fixed instead of comparing engineers with one another.
  • Results Within an engineer, a week with twice the usual commits carried about 20% more tokens, an elasticity of 0.26.

Figure 11: Within-person correlation between an engineer’s tokens on a working
day and their commitskworking days later, both aslog(1 +x)with person
and day me…

Fig. 11 . Within-person correlation between an engineer’s tokens on a working day and their commitskworking days later, both aslog(1 +x)with person and day means removed. Small negative values at long lags are expected once each engineer’s mean over five weeks is removed.

Original paper · CC BY 4.0 · Shyam Agarwal, Olga Lvova, Agnia Sergeyuk, Anastasiia Serova, Timofey Bryksin, Thomas Zimmermann, Bogdan Vasilescu · The AI Era's Lines of Code? A Case Study on What an Engineer's Token Spend Measures · Original paper figure · Extracted the figure area from page 13 of the original PDF.

Why spend looks like an output measure

Many engineers now write software by giving a coding agent instructions, reviewing its work, and asking for changes. Each call to the agent is logged with the tokens sent and received, so summing those counts per engineer and per week gives a token spend figure. That figure counts every exchange, including those that never become a commit, and it says nothing about what each exchange was for.

Some organizations already use this number to rank people: one internal leaderboard of top token users was taken down after press coverage. Analytics vendors go further and divide token cost by merged pull requests, reporting the ratio as a return on investment. That practice assumes an engineer who spends more also produces more, and practitioners have begun to doubt that assumption.

Benchmark studies give mixed answers, since agents that run longer don't reliably solve more tasks. Deployed comparisons show output rising far less than spend, with one press summary reporting that heavier spenders merge about twice as many pull requests for ten times the spend. Those comparisons set different engineers or organizations side by side, so differences in role or team could explain the gap as much as output does.

The within-engineer comparison

The core idea is to compare each engineer with their own other weeks, so the engineer's usual level stays fixed. Comparing engineers with one another mixes in role, team and work practice, which is why the within-engineer view matters. The model is a Poisson regression estimated by quasi-maximum likelihood, which keeps zero-token weeks in the sample.

For engineer i in week t, the authors model expected tokens as follows. \[ E[\text{tokens}_{it}] = \exp\left(c_i + d\,\log(\text{commits}_{it}) + t_t\right) \] Here c_i is the engineer's own level, t_t is the week effect, and d is the elasticity, the percentage change in tokens for each percentage change in commits. A value of d = 1 would mean spend doubles when commits double, and d = 0 would mean spend ignores commits.

Commit counts are a rough measure of work and bias the slope toward zero, so the authors re-estimate it with lines changed as an instrument.

How a week's tokens move with its commits

The within-engineer elasticity of weekly tokens on commits is 0.26, with a 95% interval of 0.19 to 0.32. So a week with twice an engineer's usual commits carries about 20% more tokens. The authors fit this with the Poisson model of Equation 1, using 1,347 engineer-weeks from 344 engineers who had at least two such weeks. The elasticity d equals one when spend doubles with commits, and zero when spend ignores them.

They also estimate the reverse slope, of commits on tokens, which is 0.13 with an interval of 0.03 to 0.32. A week with twice the usual tokens therefore had about 10% more commits.

If spend tracked output one for one, both slopes would sit near one. Their product is 0.03, so the authors reject proportionality at every time unit, with p below 0.001. Commit counts are a noisy proxy for work, so the authors also instrument commits with lines changed. That instrument raises the within-person slope to 0.48, which is still well short of one.

The same-day correlation peaks at 0.33 and fades after about four working days, so a week holds most of the lag.

The slope stays low with other units: 0.30 for days, 0.21 for two-week periods, and 0.19 for lines changed. Between engineers the slope is 0.38, somewhat stronger than the within-person slope of 0.26. Because engineers chose how much to use the agents, the authors read these slopes as associations, not causal effects.

Why spend spreads so widely

Spend varies far more between engineers than output explains, and the output metrics leave most of the spread unexplained. Within every weekly-commit quintile, the 90th percentile of spend is 39 to 240 times the 10th, so commit counts alone don't narrow the gap. The authors measure commits by author date and track bug-linked commits and issue references alongside them.

The authors compare output metrics with the between-person and within-person parts of the spread, using cross-validation on held-out people and held-out weeks. Commits and lines changed alone explain 38% between people, so bug-linked commits and commit-days add nothing, at −2 points. Adding issue-tracker activity does not help either, while the pre-period work mix adds 3 points.

Even with all four activity metrics, the 90th-percentile person-week still uses 58 times the tokens of the 10th.

Person identity accounts for 79% of the deviance in weekly token use in the sample. Which engineers spend the most stays stable over the five weeks, while who has the highest cost per commit does not. Engineers' pre-period work mix and the 79% person share therefore point to a stable trait of the engineer, not to weekly output.

How much spend sits outside output

The telemetry doesn't link agent calls to repository artifacts, so the authors can't identify spend outside output directly.

The floor is the lower bound, and it counts only the unambiguous case: tokens spent in person-weeks with no commits. All 207 no-commit weeks together account for 4% of tokens, and the floor depends on the time unit, at 25% for single days and 1% for two-week periods.

The curve estimate is the upper bound, and it predicts spend in a week with no output from how spend varies with output. The authors fit four shapes for the curve: raw counts, square root, log(1 + x), and a linear spline in log(1 + x), each with s(0) = 0. They sum the predicted spend for a week with no output over person-weeks and divide by total spend to get the share.

Raw counts put 89% [79%, 97%] of all tokens at zero output, while the square root gives 63%. The log(1 + x) shape gives 42% [33%, 51%], and the spline gives 39% [31%, 46%], and the authors trust the last two. Spend rises steeply over the first few commits and then flattens, a pattern an exponential-in-counts curve can't capture.

The heaviest third of users spends 79% of all tokens, and its share not tied to output is 36%. The middle and lightest thirds have shares of 51% and 52%, so the heaviest users carry the lowest share.

What engineers say agents are for

The survey covered 197 evaluations of the two coding agents by 184 technical respondents, which the paper says account for 99.8% of metered tokens. Coding was named in 63% of evaluations, while at least one non-coding activity was named in 89% overall. Among the 100 evaluations of assigned tools, the non-coding share was 83%. The most common non-coding uses were processing and analyzing data (52%), brainstorming (49%), and research on a topic (44%).

Planning work (39%), learning (28%), and writing (23%) followed, as shown in Figure 7.

In 91% of the 167 past-week evaluations, respondents said the tool saved them time that week. The median saving was 10 hours, with an interquartile range of 5 to 20. Hours saved are a self-report, and the paper treats a negative value as time the tool cost. In the regression on all seven predictors, the count of non-coding activity types has a coefficient of 0.24 [0.06, 0.43].

The model uses 134 evaluations and reaches an R² of 0.43. Respondents who reported enabled work also chose more activities and named more colleagues, so the paper cannot separate the three.

In their free-text answers, respondents describe the agent's main value as speed on usual tasks (31% of 74 answers) and work in unfamiliar code or domains (30%). Of 44 descriptions of work done only because the agent existed, 36% describe unfamiliar codebases or stacks. On what cost time, 49% of the 67 substantive answers describe wrong or low-quality output.

The cost of verifying output appears in 18% of those answers, and it sometimes exceeds the time saved.

Figure 9: Thematic coding of the free-text answers on what cost time and on enabled work. Figure 13 in SM B shows the other two questions

Fig. 9 . Thematic coding of the free-text answers on what cost time and on enabled work. Figure 13 in SM B shows the other two questions.

Original paper · CC BY 4.0

The hours question misses two costs: cognitive load from working with agents and time spent on colleagues' AI-generated material. Among technical agent users, 31% report higher cognitive load from AI agents, while 51% report lower. Cognitive load is nearly uncorrelated with hours saved (ρ = 0.11), compared with 0.57 for overall productivity.

That handling cost a mean of 1.6 hours a week [1.2, 2.1].

What to do with a spend count

Dividing spend by commits makes an engineer look more efficient in busier weeks, because tokens per commit fall as commits rise. A week with twice an engineer's usual commits has about 1.2 times the tokens, so tokens per commit come out 40% lower. The ratio also ranks engineers consistently overall, with projected reliability 0.80, but it doesn't hold at the top.

A company that divides tokens by commits counts agent work that ends without a commit as cost without return. Companies that want to judge efficiency should compare spend on comparable tasks, which needs task records.

A token threshold for adoption depends on the threshold chosen, and Google and Steve Yegge's numbers both can be right.

The authors recommend keeping spend for resource accounting and judging agent-assisted work by evidence about tasks and outcomes. Analyses that use spend as exposure should separate within-engineer variation from between-engineer variation.

Limitations

Every estimate is an association, because engineers chose how much to use the agents. The within-engineer slope assumes that spend and the commits made with it fall in the same week. Five weeks per engineer is too short to settle whether the between-minus-within gap is real.

The study covers one company, with about 2,600 employees and 404 engineers in the panel. The gateway meters only coding-agent calls, so chatbots and other assistants aren't in the telemetry. The gateway token data covers only the last weeks of the commit window, so the analysis uses five complete weeks.

Commit counts miss code quality and work that doesn't change the code, such as review and design. The authors considered pull requests but lacked the data, so they couldn't use them as output. The survey hours are one-week self-reports, and survey responses can't be linked to individual telemetry or repository data.

Paper info

Authors
Shyam Agarwal, Olga Lvova, Agnia Sergeyuk, Anastasiia Serova, Timofey Bryksin, Thomas Zimmermann, Bogdan Vasilescu
Venue
arXiv · Preprint
First published
2026-11-10
Added
2026-11-11
Updated
2026-11-10
Version
v1
arXiv
2611.13396
Category
cs.SE · cs.AI
Original paper terms
CC BY 4.0
What we show
Paper info, commentary and permitted figures from the original paper

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Abstract

Organizations use engineers' token spend to monitor AI adoption, set budgets, and measure productivity, but the metric's relationship with engineering output is unclear. We link five weeks of token usage in coding agents to the commits of 404 engineers at JetBrains, and analyze a company survey of 412 employees. We find that token spend varied mostly between engineers, and which engineers spent the most stayed largely the same over the five weeks. Among weeks with similar commit counts, the 90th percentile of spend was 39 to 240 times the 10th. Within an engineer, doubling spend was associated with about 10% more commits. Available work metrics explained 38% of the variation in spend between engineers and 13% of the week-to-week variation within an engineer. In the survey, respondents in technical roles reported in nearly nine of ten agent evaluations using agents for tasks beyond coding, such as analysis, research, and planning. Token spend therefore measures how much engineers use agents across many kinds of work and not the outcome and value of that work. We recommend using token spend at most for resource accounting, and evaluating agent-assisted work with evidence about tasks and outcomes.

Quote from the paper

Shyam Agarwal, Olga Lvova, Agnia Sergeyuk, Anastasiia Serova, Timofey Bryksin, Thomas Zimmermann, Bogdan Vasilescu (2026). The AI Era's Lines of Code? A Case Study on What an Engineer's Token Spend Measures. arXiv:2611.13396v1. https://arxiv.org/abs/2611.13396v1

BibTeX
@misc{agarwal2026lines,
  title = {{The AI Era's Lines of Code? A Case Study on What an Engineer's Token Spend Measures}},
  author = {Shyam Agarwal and Olga Lvova and Agnia Sergeyuk and Anastasiia Serova and Timofey Bryksin and Thomas Zimmermann and Bogdan Vasilescu},
  year = {2026},
  eprint = {2611.13396},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.13396v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up