In short
The developer productivity metrics that get cheated most often, and that now reach performance reviews, are the ones that count a single activity. Don't read any of them alone: next to each count, put the measure that drops when the work is bad.
These counts now reach decisions about people: performance reviews in some teams at Amazon, and jobs at Coinbase.
Every case here comes from a named, dated source.
Each count then gets its own section, from lines of code to AI tokens, with the number to put next to it, and the article ends with what to use instead.
Do productivity metrics really decide who stays?
Yes: Amazon employees say some teams count AI use in performance reviews, and Coinbase fired engineers slow to set up its AI tools.
In July 2026, 3 current and former Amazon employees spoke to the business news channel CNBC. They said some managers there track their teams' AI activity on internal dashboards, "with certain teams factoring usage into performance reviews".
In August 2025, the tech news site TechCrunch reported what Brian Armstrong, Coinbase's chief executive, had told a podcast. Armstrong fired engineers who didn't set up the company's new AI coding tools by the end of the week. Some of them had a good reason, he said. The ones without a good reason got fired.
You probably measure your engineers already, and the numbers you pick may soon decide who stays.
Should you measure engineers at all?
Yes, but a number about a person can show you where to look, and it cannot tell you why.
So before you act on a number about a person, ask them. The real question is what you count, and what you let the number decide once you have it.
What should you put next to lines of code?
Put next to a line count how much of that code is still there a few months later.
Lines of code is the oldest measure on the list. The idea was that more lines meant more work done. It never did. Now that AI writes much of the code, a line count says even less.
JetBrains, a maker of programming tools, surveyed more than 15,000 developers in mid-2026. On average, developers in the 2026 JetBrains survey said AI agents fully write about 47% of their code.
Measured data shows the same thing. Researchers at the Complexity Science Hub in Vienna checked public code on GitHub and reported in the journal Science in 2026. In the US, about 5% of Python functions were written with substantial AI help in 2022, and 29% by the end of 2024.
Anthropic makes the AI coding tool Claude Code. In June 2026, it wrote about its own numbers: "Lines of code is an imperfect measure, as it measures quantity over quality."
Code that is still there months later is the part that lasted. That one number tells you whether the lines were work, or just typing. By hand, this means following each merged change through the later history of its files, which takes real time on a large codebase.
Should you count commits?
Do not count commits at all: count the changes that got merged.
Commit counts are easy to fake. A free script on GitHub called github-activity-generator had more than 4,000 stars in September 2026. It fills a whole year of your commit history, and its own description says it does this "instantly". Its page also says it is "for educational purposes" and "should not be used to misrepresent professional contributions or coding activity".
A commit count tells you how busy someone's history looks. It can't tell you whether anything shipped. An engineer who spends a whole week on one hard fix may show a single commit for it.
In 2021, Nicole Forsgren and colleagues published SPACE, a well-known framework for measuring developer productivity. They wrote that activity counts such as pull requests and commits "should never be used in isolation either to reward or to penalize developers".
Can you judge engineers by story points and closed tickets?
No: keep story points and ticket counts inside the team, for planning the next few weeks.
Many teams estimate their work in story points. A story point is a guess about how big a task is, made before anyone writes the code. So counting finished points means counting guesses. Closed tickets have a different weakness: split one task into several tickets, and the count rises with no extra work done.
In August 2023, Gergely Orosz and Kent Beck wrote about the leaders who use numbers like these. Orosz writes The Pragmatic Engineer, a newsletter for software engineers. Beck created Extreme Programming, a team style of building software.
The first case they described was a chief technology officer who wants to identify which engineers to fire. One of the ways they listed was to "Decide on a few easy-to-measure metrics like the number of pull requests, number of tickets closed". They also wrote that "decisions are often made based on metrics known to be incorrect."
You can keep your ticket tracker. Just don't measure people through it.
Are pull request targets a good idea?
No: a target on the number of pull requests gets met by splitting the work. So next to that number, put how many pull requests needed a fix soon after they were merged. Also put how long each one waited for review.
Pull requests need more care than anything else on this list. Uber built a dashboard that counted diffs per engineer. A diff is a code change sent for review, much like a pull request. When Gergely Orosz asked engineers there how the dashboard changed things, he heard that people started to create "far, far more diffs". That raised the load on the systems that build and test every change, and the cost of running them.
Some managers and directors then set targets for the number of diffs per month. Those targets, Orosz wrote, "are met with ease: as you just create smaller diffs".
Small changes are a good thing. DORA, which stands for DevOps Research and Assessment, is Google's research program on how teams deliver software. Its guide "Working in small batches" was last updated in December 2025. It says to "Avoid the temptation to generate massive pull requests", because "large changes are difficult to review, test, and integrate safely."
So the trouble at Uber was the target on the count. A big change broken into small ones that each pass review and stay in production is good engineering. The fixes after merge and the review waits are what tell you whether that is what happened. The review waits are in each pull request's history. The fixes take more work: for every later fix, someone has to find the pull request it corrects.
Should you set targets for AI use and token counts?
Counting AI use can help people try the tools, but once use becomes a target, people raise the count without doing better work.
The newest measures count AI itself. Every token an AI tool uses costs money, and some leaders now treat token spending as a sign of good work. Jensen Huang is the chief executive of Nvidia. On the All-In Podcast in March 2026, Huang said: "If that $500,000 engineer did not consume at least $250,000 worth of tokens, I am going to be deeply alarmed."
His argument makes sense. An engineer with good AI tools can get more done, and the company pays for those tools anyway. DORA made a similar case in June 2026. It wrote that a token leaderboard "does provide a relatively low-stakes way to encourage exploration in 'AI-hesitant' developers", and that "teams cannot achieve impact without baseline adoption."
That part is fair. The trouble starts when use becomes the target. In April 2026, the newsletter The Pragmatic Engineer reported on Salesforce. The company expects its engineers to spend at least $170 a month on AI tokens, and flags anyone who spends less.
Also in April 2026, the tech news site The Information reported on a leaderboard at Meta. It ranked more than 85,000 employees by the tokens they used. In 30 days they used about 60 trillion tokens, The Information reported, and some left AI agents running for hours just to raise their numbers. Meta removed the leaderboard.
In July 2026, the news agency Reuters reported on a lawsuit by 26 former Meta employees. The lawsuit claims that Meta relied on factors such as productivity and AI token use when it chose whom to lay off. It also claims that this hurt people who had missed work for medical reasons. Meta denies the claims. A Meta spokesperson told Reuters: "Workforce management and organizational decisions were and are made by people, not AI."
Amazon confirmed to Business Insider in May 2026 that it had closed its own token leaderboard. Dave Treadwell, one of its senior vice presidents, told staff: "Please don't use AI just for the sake of using AI."
What should you put next to a token count?
What you spend on AI for each change that got merged: tokens are a cost, and you judge a cost by what it bought.
I want engineers to use AI, and a lot of it where it helps. My disagreement with Huang starts there. A token bill tells you what the work cost, and only that: what the work delivered is a different number.
DORA's June 2026 article also says what to put next to a token count. It suggests looking at token use "by team, by application, or by use case". It also suggests the "cost per accepted change", meaning what you spend on AI for each change that got merged. Your AI bill does not say which change the tokens went into, so matching the spend to each merged change takes manual work.
Why is a count read alone misleading now?
Because output can rise while the work gets worse, and a count read alone shows only the output.
More AI use has not produced the same amount of shipped software. In 2026, the National Bureau of Economic Research (NBER) published a study of more than 500,000 GitHub developers. In the 2026 NBER study, as developers moved from autocomplete to autonomous AI agents, their commits rose by 240% in total. In the same study, their actual releases rose by only 30%.
In 2026, researchers at Carnegie Mellon University published a study of 806 open-source projects that started to use the AI coding tool Cursor. They compared them with 1,380 similar projects that did not. In the first month, the projects added 3 to 5 times more lines of code, and after 2 months that gain was gone. But warnings from code-checking tools rose 30%, code complexity rose 41%, and both stayed high. Count only the first number, and you'd call that a success.
A 2025 study from Tilburg University found who carries that cost. When GitHub Copilot was first tested in open-source projects, the more experienced developers reviewed 6.5% more code, and their own code output dropped 19%. The researchers warned that "productivity gains of AI may mask the growing burden of maintenance on a shrinking pool of experts". So my warning for anyone planning layoffs based on output counts alone: you may lose the experts who carry the maintenance work.
A pair shows you the cost next to the output, and the people who carry it. It makes cheating visible. It doesn't make cheating impossible.
How can you rank engineers without activity counts?
A ranking can exclude the counts that people can raise without better work, and give credit for merged work that did not need fixing.
I founded Aidealy, which makes software that measures the work engineering teams ship. Its ranking of engineers, the Aidealy Productivity Rank, works that way. The lines an engineer writes, commits, closed tickets and tokens earn no points in it. Among other things, a merged pull request earns credit, and more when it increases code quality or adds tests. Points come off when its code has to be fixed, and more when it breaks sooner. Reviewing a teammate's work earns credit, and keeping them waiting costs points. Working across more languages and repositories earns more too, and so does working with several AI chats at once, as one measure among many.
When someone's rank drops, it shows you where to look. Then you ask the person.
Whether a rank like this gets people fired is a choice leaders make.
Which engineering metrics should you use instead of activity counts?
Look at the code that got merged and lasted, and at how people work; keep AI spend as a cost you track.
The code:
- Changes that got merged
- Code still there months later
- Changes that increase code quality
- Changes that add tests
How people work:
- Reviewing teammates' work
- How long reviews wait
- Work across languages and repositories
- Several AI chats at once
Track it, don't rank by it:
- AI spend per merged change
AI spend per merged change is a cost: track it, but do not rank anyone by it. For every other number you report, one test decides how to use it. If a number can rise while the work gets worse, do not use it alone.
Sources
- Annie Palmer, CNBC, "Burnout, frustration and heartbreak: Amazon layoffs take their toll in saturated job market", 2026: https://www.cnbc.com/2026/07/11/burnout-frustration-and-heartbreak-amazon-layoffs-take-their-toll.html
- Julie Bort, TechCrunch, "Coinbase CEO explains why he fired engineers who didn't try AI immediately", 2025: https://techcrunch.com/2025/08/22/coinbase-ceo-explains-why-he-fired-engineers-who-didnt-try-ai-immediately/
- DX, "DX releases Q2 2026 State of AI Impact in Engineering report", 2026: https://getdx.com/news/dx-releases-q2-2026-state-of-ai-impact-in-engineering-report/
- Faros AI, "The AI Engineering Report 2026: The AI Acceleration Whiplash", 2026: https://www.faros.ai/blog/ai-acceleration-whiplash-takeaways
- github-activity-generator, GitHub: https://github.com/Shpota/github-activity-generator
- Forsgren, Storey, Maddila, Zimmermann, Houck and Butler, "The SPACE of Developer Productivity", Communications of the ACM, 2021: https://cacm.acm.org/practice/the-space-of-developer-productivity/
- Gergely Orosz and Kent Beck, The Pragmatic Engineer, "Measuring developer productivity? A response to McKinsey", 2023: https://newsletter.pragmaticengineer.com/p/measuring-developer-productivity
- DORA (DevOps Research and Assessment), "Working in small batches", 2025: https://dora.dev/capabilities/working-in-small-batches/
- Lee Chong Ming, Business Insider, "Jensen Huang says he would be 'deeply alarmed' if his $500,000 engineer did not consume at least $250,000 of tokens", 2026: https://www.businessinsider.com/jensen-huang-500k-engineers-250k-ai-tokens-nvidia-compute-2026-3
- Evan Conaway, DORA, "Finding balance in the era of tokenmaxxing", 2026: https://dora.dev/insights/finding-balance-in-the-era-of-tokenmaxxing/
- Gergely Orosz, The Pragmatic Engineer, "The Pulse: 'Tokenmaxxing' as a weird new trend", 2026: https://blog.pragmaticengineer.com/the-pulse-tokenmaxxing-as-a-weird-new-trend/
- Matthias Bastian, The Decoder, "Meta employees compete for token consumption on an internal AI leaderboard" (reporting The Information), 2026: https://the-decoder.com/meta-employees-compete-for-token-consumption-on-an-internal-ai-leaderboard/
- Reuters, "Meta used AI to target workers with medical conditions for layoffs, lawsuit claims", 2026 (as published by Deccan Herald): https://www.deccanherald.com/business/companies/meta-used-ai-to-target-workers-with-medical-conditions-for-layoffs-lawsuit-claims-4073675
- Justin Reock, DX, newsletter post on how much AI use and merged pull requests grew across 400 companies, 2026: https://newsletter.getdx.com/p/ai-productivity-gains-are-10-not
- Brent D. Griffiths, Business Insider, "Amazon says it shut down a token leaderboard", 2026: https://www.businessinsider.com/amazon-ai-leaderboard-tokenmaxxing-2026-5
- Mikhail Bogdanov, JetBrains, "How Much Code Do Developers Really Let Agents Write?", 2026: https://blog.jetbrains.com/research/2026/08/how-much-code-do-developers-really-let-agents-write/
- Daniotti, Wachs, Feng and Neffke, Science, "Who is using AI to code? Global diffusion and impact of generative AI", 2026: https://www.science.org/doi/10.1126/science.adz9311
- Marina Favaro and Jack Clark, Anthropic, "When AI builds itself", 2026: https://www.anthropic.com/institute/recursive-self-improvement
- Demirer, Musolff and Yang, NBER Working Paper 35275, "Writing Code vs. Shipping Code: Productivity Effects Across Generations of AI Coding Tools", 2026: https://www.nber.org/papers/w35275
- He, Miller, Agarwal, Kästner and Vasilescu, Carnegie Mellon University, "Speed at the Cost of Quality: How Cursor AI Increases Short-Term Velocity and Long-Term Complexity in Open-Source Projects", 2026: https://arxiv.org/abs/2511.04427
- Xu, Medappa, Tunc, Vroegindeweij and Fransoo, Tilburg University, "AI-Assisted Programming Decreases the Productivity of Experienced Developers by Increasing the Technical Debt and Maintenance Burden", 2025: https://arxiv.org/abs/2510.10165

