Skip to main content
Define Lead Time, Then Cut It: Spec-Driven Dev at Notion

Define Lead Time, Then Cut It: Spec-Driven Dev at Notion

Shipping by ronda · · 7 min read

Before you adopt any new AI shipping workflow, define lead time for your own team, because you cannot cut a wait you have not measured. Lead time is the stretch from a committed change to a deployed one, and for a product manager or founder at a small startup it is the number that decides whether an idea reaches users this week or next quarter. The five workflows below are the ones Notion and Stripe run with AI, and they all attack the same stretch of road.

The throughline is simple. AI did not remove the thinking that goes into a feature. It removed the queue that used to sit around it. Agentic coding tools turn an idea into a spec, a spec into a pull request, and a pull request into a review in minutes instead of days, but only when the pipeline around them is built for speed. That is the whole game now, and it is a game small teams can play as well as anyone.

This list is written for a team of maybe two to ten people, where nobody can afford to burn a week on a two-line fix and where the person who wants the change is often not the person who writes the code. Every item below is a real workflow at Notion or Stripe, scaled down to what a small team can actually copy this week.

1. Define lead time (and cycle time) before you optimize anything

Lead time is the total wait from when a change hits version control to when it is live in production. Cycle time is narrower: the work between when a developer starts the change and when it is ready to review. DORA, the research program at Google Cloud that has measured software delivery for years, defines change lead time as “the amount of time it takes for a change to go from committed to version control to deployed in production.”

The reason to separate the two is that small teams usually conflate them and then optimize the wrong stage. If your lead time is a week but your cycle time is two days, the four extra days are not coding. They are queue: waiting for a ticket to be picked up, a PR to be reviewed, a deploy to run. That is where AI workflows pay off, because they remove the waiting, not the writing.

Once you define lead time and cycle time for one real change this week, you can see where the fat is. Most teams find the wait, not the work.

2. Spec-first development: write the spec, let the agent build

The clearest workflow from the Notion story is spec-first development, and you do not need Notion to steal it. On Notion’s team, Ryan Nystrom dictates an idea into Whisper, has an AI agent format it into a proper written spec, commits that spec to the repo, and lets the agent implement and verify the change autonomously. The spec is the contract; the agent does the coding while a human does the thinking. The details are in the conversation on Lenny’s Newsletter from May 2026.

The spec is not paperwork. It is the version control for how a feature actually works, and it is what lets an agent work without a human sitting beside it. Notion shipped this in earnest: its Custom Agents launch post notes that the company now has more agents than employees and that early testers built over 21,000 agents.

The observation the marketing pages will not tell you: you can start this with a single small feature and a plain document. You do not need Whisper or a big internal system. Write a tight spec for one change this week, push it to the repo, and let an agent implement it with the spec in context.

3. Ship a pull request from a single comment

The single biggest trick at both Notion and Stripe is starting a code change from a conversation instead of from a ticket. At Notion, engineers @mention Codex inside a Notion comment and get back a full pull request with screenshots in about 20 minutes through an internal system they call Boxy. At Stripe, a Slack reaction on a message launches an isolated environment, runs an agent loop, and opens a reviewable pull request. Stripe is landing around 1,300 pull requests a week this way, with no human contribution beyond review, per engineer Steve Kaliski.

Stripe’s own engineer put the core idea plainly: “not only can I have one of these, but I could have many, many of these running in parallel in isolated environments, making isolated changes all at the same time.” Parallel isolated environments are the part that scales. Each agent works on its own branch and its own copy of the database, so ten of them do not collide.

For a small team the move is smaller: pick one repository, make one trigger, and watch the bottleneck move. It stops being “write the code” and becomes “review the diff,” which is where a PM or founder should spend attention anyway.

4. Automate the standup so the prep is background

Meetings were never the real cost; assembling the context before a meeting was. Notion built a custom agent that auto-generates a daily standup pre-read by pulling from Slack, GitHub, Honeycomb metrics, and the previous day’s meeting transcript. Nobody writes a status report by hand, and every engineer’s work shows up in the same format, so nothing gets skipped because someone is shy in a room.

The same pattern shows up across the teams using Notion’s Custom Agents. Ramp runs over 300 agents, many of them Q&A agents where one “Product Oracle” answers dozens of questions a day about the roadmap. Remote saved 20 hours a week and fully replaced its IT help desk with an agent.

The angle the tooling vendors will not frame as a lead-time win: pulling status out of people’s heads and onto a page in one pass removes the longest single wait on a small team, which is usually “I did not know that was blocked.” Automating the summary is how a two-person team keeps that visibility without a full-time meeting organizer. The pre-read is the deliverable, not the meeting. If the brief is already written before anyone talks, the meeting itself gets shorter, and short meetings compound into shipped work.

5. Make CI fast, or the agents sit idle

Every workflow above collapses if the feedback loop is slow. An agent that opens a pull request and then waits forty minutes for CI to run is not faster than a human; it is an impatient human with no coffee. Notion treats this as load-bearing. Nystrom runs Project Afterburner, an internal push to cut Notion’s CI time to a quarter of its current duration, and he makes the argument that fast CI is critical in the age of AI coding agents.

Humans and agents wait differently. A person reads, thinks, and moves on when CI is slow. An agent branches endlessly and burns tokens waiting for a verdict, so a slow pipeline quietly multiplies your cost as well as your lead time. The cheap win on a small team is parallelism: run the tests that gate a merge in minutes, not after the deploy pipeline stacks up.

DORA has a line that captures the trade-off, borrowing from David Farley’s book on modern software engineering: “the real trade-off, over long periods of time, is between better software faster and worse software slower.” It sounds like a slogan until you have seen a slow CI gate hold up a two-line fix for a day.

The pattern

All five of these workflows move the same thing: they shrink the time between a decision and a merged change, and they move a person’s effort from the mechanics to the judgment. That is the definition of cutting lead time, and it is why the companies running agents are not necessarily the ones with the biggest engineering teams. They are the ones that removed the queue.

Try the cheapest version this week. Measure lead time and cycle time on one real change, write a one-page spec, and let an agent turn it into a pull request while you watch the diff. Speed is not a headcount problem anymore. It is a plumbing problem, and the plumbing is cheap to fix.

References

SourceAuthor / OrgYearSupports
DORA’s software delivery performance metricsNathen Harvey, DORAundatedThe change-lead-time definition and the five delivery metrics
Spec-driven development: The AI engineering workflow at NotionClaire Vo, Lenny’s Newsletter2026Notion’s spec-first dev, Boxy 20-minute PRs, Project Afterburner, automated standups
Introducing Custom AgentsAkshay Kothari, Notion2026More agents than employees, 21,000 agents, Ramp and Remote agent teams
How Stripe’s AI ‘Minions’ Ship 1,300 PRs Weekly from a Slack EmojiClaire Vo / Steve Kaliski, ChatPRD2026The 1,300-PRs-a-week stat and parallel isolated environments
Modern Software Engineering: Doing what works to build better software fasterDavid Farley2021The “better software faster” trade-off quote

See it on your own repo

Connect a GitHub repo and let your team ship changes as reviewed pull requests. Free to start, no credit card.