跪拜 Guibai
← All articles
Frontend · JavaScript · Programmers

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

By kyriewen ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

A KPI that measures AI-generated code share is moving from internal reviews into hiring requirements, so the same metric can land on engineers at Chinese companies and at Western teams that copy the practice. It rewards the appearance of AI usage over delivered quality, and it scores down the people who write fast, fix bugs, and maintain legacy systems.

Summary

Public examples are already concrete. A V2EX post from October 2025 describes an e-commerce department where backend hand-written code cannot exceed 10%, client-side code must be 100% AI-generated, an IDE plugin counts automatically, and consecutive misses trigger elimination. A frontend job posting shared this September requires at least 70% AI-generated code. Some organizations push back: a cloud vendor’s CIO organization measures per-capita effective code volume and defects per thousand lines, and Kuaishou explicitly calls AI-generated share a misuse for individual productivity.

Managers like the number because plugins can count it, reports can be generated daily, and it is a clean decimal to present upward. Tool definitions vary: Copilot counts accepted completions, Cursor counts generated diffs, internal platforms count lines in AI-created files, and switching plugins can move the same developer by twenty percentage points. The metric has exploitable gaps: boilerplate inflates the numerator, rework never enters the denominator, deleted code counts as zero output, CRUD and concurrency control get equal weight, and people who hand-write or take over legacy code score lowest.

Alternative metrics exist: rework rate, defect rate, first-pass review approval rate, and delivery cycle. They are harder to count and harder to cheat. Defensive moves are available to anyone under this KPI: clarify the measurement criteria, reserve AI for verifiable work, and keep a personal output ledger.

Takeaways
— Maimai’s spring recruitment report, cited by 36Kr, says 54% of surveyed programmers reported their company had gone through position optimization, and 34.9% said the optimization scale exceeded 10%.
— A V2EX post from October 2025 describes an e-commerce department requiring backend hand-written code to stay at or below 10%, client-side code to be 100% AI-generated, IDE-plugin counting, and consecutive misses leading to elimination.
— A frontend job posting shared this September requires proficiency with an internal AI development platform and an AI-generated code share of at least 70%.
— A cloud vendor’s CIO organization reportedly assesses per-capita effective code volume and defects per thousand lines instead of generation rate.
— Kuaishou changed its criterion to per-capita effective code lines and called AI-generated share a wrong way to measure individual productivity, according to a 36Kr report in April.
— Tool definitions differ: Copilot counts accepted completions, Cursor counts generated diffs, and internal platforms often count lines in AI-created files; switching plugins can change a generation rate by twenty percentage points.
— The metric’s loopholes include inflating the numerator with boilerplate and migration scripts, excluding rework from the denominator, counting deleted code as zero output, weighting CRUD pages and concurrency control equally, and penalizing people who hand-write or take over others’ code.
— Alternative metrics include rework rate, defect rate per thousand lines, first-pass review approval rate, and delivery cycle.
— The practical defenses are to clarify the plugin’s measurement criteria, use AI in verifiable areas like scaffolding and tests, and keep a personal monthly ledger of requirements, defects, review approval, and firefighting.
— An OECD survey of 8,000 employers in 14 countries found 11% of AI-adopting firms cut employment, but only 9% explicitly attributed cuts to AI.
Conclusions

Managers adopt the generation rate because it proves an AI purchase is being used and it automates into a report; those are finance-facing properties, not engineering properties. That origin explains why the metric survives even after engineers show that tool definitions vary by twenty percentage points.

Counting generated lines inverts the value of engineering work. Deleting 500 lines of dead code, fixing a bug by changing one line, and taking over legacy code all lower the numerator or raise the denominator, which makes the hardest work score worst.

The metric has moved from internal reviews into job descriptions before the industry agreed on how to count it. A candidate can be filtered out by a ratio that depends on which plugin the employer installs.

The OECD numbers separate AI adoption from layoff decisions: 11% of AI-adopting firms cut jobs, but only 9% blamed AI. That gap shows the generation-rate KPI is a management answer, and replacing it depends on management, not on how much AI code an engineer writes.

Concepts & terms
AI-generated code share (生码率)
The percentage of code counted as produced by AI assistance, usually by an IDE plugin. Definitions vary: some tools count accepted completions, some count generated diffs, and some count lines in AI-created files.
Per-capita effective code lines (人均有效代码行)
A productivity measure that counts useful code output per person. Kuaishou uses it instead of AI-generated share and explicitly says AI-generated share is a misuse for individual productivity.
Rework rate (返工率)
The share of generated or delivered work that is sent back for rewriting. It is one of the outcome metrics proposed in place of generation rate because it depends on review records and is costly to fake.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗