NDS 1:2026
Measuring finished work after coding agents: method, validation and a production-line model
- Issued by
- the notdone contributors
- Edition
- 1, 10 October 2026
- Software
- notdone 0.1.0, MIT
- Status
- informative, not peer reviewed
1 Scope
This document specifies how to measure the effect of adopting AI coding tools on a software organisation's output with the notdone toolkit: the panel, the measures, the estimators and the checks. It also gives a production-line model for reasoning about where the extra code goes. It does not specify targets.
2 Normative references
- F. Chen, J. Stratton, Artificial Intelligence in the Firm: Bottlenecks in Software Production, Harvard University working paper, version of 4 August 2026.
- B. Callaway, P. H. C. Sant'Anna, Difference-in-differences with multiple time periods, Journal of Econometrics 225(2) (2021) 200–230.
- A. Goodman-Bacon, Difference-in-differences with variation in treatment timing, Journal of Econometrics 225(2) (2021) 254–277.
- J. D. C. Little, A proof for the queuing formula L = λW, Operations Research 9(3) (1961) 383–387.
- E. M. Goldratt, J. Cox, The Goal: A Process of Ongoing Improvement, North River Press (1984).
3 Terms and definitions
- 3.1 unit
- a team or firm observed every month.
- 3.2 adoption month
- the first month in which a unit uses coding agents in its normal work.
- 3.3 finished work
- issues (and epics) closed as done in the issue tracker.
- 3.4 done ratio
- finished issues per 1,000 lines of code written.
- 3.5 time to merge
- days from opening a pull request to merging it; a length of wait, not hours of effort.
4 Background
In the reference study (2.1), adopting coding agents raised lines of code per worker by about 30%, commits by 20% and pull requests by 23%, with no statistically significant change in issues or epics finished. Time to merge rose 49% (3.45 days), comments per pull request 35%, and the share of pull requests sent back for changes nearly doubled (+0.12). The authors place the bottleneck in code review.
5 Method
5.1 Build the panel from events (clause 3). Counts are divided by active workers; review measures by pull requests.
5.2 Estimate, for each measure y, the two-way fixed effects event study
log yit = ai + bt + Σk≠−1 ck·1[t − Ei = k] + eit
where Ei is the adoption month, the end bins collect everything beyond the window, never-adopting units carry no indicators, and errors are clustered by unit. The effect k months after adoption is exp(ck) − 1. Shares are estimated in levels.
5.3 Because two-way fixed effects can mis-weight staggered adoption (2.3), repeat with cohort-by-month comparisons against units not yet treated (2.2) and report both.
5.4 Check that the coefficients before adoption are near zero. If they trend, the comparison is not fair and the estimate shall not be reported as an effect.
6 Validation
Table 1 plants the study's effects in a simulated company (160 teams, 36 months, staggered adoption, effects ramping in over three months) and estimates them with both estimators. It is computed on this page.
| Computing… |
The pooled estimates fall short of the planted effects by roughly the share of post-adoption months still ramping in. From the third month on, the month-by-month estimates in the test cell match the planted values.
7 The production-line model
7.1 Output of a line is set by its slowest station (2.5). If review capacity does not grow as fast as coding, the extra pull requests wait; by Little's law (2.4) the queue grows with the arrival rate times the waiting time.
7.2 Table 2 runs the model of clause 4 of the toolkit (the line) for twenty seeds with the default agent settings.
| Computing… |
7.3 The agent settings are a model chosen to reproduce the pattern of 2.1 (more pull requests, slower merges, flat finished work); they are not estimates. Their use is to show which change would move finished work. In the model, the faster coding is spent on rework: more pull requests per issue and twice the send-backs. Fewer send-backs or fewer pull requests per issue raise finished work; extra review hours change little, unless review hours are short enough to make review the slowest station.
8 Limitations
Event studies show what changed around adoption, not why; adoption that follows growth plans biases them. Issue counts depend on how teams split work. The line model describes one team, is not fitted to data, and leaves out everything outside code and review. The reference study's own limitations apply to its figures.