Most Productivity Metrics Are a Lie: Nicole Forsgren on Measuring Developer Experience in the AI Era

The creator of DORA and SPACE explains why lines of code and old pipeline metrics fall short with AI, and how to start improving developer experience by listening, surveying and tying results to what leaders care about.

LRLenny RachitskyHost · Lenny's Podcast
Channel
Lenny's Podcast
Video
1:07:48
Read
9 min
Original
English
Open on YouTube
Scroll to read and the video shrinks to the bottom-right corner. Captions follow your reading language.
Reading languageAvailable in 2 languages
You're reading the original English.
SUMMARY

In 30 seconds

Nicole Forsgren argues that AI speeds up coding but changes flow, cognitive load and trust, so teams need to measure developer experience and tie it to business outcomes rather than counting output. She walks through the seven steps of her book *Frictionless*, from a listening tour to quick wins, surveys and showing value.

  1. 1"Most productivity metrics are a lie."Lines of code are trivially gamed when an LLM can be prompted to write the longest program ever, though knowing which code came from AI can still help answer questions about survivability and quality.
  2. 2DORA's speed and stability metrics still describe the pipeline, but can't be applied blindlyAI creates feedback loops earlier and throughout the process, while SPACE, as a framework, adapts better and now needs trust added to it.
  3. 3AI may let a 45-minute block of work be usefulBecause the machine can help you back into flow by restoring context and generating diagrams, engineers might not need two-hour uninterrupted blocks, which Forsgren flags as speculative.
  4. 4Most teams can move faster, but faster for what?Speed means little without strategy: "We can ship trash faster every single day."
  5. 5Start with listening, not toolingAsking developers to walk through yesterday surfaces low-lift process fixes, such as replacing a printed approval walked down several flights of stairs with an email.
  6. 6To measure AI's impact, pick the metric your leadership already talks aboutWhether it is market share, margin or velocity, frame results in their language and disclose that DevEx work and AI tools both contributed.
TRANSCRIPT

Read the full transcript by chapter

01

Developer experience is what building software feels like day to day, and AI is reshaping flow

Forsgren defines developer experience (DevEx) as what it is like to build software day to day: the friction, workflows and support developers face. She says that when DevEx is poor, good processes and tools will not help. Output alone is a weak lens, because high-toil or high-friction ways of reaching it lead to burnout, and high cognitive load leaves no brain space for innovative solutions.

She describes DevEx through three reinforcing ideas: flow state, cognitive load and feedback loops. Lenny, a former engineer, worries that agents and generated code make flow harder. Forsgren admits that the field is only a few years in and that interruptions are now frequent as people prompt, review and integrate rather than type for long stretches.

She has also seen senior engineers build toolchains that keep them in flow at a higher level. They describe the architecture, stack and workflow up front, have agents work on pieces in parallel, tell them to use appropriate APIs and conventions, and then review the result. She says the output is closer to production code than vibe coding because of the systematic setup, and Lenny summarises it as planning more up front.

02

Lines of code are gameable and DORA can't be applied blindly, but SPACE still fits

Asked how teams get AI productivity measurement wrong, Forsgren says lines of code were always a bad metric, but AI blows it out of the water. Agents are verbose by nature, so more code can mean more complexity and technical debt. It becomes more relevant, though, if you can separate AI-written code from human code, since you can then ask about survivability, quality and how much AI-generated code is feeding back into training and fine-tuning.

On DORA, she explains that the four key metrics (deployment frequency, lead time, MTTR and change fail rate) still assess the speed and stability of the pipeline. But they are prescriptive and must be used for that purpose. AI introduces feedback loops earlier, even in the middle of the pipeline, so applying existing metrics blindly would miss important changes in how people work.

SPACE, by contrast, is a framework and does not dictate metrics, which frustrates some people but makes it adaptable. It still covers satisfaction, performance, activity, communication and collaboration, and efficiency and flow. Forsgren suggests adding trust, since LLMs are nondeterministic and teams must evaluate hallucinations, reliability and style rather than accept output as they would a successful compile.

03

Reviewing more than writing may change how engineers structure their day

Lenny recalls that in their first conversation Forsgren predicted trust would be a major AI issue and that more time would go to reviewing code than writing it. She says it will be interesting to see how this changes the structure of work, given that attention now has to focus at certain moments and is broken up differently.

Citing Gloria Mark's work on attention, she notes that people get about four hours of good deep work a day, usually needing blocks of at least two hours to get into flow. Writing code with AI is interrupt-driven, so one open question is whether a 4-hour block is still useful and whether a 45-minute one now can be, because the machine helps with re-entry through context reminders and system diagrams. She stresses this is purely speculative and an area ripe for research.

Lenny describes engineers as becoming managers of junior AI engineers, able to unblock agents even in a short window and then jump into code with context restored. Forsgren agrees this is an interesting direction. She makes the business case for DevEx as a way to speed up all software creation, problem solving and customer experimentation, as prototypes that once took a while can now be tested in hours.

04

Start by listening to developers and fixing processes before building tools

Forsgren's top advice for this week is to talk to people and listen, starting with listening rather than tools and automation. Teams often build what is easy to automate or what they personally struggled with. She suggests asking developers to walk through yesterday, what was delightful, where they were frustrated and where friction slowed them. A handful of conversations often reveals low-lift fixes or an unnecessarily slow process.

Her example is a company with a painful process tied to an old mainframe that everyone hated because it caused delays and would require replatforming. Someone had to print a document, walk it down three or four flights for approval and have another person walk it back up. They did not replatform anything. They changed the process to send an email.

Most companies have process steps that exist only because they always have, and small companies can be too ad hoc and benefit from a lightweight process. For business leaders, she says the job is to provide structure and support: communicate priorities and why this matters, and celebrate wins, since an isolated side project struggles to gain momentum. Technical changes to build, test and feedback systems matter, especially with AI, but are necessary and not sufficient, and need not be the starting point.

05

Most teams can move faster, but speed without strategy just ships trash sooner

Asked how a founder can tell whether a team could move faster, Forsgren says most teams can, though gains have diminishing returns and not all speed is good given cognitive load. Signs of friction include constant broken builds, flaky tests, overly long processes, slow requests for new systems or environments, and difficulty switching tasks. A particularly good smell is when people do not move to other parts of the org for unclear, non-political reasons. She knew companies where switching orgs meant paying the same tax as a new hire.

She stresses that the question is faster for what. Teams can ship trash faster every day, and strategy and good decisions about what to ship, what to experiment with and in what order are the core piece. Lenny notes this is where PMs come in. Without those pieces, she says, it is garbage in, garbage out.

AI can also help with strategy, messaging, targets of experimentation and market sizing, but teams still need an aligned plan or two or three alternatives to test. Prototyping and customer-facing A/B tests that once took months can take a day or two, provided infrastructure exists. She advises checking with data science on instrumentation and analysis so a big test does not disrupt users, breach privacy or security, or produce unusable data.

06

AI gains are real but unmeasured; the book lays out seven steps to remove friction

On AI gains, Forsgren says they are real but there are no great measures yet. The best candidate is velocity through the whole system, from idea to a feature or experiment, although this is hard to attribute to a particular tool. She saw one study across companies where regular users of AI coding environments produced more code, and the engineers' own increase was double what the agent generated. She also mentions AI unblocking starts, writing unit tests and documentation, and notes that agents depend on good documentation and comments.

Her new book *Frictionless*, co-written with the founder of DX, is aimed at technology leaders, anyone kicking off a DevEx program and PMs. Lenny notes that DX was sold to Atlassian for a billion dollars, which he takes as evidence of how much companies value measuring developer productivity. The seven steps are: start the journey with a listening tour, get a quick win, use data to optimize, decide strategy and priority, sell your strategy, drive change at your scale, and evaluate progress and show value. Readers can join the book at any step.

The book also recommends practices for resourcing, change management, making technology sustainable and bringing a product lens to DevEx. There is a workbook of almost 100 pages, with the book due by the end of the year at developerexperiencebook.com. Forsgren says the term developer experience is deliberate: it is about unlocking value and giving engineers freedom to solve problems creatively, not just lines of code or PR counts.

07

Build the DevEx team through quick wins, then prove value in the audience's language

For a pilot team, Forsgren suggests a couple of engineers plus a PM, PgM or TPM to handle communications, which she says matter greatly. Early on, look for small paper cuts that help developers feel the benefit, such as cleaning up a test suite. With a top-down remit, quick wins can be global, such as changing a cumbersome organization-wide process or cleaning up provisioning environments.

She has seen impact in the hundreds of thousands of dollars for smaller companies and billions for large ones. Results tend to follow a J curve: early quick wins look big, then comes a dip once the obvious fixes are done and teams must build infrastructure and telemetry, after which benefits compound. Quantifying value means speaking to each audience: developers care about time savings, reduced toil and focus, while leadership cares about revenue, time to value, velocity and cost.

One example is cleaning up a test and build suite, which gives developers fewer reruns and less toil, and gives the business cloud cost savings and recovered capacity. She says correlation with business outcomes such as time to value and market share is usually the best you can do, though some correlations are compelling.

08

Measure AI's impact in the terms leadership uses, and start with a well-designed survey

On measuring the impact of AI tools, Forsgren says it depends on what the leadership chain cares about. If they talk about market share, focus on speed from feature to production, customer or experiment. If they talk about margin, look for money saved and recovered headcount cost, or lower vendor spend. She suggests reusing leadership's own language, whether productivity, velocity, transformation or disruption.

For velocity, she recommends as broad a span as possible, such as idea to customer, and tracking how long it takes with improved AI use and less friction. She says to be open about attribution: say that AI tools and a DevEx effort were rolled out together and both contributed, since AI tools without DevEx improvements would likely have helped much less.

If you are starting from nothing, she says, run a survey after talking to people, since you may lack instrumentation or have metrics designed for other purposes. Ask about satisfaction, the biggest barriers and let people choose just three, ask how often each affects them, and add open text. Avoid compound questions, such as asking if builds and tests were slow or complicated, and use experts or an AI assistant to refine questions. She dislikes happiness surveys because too much contributes to happiness, and prefers satisfaction with tools, processes and the team.

09

Bring a product mindset to DevEx and sunset metrics that no longer drive decisions

Asked what else matters, Forsgren says to bring a product mindset to DevEx improvements and to the metrics themselves. That means identifying the problem for a set of users, building MVPs and experiments, having a strategy and a go-to-market function with comms, collecting continuous feedback and eventually sunsetting things.

This matters more now, she says, because AI is changing things so rapidly that it is worth taking half a beat to ask whether a metric used for the last ten years is still important or should be sunset. A metric that no longer drives the decisions and actions you need is a candidate to retire.

More from this channel

1:10:27EN
Lenny's PodcastPodcast · 2 speakersHard Skills, Soft Skills and Mentors: Jules Walter's Playbook for Growing as a PMGuest Jules Walter · Host Lenny RachitskyYouTube product lead Jules Walter explains how he builds IQ and EQ skills, asks for honest feedback, and recruits mentors with the smallest possible ask.Product & UXProduct ManagementLeadership+3
1:30:46EN
Lenny's PodcastPodcastSkip the Funnel of Doom: Cursor's Playbook for Hiring the Top 50Host Lenny RachitskyAdam Ward, Cursor's head of talent, explains how to scope, map and relentlessly pursue the best people instead of hiring whoever survives a recruiting funnel.Enterprise & strategyCompany BuildingLeadership+3
1:42:04EN
Lenny's PodcastPodcast · 2 speakersPaid Growth, Step by Step: Shopify's Performance Marketing Lead on Tests, Signal and Team DesignGuest Timothy Davis · Host Lenny RachitskyTimothy Davis walks through when to start paid, how to run signs-of-life tests, which platforms to try, what to measure and who to hire first.Enterprise & strategyGo-to-MarketGrowth Strategy+3
1:21:44EN
Lenny's PodcastPodcastFrom Rowing to Steering: Inside OpenAI's Push Toward Persistent AI CoworkersHost Lenny RachitskyTara Seshan, who leads product for Codex and ChatGPT Work at OpenAI, explains how PM work changes when agents do the rowing and people do the steering.AgentsProduct StrategyAI Product Management+3
1:01:00EN
Lenny's PodcastPodcast · 2 speakersControl Over Attention: How Substack Builds Product for Writers and ReadersGuest Sachin Monga · Host Lenny RachitskySubstack's head of product, Sachin Monga, explains the principle behind the company's roadmap, the story of the Recommendations feature, and what he thinks the next era of writing on the internet looks like.Product & UXProduct StrategyGrowth Strategy+3
1:26:22EN
Lenny's PodcastPodcastStart Small, Earn Autonomy: What 50+ AI Product Deployments Taught Two BuildersHost Lenny RachitskyAishwarya Naresh Reganti and Kiriti Badam explain why AI products need a different build process, and how to grow agent autonomy step by step without losing customer trust.Product & UXProduct StrategyAI Product Management+3