AI Agents Write 44% More Code. Shipped Work Rises 14%.
A Harvard study of 655 firms found coding agents raise code output far more than shipped work. The gains are stuck in code review. Here is how to unstick them.
Key takeaways
- A Harvard study of 655 firms found AI coding agents raise lines of code by 44% and pull requests by 36%, while resolved Jira issues rise only about 14%, a borderline significant effect.
- Code review is the bottleneck: time from submission to merge rose 56% and comments per PR rose 39%, with no change in PR size.
- Fix review before adding more agents.
On this page
AI coding agents make engineers write far more code, but companies ship only a little more software. In a Harvard study of 655 firms, agents raised lines of code 44% while resolved issues rose about 14%. The missing gains are stuck in code review, where time to merge rose 56%. More agents won't fix that. A faster review pipeline will.
Verified against
Chen and Stratton, "Artificial Intelligence in the Firm" (version dated November 8, 2026), checked against the paper's PDF, plus the GitHub CLI gh pr list manual and GitHub's CODEOWNERS docs. Checked November 2026.
The study is "Artificial Intelligence in the Firm: Bottlenecks in Software Production," the job market paper of Harvard economics PhD candidates Fiona Chen and James Stratton. It uses 445 million work events (GitHub activity, Jira issues, and Google Calendar data) for 720,542 workers from Jellyfish, an engineering analytics platform, with data from January 2021 to August 2026. The design is a staggered difference-in-differences that compares firms by when they adopted AI tools. Its estimates moved between drafts; every number below is from the November 8, 2026 revision.
Know the limits before you quote it: it is not yet peer reviewed, the firms are Jellyfish customers who already measure engineering closely, and "shipped" means resolved Jira issues and epics. Still, it measures real firms over five years, not lab tasks.
What the numbers actually say
The headline is a gap between individual output and company output. Effects are twelve months after adoption.
| Measure | AI coding assistants | AI coding agents |
|---|---|---|
| Lines of code | +30.4% | +44.0% |
| Commits | +16.8% | +36.0% |
| Pull requests opened | +20.9% | +35.7% |
| Jira issues resolved | -1.5%, not significant | +13.7%, borderline significant; rules out more than +30.7% |
| Jira epics resolved | +3.4%, not significant | +18.0%; rules out more than +41.5% |
| Engineering employment | +3.0%, rules out below -4.7% | -2.6%, rules out below -15.6% |
Agents (tools that complete multi-step tasks on their own) deliver a much bigger jump than autocomplete-style assistants. But what reaches production grows far less: the authors rule out an issue increase larger than 30.7%, well under the 44.0% coding gain. They also checked whether issues simply got bigger, using models to predict from each description how long the issue would take, and found no change.
Headcount didn't measurably shrink either (-2.6%, a noisy zero). The "AI will replace engineers" story and the "AI makes every team twice as fast" story both fail the same data, at least so far.
This is not a one-paper result. The authors note that Demirer, Musolff, and Yang (2026) found the same shape in open-source repositories: GitHub Copilot raised lines of code and commits substantially, with much smaller effects on pull requests and releases.
Where the extra code goes: code review
Agents speed up writing. Review stays human-paced, so work piles up in front of reviewers. After agent adoption, the paper measures:
- Time from pull request submission to merge: +56.1% (from a baseline of 3.56 days).
- Time waiting in the review backlog: +59.9%; time in active review: +58.5%.
- Comments per pull request: +38.6%.
- Share of PRs formally blocked with requested changes: +38.5%, and share receiving at least one comment +13.1%, though both estimates are marginally insignificant.
The detail that matters most: PR size did not measurably change. PRs averaged about 1,200 added lines before and after agents arrived. Each change simply needs more correction. One junior engineer quoted in the paper puts it plainly: "The model gets you maybe 95% of the way there, and then the remaining 5% is figuring out what it got wrong and fixing it."
Review also doesn't scale like writing does. In the data, 82.8% of reviews are done by someone already familiar with the code, and 75.7% of reviews of senior engineers' code are done by other seniors. You can't route around that by adding junior reviewers.
The authors' calibrated model goes further: agents raise coding productivity by 73.7%, and firms shift labor from coding (-22.7%) to review (+43.4%).
AI review tools have not closed the gap. By July 2026, 79.1% of firms had used AI in code review, yet only 23.3% of review comments were AI-generated and only 10.8% of pull requests got even one AI comment. One engineer describes new rules requiring senior approval for AI-generated code after outages, which "created even more review bottlenecks."
Treat review as the system to optimize
If review is the constraint, measure it like any other production bottleneck. Start with time to merge, which you can pull from GitHub in one command:
# Median hours from PR open to merge, last 200 merged PRs
gh pr list --state merged --limit 200 --json createdAt,mergedAt \
| jq '[.[] | ((.mergedAt|fromdate) - (.createdAt|fromdate)) / 3600]
| sort | .[length/2|floor] | floor'
Run it for the quarter before you rolled out agents and the quarter after. If the number rose, you are living inside this paper.
Then work the constraint:
- Cap PR size in CI. At roughly 1,200 added lines per PR, reviewers skim instead of review. Fail the check above a threshold you choose and make the agent split the work.
- Set a review SLO. For example, first review within 4 business hours. Put review load on the same dashboard as deploys and incidents.
- Use CODEOWNERS to route, not to gate everything. Senior approval on every agent PR is how the paper's example firm made its bottleneck worse. Require it for risky paths only.
- Let AI do the first pass on every PR. Most firms bought AI review but barely use it. Run it on every PR so humans start from a cleaner diff. We compared options in AI code review tools.
- Make the author own verification. An agent PR should arrive with tests that ran and a short "how I checked this" note. Unverified agent code is where the extra review comments come from.
A simple size gate looks like this:
name: pr-size
on: pull_request
permissions:
contents: read
jobs:
size:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- env:
BASE_REF: ${{ github.base_ref }}
run: |
CHANGED=$(git diff --numstat "origin/$BASE_REF...HEAD" | awk '{s+=$1+$2} END {print s+0}')
echo "Changed lines: $CHANGED"
if [ "$CHANGED" -gt 600 ]; then echo "PR too large to review well; split it." && exit 1; fi
The base branch goes through env rather than straight into the script, and the token is read-only. Pick the threshold from your own merged-PR data, not from this example.
What this means for engineering leaders
First, lines of code and PR counts are now vanity metrics. Agents inflate both. Measure lead time to production and issues resolved.
Second, review capacity is your real throughput. Hiring, onboarding, and tooling for reviewers buys more shipped software than another agent license.
Third, the data runs through August 2026, and the estimates moved between drafts. The bottleneck may shrink, but only for teams that deliberately redesign review rather than bolt agents onto the old process. Some teams are rethinking the pull request itself, which we looked at in whether pull requests are obsolete.
Questions people ask
Do AI coding agents increase developer productivity?
Yes, at the code-writing level. The Harvard study found agents raise lines of code by 44.0%, commits by 36.0%, and pull requests opened by 35.7%. But that productivity does not fully pass through to shipped software: resolved Jira issues rose 13.7%, a borderline significant effect, and the authors rule out gains above 30.7%, because code review slowed down.
Why don't AI coding gains show up in company output?
Because review became the bottleneck. After agent adoption, time from submission to merge rose 56.1%, time in active review rose 58.5%, and comments per pull request rose 38.6%, while PR size stayed flat. More code arrives, each change needs more correction, and reviewers are still mostly human, so finished work grows far less than code output.
Did AI coding tools reduce engineering jobs?
Not measurably in this data. The study estimates a -2.6% employment effect twelve months after agent adoption (a noisy zero that rules out declines larger than 15.6%). Instead, the authors' model shows firms moving labor into code review, which rises 43.4%, while its long-run simulation predicts some employment decline if review stays the bottleneck.
The decision, concretely
- Rolling out agents to more teams? Measure time to merge first, then again after; expand only if review keeps up.
- Reporting AI ROI with PR counts? Stop. Report lead time and issues shipped instead.
- Already paying for AI review? Turn it on for every PR so human review starts from a cleaner diff.
- Seeing giant agent PRs? Add a PR size gate in CI this week.
The call we'd make
Keep the agents, and treat code review as the production system it has become. Cap PR size, set a review SLO, route by risk, and make agents ship evidence along with code. The teams that win the next year won't be the ones generating the most code. They'll be the ones that can review it fastest without lowering the bar.
Sources
Cite this article
Kiril Urbonas (2026). AI Agents Write 44% More Code. Shipped Work Rises 14%.. DevOpsNess. Updated 2026-11-15. https://www.devopsness.com/blog/ai-coding-agents-more-code-not-more-software
[AI Agents Write 44% More Code. Shipped Work Rises 14%.](https://www.devopsness.com/blog/ai-coding-agents-more-code-not-more-software) (Kiril Urbonas, DevOpsNess, updated 2026-11-15)
More from AI
Explore more articles in this category
Prompt Injection Defense for LLM Apps
Prompt injection is not a prompt bug, it is an architecture problem. Here is how we design LLM apps so a poisoned document cannot hijack them.
AI Security and Safety: Protecting Your AI Applications
Prompt injection, data leakage, jailbreaks, and the boring controls that actually keep production AI features safe. The threat model that matters once you ship.
Shadow Testing and Canary Releases for LLM Changes
A prompt tweak or model bump can quietly wreck answers everywhere. Ship LLM changes the way you ship risky code: gate, shadow, canary, roll back.
You might have missed
Evergreen posts worth revisiting.