Lenny's Podcast
Lenny's Podcast

How to measure AI developer productivity in 2025 | Nicole Forsgren

Nicole Forsgren created the most widely used frameworks for measuring developer productivity—DORA and SPACE. She wrote the foundational book Accelerate and is about to release her newest book, Frictionless, a practical guide for helping teams move faster in the AI era. She’s currently Senior Directo

Featured Speakers

Lenny Rachitsky HostNicole Forsgren Guest

Topics Discussed

Episode Summary

Executive Summary: Nicole Forsgren argues that AI is changing engineering work, but not in the simplistic “more code = more productivity” way. Traditional metrics are easy to game, while real gains come from reducing friction, improving flow, speeding feedback loops, and helping teams make better decisions about what to build. Her new framework emphasizes developer experience, trust, measurement tied to business outcomes, and a product mindset for internal engineering improvements.

Main Topics: Why traditional productivity metrics fail: Forsgren explains that common measures like lines of code, PR count, or raw output can be gamed easily and don’t capture quality, strategy, or developer well-being. She argues that productivity must be defined in context and tied to value creation, not just volume. AI’s impact on developer workflow and flow state: AI changes coding from pure authoring to a mix of prompting, reviewing, integrating, and coordinating agents. This can disrupt deep work, but it can also restore flow by handling context retrieval, diagrams, and parallel tasks—if workflows are designed well. Trust, review, and reliability in AI-generated code: A major emerging bottleneck is not writing code but reviewing code generated by non-deterministic models. Teams need to assess hallucinations, reliability, style fit, and downstream effects instead of blindly accepting outputs. DevX as the right lens for engineering performance: Forsgren frames the problem as developer experience rather than narrow productivity. DevX includes flow, cognitive load, feedback loops, satisfaction, communication, and trust—factors that influence both output and long-term team health. How to measure AI and DevX improvements: She recommends starting with listening tours and surveys, then choosing metrics based on leadership priorities such as speed, cost, margin, or market share. The right measures depend on the business question; correlation is often the best practical approach. Seven-step framework for improving DevX: Her new book, Frictionless, outlines a practical sequence: start the journey, get a quick win, use data, decide priorities, sell the strategy, drive change at scale, and evaluate progress. The process is designed to work for local and global teams alike. AI as an accelerant for experimentation, not just coding: AI can shorten the path from idea to prototype, experiment, or production, making rapid experimentation more feasible. But speed only matters if teams are building the right thing and using good data, instrumentation, and alignment.

Key Arguments: Most productivity metrics are a lie because they are easy to game and often incentivize the wrong behavior. Lines of code is especially misleading in the AI era because models can generate verbose output at will, creating complexity and technical debt. The main AI bottleneck is increasingly code review and trust, not just code generation. Developer experience drives productivity, happiness, and business outcomes by reducing friction and cognitive load. Flow state is still important, but AI shifts the nature of flow from typing code to orchestrating work, reviewing outputs, and managing context. Teams can often move faster, but speed without strategy just means shipping the wrong thing more quickly. The best first step in DevX improvement is to talk to developers, listen to their pain points, and look for low-lift process fixes. A product mindset is essential for DevX: identify a user problem, define success, run experiments, measure impact, and sunset stale metrics. AI’s impact should be measured against what leadership cares about most—velocity, cost, margin, or market share—rather than generic productivity. Traditional frameworks like DORA still matter, but they must be applied carefully because AI changes feedback loops and workflow structure.

Data Points: Deep work capacity: About 4 hours per day - Forsgren cites Gloria Mark’s work on attention to explain the upper limit of sustained deep work Typical useful work block: 2 hours minimum (roughly) - She notes it often takes time to enter flow, making shorter blocks less effective for deep work Timeframe for prototype/A-B testing before AI: Months - Historical pace to get something through production and into experimentation Timeframe for prototype/A-B testing with AI: A day or two; definitely under a week - AI and improved tooling can compress experimentation cycles substantially Company scale of impact from DevX teams: Hundreds of thousands of dollars to billions - She says DevX initiatives can produce very large financial gains depending on company size J-curve effect: Quick wins first, then a temporary dip, then compounding benefits - Describes the typical trajectory of DevX improvement efforts after easy fixes are done Survey prioritization: Top 3 issues plus frequency (hourly/daily/weekly/quarterly) - Recommended structure for a baseline DevX survey

Pivotal Quotes: "Most productivity metrics are a lie." — Nicole Forsgren: Her critique of traditional engineering productivity measurement "We can ship trash faster every single day. We need strategy and really smart decisions to know what to ship." — Nicole Forsgren: On why speed without judgment is not a meaningful productivity goal "The best thing you can do is go talk to people and listen." — Nicole Forsgren: Her first-step advice for teams trying to improve developer experience

Implications: Engineering teams should stop chasing vanity metrics and instead optimize for friction reduction, trust, and decision quality. In the AI era, leaders need better measurement tied to business goals, not just output volume.

From the Episode

A lot of companies are trying to measure productivity for their teams. Most productivity metrics are a lie. If the goal is more lines of code, I can prompt something to write the longest piece of code ever. It's just too easy to gain that system. How do I know if my edge team is moving fast enough, if they can move faster, if they're just not performing as well as they can? Most teams can move faster, but faster for what? We can ship trash faster every single day. We need strategy and really smart decisions to know what to ship. One of the biggest issues we're going to probably have with AI is learning. How much to trust code that it generates. We can't just put in a command and get something back and accept it. We really need to evaluate it. You know, are we seeing hallucinations? What's the reliability? Does it meet the style that we would typically write? So much of the time is now going to be spent reviewing code versus writing code. There's some real opportunity there to not just rethink workflows, but rethink how we structure our days and how we structure our work. Now we can also make a 45-minute workblock useful because getting into the flow is actually kind of handed off, at least in part, to the machine, or the machine can help us get back.

Nicole Forsgren · at 0:00

All of that problem solving. It enables the super rapid experimentation with customers that before, you know, you'd need a while for a prototype and maybe a little bit longer to actually flight it through an A-B test on a production system. I mean, you can do it in hours right now. Getting maybe the opposite end of the spectrum, getting very tactical before we get into the larger framework. What's just like one thing that you think an Eng team, a product team can do this week, next week to help their developer experience maybe get more done? Honestly, I think the best thing you can do is go talk to people and listen. And I love that, you know, the audience of this podcast is primarily PMs because they tend to be really good at this. And I would say start with listening and not with tools and automation. So many times companies are like, well, I'm just going to build this tool, or I'm going to build this thing.

Nicole Forsgren · at 22:04
🔓 Sign Up for Unlimited Episode Search

About Lenny's Podcast

Lenny Rachitsky interviews world-class product leaders and growth experts about building products and growing careers.

View all episodes from Lenny's Podcast