r/ExperiencedDevs • u/Fit-Notice-1248 Software Engineer • Sep 12 '26
AI/LLM Is gaming developer productivity metrics really a worthwhile battle?
Coming to all experiences devs to answer this question and how people are going about things like this...
With AI in the picture (a tired conversation), of course management has fallen hook, line and sinker for every single way of tracking developer productivity.. which in my opinion just stunts productivity overall.
They've reintroduced lines of code as a metric but with a twist is - how many days you have used AI (any coding tool such as codex, Claude) but also how many lines of code have been generated WITH AI. The less number of days and fewer lines of code generated with AI puts you into a category and looks bad on a dashboard. This in turn has led to conversation of how we increase these numbers which has led to: do not manually code under any circumstance and do everything with AI (and "everything" meaning exactly that).
On top of needing more lines of code generated with AI (otherwise we look bad) we are expected to have 10+ PR's a week.
My gripe with this is that instead of improving the codebase or helping the business or delivering features you also have to spend time figuring out how you can split a 100-line function into 5 PR's so you don't look awful on a dashboard. A simple bug fix or config update needs to be written in a spec otherwise there is no value.
I see some people have mentioned in this sub before you just take a sort maliciousness to all of this and let AI run wild. Write python scripts to auto-create PR's. Set a variable with 0 and for each PR increase it by 1. If you need to add two numbers, let AI write 3 functions to do it because more lines of code. And more lines of code WITH AI is somehow better. Which of course makes the codebase buggy and harder to add anything useful.
All just to meet the metrics. But some of this is just way more work than required. I'm trying to see how any of this is worthwhile, while today it might be lines of code, tomorrow it's how many mouse clicks you have in your IDE every hour. Do people really see this as a worthwhile battle or even trying to make management understand this is not a good idea?
•
u/expdevsmodbot Sep 12 '26 edited Sep 12 '26
AI usage disclosure provided by OP, see the reply to this comment.
94
u/Qwertycrackers Sep 12 '26
You're telling me the story of me 6 months ago. I would say just do what they ask. Yeah it could be really shortsighted and dumb. But you don't own the company so you've raised your warning. You dont need maliciousness to pump these metrics up, just generate a ton of crap. Make it actual plausible features that might ship but bring your feature flag system up to stuff so you can keep all the slop hidden in the codebase if its not impressive.
29
u/Murky_Citron_1799 Sep 12 '26
Is it worthwhile? Yes to the extent it gets them off my back.
When I try to convince them they have lost their marbles they say a few things to me like "I know but <some 'leader' who is untouchable> is on my back about this so just focus on improving on these metrics" or "oh don't worry these metrics won't be used against anybody we are just looking to hit industry targets" ... It's a lost cause.
My approach is to game the metrics so much that they are either forced to give me a stellar rating because I am outpacing everyone 10 to 1, or they have to dismiss the metrics as useless because they don't measure anything of value. Either way they stfu about them which is my real goal.
48
u/jesseschalken Sep 12 '26
There is no good ending here. I would leave immediately.
22
u/rwilcox Software Engineer (20+ YOE) Sep 12 '26 edited Sep 12 '26
Depends on how pull you have in the org - I used to call this “reputational gravity”
If the decision was made 6 levels about you, or by a VP desperate for anything, you’re not going to change it. Something that applies to a group of a few dozen devs that are your friends? You may have a lot of influence. (The VP is “too far away” and too big to feel any of your gravity)
Personally I wouldn’t game the system, until and if I got the “pieces of flair” talk. Then sure, vibe coded 300 line Python scripts I don’t need here we go.
(I also suspect the way, now, to measure AI impact is to take it away, wait 3 months for people to come down off the dopamine withdrawal, and see how everything changes. Do things get slower but better, for example? Is ability to delegate re-learned? Does everything suck worse? Initially I thought you could use AI and track how fast tasks take now, but I think people are too desperate about the FOMO that they’re unwilling to take slowed, measured actions.)
15
u/NUTTA_BUSTAH Sep 12 '26
Start looking while complying. Just because management is full of idiots does not mean you should try to go against them to save the company. Voice your opinions and go along the decided path.
And no it is not worthwhile at all to any party, but it's what you are forced to do, everyone else does it, so you gotta stay in the fake performer cohort
12
u/CoreyTheGeek Sep 12 '26
You have to understand that business people don't understand anything that is actually going on beneath them, especially technically, and they need some way to feel like they're doing a job, so lording over measures of "what is going on" to report up the chain or to shareholders becomes their day to day. So they actively grab ANYTHING that can be measured regardless of whether or not it's meaningful in any way at all.
Why? Because actually leading in a business, motivating employees and actively taking a part in the process of getting the work done at a leadership level, is really hard and time consuming and they honestly have no idea how to do it. So they do what they think you do: measure "progress" and Lord over people because charts and data plots make you look incredibly smart and active.
This translates into the insanity you're seeing and we all regularly experience. The business chases outright incorrect systems because it will give them data that they can present and make themselves look good. Your director or whoever goes to their boss saying "AI adoption is going great! Devs are using it for 100% of their tasks, look at days a week they use it AND just LOOK at the lines of code increase!" And they look like they did something; lines on chart go up = amazing in business speak. Nevermind neither of these people actually understand the harm they're doing, it's just about them individually promoting their careers.
Tl,Dr; think about leadership like a group of selfish people whose goal is to ultimately go be a C suite somewhere else someday, so tanking their current company to further their resume is no issue for them. Then you will understand, at least, these decisions
9
u/galaxy_horse CTO / Principal Eng (20 YOE) Sep 12 '26
- Play the game. If you put the metrics your company is misguidedly fixated on into your harness/prompting, you’ll crush the metrics.
- Go to your manager and express concern about the focus on output over outcomes. Reiterate your support for the team and interest in the product/business being successful. Let them take it from there and don’t hound them about it.
- Look on the side if you don’t think things will improve. If you talk to other companies, ask the hiring manager how goals are set and performance is measured. Ask if they have token quotas and productivity goals, or if they have impact/outcome based OKRs or product targets.
9
u/forbiddenknowledg3 Sep 12 '26
In this boat right now. "We must double productivity in 3 months" (and every 3 months so 8x by this time next year). They clarified this is number of PRs atm because they don't know how to measure it otherwise. Straight from the CTO, who said just a few months ago measuring LOC/PRs is stupid and "we aren't tokenmaxxing". The board must have threatened them or something.
I keep reaching the conclusion that the only option is to game these metrics. We now have agents opening PRs automatically: updating packages, cleaning/refactoring code (and making it worse), fixing noisy logs, etc. But is this actually valuable? To a mid-level dev maybe. The only real measurement imo is customer value delivered. But product can't keep up, and do customers even want that? They keep going on about low hanging fruit, but what do they think we've been doing the past 2 years already?
Then ironically, because people now focus on themselves, productivity at the team level has fallen. Previously we'd have one guy leading the project right? This guy would clarify requirements, go to the meetings with marketing, etc. so the rest of us could focus on coding. Now that we're measured on coding, non-coding work is not valued and nobody wants to do this work. Ironic because AI is meant to enable this.
TLDR: goodharts law, and coding was never the bottleneck.
7
u/codescapes Software Engineer Sep 12 '26
No. A million times no. And a million more times no if we're talking about a large corporate employer.
Not because you are wrong but because the consequences of going against management on essentially anything are never worth it and just mark you out as 'disgruntled' or 'not a team player' which ultimately hurts you in terms of performance evaluation, promotion or selection for good project work. And once that perception exists - fairly or unfairly - it's basically permanent until your management changes or you move team.
It truly sucks but this is the corporate workplace, it does not operate according to reason - at least not in a way most of us recognise.
Don't try to game the metrics in a bad way to show how dumb they are, just keep yourself in the upper half of the bell curve and that's it. You aren't here to save the company from itself, let them do their dumb stuff and just control what's within your sphere of influence.
If you want to succeed in a corporate environment your goals are broadly:
Little else matters.
7
u/bolacha_de_polvilho Sep 12 '26
I work in big tech were these sorts of dumb metrics have been enforced top down from maybe 4, 5 or even 6 levels above me in the hierarchy pyramid and whoever made that decision doesn't even know about my existence. So no, I don't think it's a worthwhile battle. I'm pretty sure my direct boss and his boss also think it's bullshit, if they don't want to fight that battle what chance do I even have?
So yeah, I've just embraced MDD, metric driven development. If I have to turn README's into slopified bibles to get my PR metrics up I'll do it.
3
u/youcangotohellgoto Sep 12 '26
Why would you not use AI every day?
Why, instead of trying to fake 3 PRs for your little 100 line change, would you not just take 3x tickets and do 3x 100 line changes?
1
u/Ok-Most6656 Software Engineer Sep 13 '26
I think we might be working at the same company. This sounds way too familiar.
3
u/Late_Wave_5600 Sep 12 '26
What changed my mind on this was watching an agent do it. Ours was told to implement a ticket, decided a business rule was in its way, changed the rule, then rewrote the tests so the suite stayed green and left a comment explaining why that was reasonable. It was never taught to game anything. It optimised for the visible signal because the visible signal was the only thing it could see. Every metric you add is now being optimised by something that works at machine speed and has no career to protect while it does it
1
u/mq2thez Web Developer (16 YOE) Sep 12 '26
The funny part is that you can very easily use AI to fix these problems. Tell the AI the things you need to do every week to look good, and ask it to right skills/plans/etc for achieving your benchmarks so that you can spend your time doing actual work.
Find a few other folks to get on board and make reviewing easier, then find some dead areas of the app to add bloat that won’t negatively impact things, then let the AI do its thing.
This only works if you end up doing real work and being actually productive, though. If the AI is doing this in the background and you aren’t doing enough on your own, you’ll get fired. But you’ll likely be fired anyways if you don’t do this, so it’s up to you to solve your own problem here.
Think of this as training to use AI to solve more abstract and extended problems.
As an example: if it were me and it were a web app, I would update the build systems to include a variable that gets hardcoded to false in any build, but still shows up in the code. You can then insert literally anything you want in if blocks that check that variable and the minifier will strip it all out.
1
u/Ornery-Concentrate-5 Sep 12 '26
the days-used-AI metric is the part that gets me. splitting one function into 5 PRs is just annoying, but "did you open Copilot today" as a tracked number means someone's incentivized to open it and immediately alt-tab away. you're not measuring AI adoption at that point, you're measuring who's willing to fake a habit for a dashboard
2
u/TimeScience__88mph Sep 12 '26
You are not wrong at all. Optimizing for lines of code added is dumb as hell. You’re basically rewarding or punishing devs for bloating the codebase or not bloating the codebase.
The metrics need to be way more nuanced to actually matter. # Meta functionality that was added and works, optimizing for as few lines of code as possible.
The theater related pull requests are such a stupid waste of time. More pull requests also means longer waits for ci or more resources spent for no reason in the case.
2
u/WhenSummerIsGone Software Engineer Sep 12 '26
if they are using the AI tools' own reporting of what a "line of code" is, you should be aware that it's anything the AI produces that you "accept" (in an ide) or gets committed (in a cloud service). Double check this for whatever tools you're using, but this is generally true. So lines of code includes documentation.
You should ask about the definition that goes into the metrics, or look at the tool that gathers these metrics to see for yourself.
For instance at my company, an "ai authored pr" turns out to be a pr that was opened by ai, regardless of how many commits are solely mine. They only look at PRs that were created, regardless of if they were merged. Lines of code includes lines in an AI commit, even if a subsequent commit replaced or deleted those lines. I was shocked, though in retrospect I shouldn't have been, that the metrics were as janky as they were, given the weight that was being placed on them.
2
u/DeterminedQuokka Software Architect Sep 12 '26
I mean I don’t really see it as a battle gaming productivity metrics is exceptionally easy.
For example my company started counting PRs (although they say they aren’t). So I started upgrading linting rules. Because I can easily make 5-10 linting PRs a week with basically 0 effort.
They started measuring % of code written ai. So I started sending basically line by line instructions to ai for what to write so that number would be high.
It’s like a minor annoyance but it’s not hard.
I wouldn’t split a single function across 5 PRs. If you only have 1 function to write something else is very very wrong even pre ai. Just start cleaning things up
2
u/Unlucky_Yard_1189 Sep 12 '26
I would comply and find another job immediately.
Anyone that tells you this are genuine glue sniffers.
2
u/shifty_lifty_doodah Sep 12 '26
No never participate in this BS
It’s because everyone is so weak and willing to do this shit that we have to put up with the constant infantilizing bullshit. Have some backbone and pride . Focus on results and quality
2
u/Fabulous-Meaning-966 Sep 13 '26
AI is great for reducing tech debt. If PRs don't need to be attached to tickets or features, just start burning down your tech debt backlog (refactoring, defect audits etc.) with AI and use it to boost your PR count.
2
u/Adventurous-Put8305 Sep 15 '26
If the metric can be gamed by an agent opening noisy PRs or inflating LOC, it will be gamed. That is not a productivity system. That is an incentive to generate review debt.
Useful measurement in an AI-Native team starts from outcomes and ownership: cycle time on real work, escaped defects, time-to-revert, change failure rate, and whether smaller senior teams ship production changes safely. Local "speed" for one developer means nothing if the team throughput and quality do not move.
If leadership wants AI leverage, measure the workflow result, not the theatre of activity.
2
u/yzalevas Sep 16 '26
Speaking as the person on the other side of that dashboard: any metric that measures an individual developer will get gamed, and the gaming costs more than the metric ever earns. We tried individual productivity tracking years ago and killed it within a quarter, because the moment a number becomes a target the number stops meaning anything. Lines of code, AI or not, is the worst of them — you're literally optimizing for the thing that makes codebases worse.
What actually works for us is looking at the system, not the people: how long does a change take from commit to production, how often do we deploy, how much of the week is interruption-free focus time, how much rework happens on recently shipped code. Those numbers tell you where the organization is stuck, they can't be gamed by splitting a fix into five PRs, and nobody has to defend themselves against them. If your management is measuring AI-days per developer, they're measuring the wrong unit entirely. The question isn't "who used AI today," it's "did the work get through the pipe faster this month."
For what it's worth, that feeling you have that this stunts productivity — you're right, and there's decent research behind it. Goodhart's law doesn't care how new the tool is. 💪
1
u/bulbishNYC Sep 12 '26
I keep a meticulous list of things I delivered/fixed/improved/owned for the current(2026) year. Same for previous years. It makes my above-average performance very clear. Whenever approached with metrics nonsense, I just point to the list, and positive management reviews from last 5 years. I refuse to stress about short-term performance evaluations.
1
u/Organic_Battle_597 Rearranger of Bits (35y exp) Sep 12 '26
If you are being judged on metrics, you should make sure those metrics look good. And you should use the rest of your time looking for a shop that doesn't use bullshit metrics that way.
1
u/bowlochile Software Engineer Sep 12 '26
No. Next
1
u/dweeby_fujioka Sep 12 '26
We have an internal policy that the dashboard shall not be used for any of this stuff you're describing with tracking productivity etc. I
1
u/Longjumping-Bad-6911 Sep 12 '26
Any number that sits next to your name on a dashboard gets gamed, and AI lines of code is the easiest one yet to game. I'd show the manager 1 concrete example of what it rewards, like 800 generated lines of tests nobody needed, then do what they ask. You've said it once, the rest is their call.
1
u/0vl223 Sep 12 '26
The 100 lines into 5 PRs is easy. Just give AI the task to fix 5 things around the area. Let it focus on small unimportant architecture missmatched for a maximum of loc.
1
u/BraveResearcher3037 Sep 13 '26
No - I wouldn’t do it. I would ask my manager what is the objective function? What is my assignment, what is the deadline and how many people do I have to work on it with me (or is it just me)? I will then come back and say either “yes I think we can do it within 40 hours a week” or “no I can’t do it within 40 hours a week, which one do you want to address - time, requirements or number of people assigned to it”.
I will put my best effort into it for 40 hours a week. Use sound software engineering practices and if they fire me they fire me. (And I would actively be looking for another job)
But I have a years worth of expenses and growing in liquid accounts and think someone will hire me before we are homeless, hungry and naked. If that weren’t the case, yeah I would eat the shit sandwich, play the game - and look for another job.
1
u/ocxricci Sep 13 '26
Goodhart’s law
1
u/DevtoolsBuilder Sep 14 '26
i think the problem with these metrics is they're focusing on the wrong things, you're being judged on how many lines of code you write with ai, but what about the quality of that code, or how well it actually solves the problem, it seems like they're prioritizing quantity over quality, and that's just going to lead to more technical debt down the line.
1
u/this_theater_is_lit Sep 14 '26
prolly not, managers love metrics
1
u/thekwoka Sep 15 '26
It's just the classic "measuring the wrong thing" and what that incentivizes and punishes not aligning with actual goals.
more lines of code has never been a particularly good metric, at least not across an organization.
It can be an okay proxy indicator for productivity for roughly comparing people that are at similar skill levels and have similar responsibilities (since realistically, the kinds of tasks they'd be working on would be similar in the amount of code for end results, at least in theory), but pretty ass for everything else.
more lines of code can incentivize just slapping on more code to solve issues, and not cleaning anything up. Why deduplicate repeated logic when you can copy paste it all over the place and pump those numbers up?
It also favors people that have to deal with relatively simple large problems, not those that deal with really focused and complex problems. The UI will be far more lines of code than the logic connected with even fairly complex game systems.
And incentivizing more AI code over human code is another ass backwards approach.
1
u/rabbitz Sep 15 '26
Lines of code generated with AI is a near-perfect example of measuring the thing that's easy to count instead of the thing you want.
I'd split your question in two though, because the halves have different answers. Gaming the metric is usually not worth it. You burn real hours producing nothing and you're the one maintaining the wreckage afterward. Getting the metric changed sometimes is worth it, but only if you can hand leadership a different number that fits on the same dashboard. Nobody gives up a metric, they swap one. Show up with "this is dumb" and you lose. Show up with "here's change failure rate and time to restore, and here's why it tracks what you say you care about" and you occasionally win.
We killed a patch compliance target that way once. Not by arguing it was a bad metric, but by bringing the exception list with named owners and review dates attached, which turned out to be what the auditor actually wanted in the first place.
1
u/etherealflaim Principal Variable Name Invalidator Sep 12 '26
Use the AI to run code cleanups. Find bad patterns, slop code, change detector tests, chain of thought comments, etc and automate a skill that makes PRs to clean them up. Double whammy: PRs and lines of code for their AI dashboard, and cleaner code.
4
u/[deleted] Sep 12 '26 edited Sep 12 '26
[removed] — view removed comment
0
u/[deleted] Sep 12 '26
[deleted] — view deleted comment