跪拜 Guibai
← Back to the summary

AI-Generated Code Share Becomes a KPI, and the Fastest Coders Are the First to Lose

AI Generation Rate Enters the KPI, and the Fastest Coders Are the Most Worried

By kyriewen

At the end of last month, 36Kr published “A Large Number of Programmers Are Being Pushed Off the Table by AI.” It cited Maimai’s spring recruitment report: 54% of surveyed programmers said their companies had gone through position optimization, and 34.9% said the scale of optimization exceeded 10%.

Seeing too many layoff numbers numbs you. What really made me sit up was another kind of news: some teams are no longer satisfied with “encouraging AI use”; they have started evaluating individuals by “share of AI-generated code,” with very specific percentages.

The assessment has landed on individuals

Let’s look at a few public cases.

Public case Assessment criterion Source and time
An e-commerce department (as relayed by a netizen) Backend hand-written code ratio no more than 10%; client-side required to be 100% AI-generated; IDE plugin automatically counts; consecutive failures to meet the target enter the elimination process V2EX post, October 2025
A frontend job posting (JD) Proficient use of internal AI development platform; AI-generated code share no lower than 70% Screenshot of a job posting, widely shared this September
A cloud vendor’s CIO organization Does not assess generation rate; assesses per-capita effective code volume and defects per thousand lines InfoQ report, this May

The first row is a post from over a year ago, and at the time many people treated it as a joke. The second row is this year’s hiring requirement, which shows the metric has spilled over from internal assessment into hiring standards. The third row is a comparison I deliberately included: organizations that actually get results from AI assess outcomes, not process ratios.

A 36Kr report in April also mentioned that Kuaishou changed its criterion to “per-capita effective code lines” and explicitly said that using the AI-generated share to measure individual productivity is a misuse. That sentence is worth copying down.

Why managers love this number

The AI generation rate has three advantages that managers find hard to refuse: the plugin can count it automatically, it can be turned into a daily report, and it is a nice-looking decimal point when reporting upward.

It looks like an engineering metric, but in essence it is a financial metric, used to prove “we bought AI and we are really using it.” In round after round of cost-cutting narratives, a number that can be generated automatically is almost destined to be written into assessment forms.

The problem is exactly here: a number that can be counted automatically can also be beautified automatically.

Different tools use different criteria. Copilot counts how many completion suggestions you accepted; Cursor counts the diff it generated; internal platforms often count “lines in files created by AI.” The same developer can differ by twenty percentage points in generation rate just by switching plugins. Ranking people by a number whose criteria are not even consistent ranks tool configuration, not ability.

There is also a key change this year compared with last year: AI coding has gone from “completion” to “doing it for you.” In Claude Code, you describe a requirement and it directly generates the entire file; Codex can implement a small feature from start to finish. The generation share does go up, but the workload of review, rework, and integration testing also goes up. Many teams only count the first half; no one keeps the books for the second half.

Five loopholes

The five most common loopholes in AI generation rate assessment, and almost every one can be matched to a real scenario in an actual team.

Loophole What actually happens
The numerator can be inflated Feed boilerplate, migration scripts, and repeated components to AI in whole chunks; the share immediately goes up while delivery quality stays the same
The denominator does not include rework AI generates 100 lines, review rewrites 60 lines, the statistics still count 100 lines as generated, and rework is not counted
Deleting code is not counted as output Deleting 500 lines of dead code is a real contribution, but the generation rate is 0, and fewer total lines makes output look lower
Difficulty is not distinguished Generating a CRUD page and generating concurrency control both count as “AI-generated” in the plugin’s eyes, with the same weight
Honest people lose People who prefer to hand-write and take over other people’s code naturally have a lower ratio; people who are good at packaging their process naturally have a higher one

The five loopholes point to the same result: this metric rewards not “using AI well” but “looking like you used AI.”

Managers are not unaware of this. But they need an answer they can justify upward, and the generation rate is ready-made. So an extra column appears on the assessment form, and an extra layer of performance appears in the team: first feed the whole requirement to AI, generate it, then slowly fix it, and finally screenshot the report: “This week’s AI-generated share: 82%.”

When is this metric useful?

To be fair, the generation rate is not completely useless.

In scenarios like outsourced delivery, campaign-page factories, and standardized admin backends, where requirement shapes are stable and acceptance criteria are clear, the generation rate can reflect tool penetration and can also expose the waste of “buying licenses that nobody uses.” At this point it is a process metric for managing tools, not for managing people.

Once it is used to rank individuals or link to elimination, the nature changes. A process metric can be rough; a personnel metric must be accurate, and the generation rate is exactly not accurate. Using a rough metric for fine-grained personnel decisions is like measuring height with a thermometer.

If you want to manage AI efficiency, what to look at

If a team really wants to quantify the changes AI brings, I would suggest looking at the following four metrics.

Alternative metric What it measures Why it is harder to cheat
Rework rate The share of AI-generated work sent back for rewriting Depends on review records; inflating it is costly
Defect rate Number of production issues per thousand lines Production incidents cannot be hidden; the definition is mature
First-pass review approval rate Average rounds from submission to merge Visible across roles; hard for one person to manipulate
Delivery cycle Time from requirement intake to launch Product and testing can both testify

None of these four metrics is as easy to count as the generation rate, but all of them are closer to “whether delivery actually got better.” Harder statistics are their weakness; being hard to cheat is exactly their value.

Why the fast writers get hurt first

This is the part I most wanted to say in this article.

Fast writers usually have two characteristics: they hand-write a lot, and they modify a lot of other people’s code. Both of these are negative assets under generation-rate assessment.

Hand-writing does not produce AI lines. Fixing bugs is even more of a loss: read ten lines, change one line, AI basically cannot help, the numerator stays still, and the denominator keeps growing. A person who puts out fires every day and patches legacy code every day often ranks at the bottom of the generation rate at the end of the month.

Conversely, people who throw the whole requirement to AI and then slowly fix what it generated can easily hit above 80%. Even if they revise three times and leave two production issues, the report still looks good.

So the assessment translates “fast” into “low” and “stable” into “not embracing AI.” The people who know the business best and are most willing to cover for others are the first to be hurt by this number.

This number has a more hidden side effect: it silences the people in the team who understand the system best. People who modify old code know best which places cannot be touched and which changes will trigger cascading problems, but they are exactly the ones with the lowest generation rate. Once the assessment is hung over them, their experience becomes evidence of “not embracing AI.”

I am not against using AI. When I write pages now, I first describe the requirement in Claude Code, let it generate the whole component, and then review line by line; repetitive migration scripts, test cases, and type definitions, I hand over to AI wherever possible. The problem is not the tool; it is treating tool usage rate as personal output.

Three self-protection moves

If your company has already started assessing the generation rate, or is about to, there are three things you can do first.

First, clarify the measurement criteria. Which files and languages does the statistics plugin cover? Do changes after review count? How is deleted code counted? Some plugins count comments and blank lines as generated lines; some only count effective code; some count one line changed by AI as an entire block generated; some count by the actual diff. If the criteria are opaque, the ratio has no value for discussion. This is not being difficult; it is basic measurement common sense.

Second, use AI in verifiable areas. Scaffolding, test cases, type migrations, and repeated components can be verified immediately after generation, and if something goes wrong they are easy to roll back. Keep core logic hand-written and keep review records. Do not sacrifice maintainability for the ratio. If a real incident happens, no one will sign for you with the generation rate.

Third, keep your own output ledger. Every month, record the number of requirements, production defects, review approval rate, and number of firefighting incidents. When the company has only one percentage, you should at least have a second set of evidence. This is not confrontation; it is keeping a record that can explain your work.

This is not just your problem

In an OECD survey of 8,000 employers in 14 countries, 11% of businesses that had adopted AI cut employment, but only 9% explicitly attributed the layoffs to AI.

These numbers say one thing: AI is the narrative, and decisions are made by people. The same goes for generation-rate assessment: what it often reflects is not your code, but management’s need for a visible answer.

I have seen teams that use AI deeply, and their assessment forms do not have a generation rate at all, only defect rate, delivery cycle, and rework rate. Because people who truly understand delivery know that process metrics cannot manage good outcomes; they can only manage good-looking reports.

Finally

Every time the industry uses process metrics to manage people, it eventually gets bitten by process metrics. It was true in the lines-of-code era, and the generation-rate era will be no exception.

What is really worth watching is outcome metrics: defect rate, delivery cycle, and rework rate. They are harder to count, but also harder to cheat.

If you ask me how I view generation-rate assessment: it will not teach people who cannot use AI to use AI; it will only teach people who can use AI to perform. And a team that starts rewarding performance is usually not far from the next production incident.

Does your company assess the generation rate? What is the criterion, automatic plugin statistics or manual entry? Drop your coordinates in the comments; I will pick a few typical ones and organize them into the next post.

Comments

Top 1 from juejin.cn, machine-translated. The original thread is authoritative.

flyfox 1 likes

Used AI to build a mini program: specializes in curing couple fights and family discord [melon-eating bystander]