LLenny's Podcast
← All frameworks
ProductivityNicole Forsgren

Prime-Then-Parallelize AI Coding Workflow

Front-load the architecture, fan out to agents, then step back and evaluate

Difficulty
Advanced
Time to result
~weeks to results
Steps
4
Confidence
83%

A working pattern Forsgren observed senior engineers use to stay in flow while coding with AI: invest time up front specifying architecture, stack, and conventions, have the model design the plan, then assign each piece to a parallel agent while you think ahead about the hairy parts. It trades line-by-line typing flow for goal-level flow. Use it to get closer to production code instead of vibe-coded output.

Origin

Forsgren describes senior engineers she's watched build 'incredible' tool chains that keep the flow going by being systematic up front, contrasting it with just powering through and figuring it out as you go.

Core principles

  • 01Spend more time planning up front than powering through and figuring it out as you go
  • 02Prime the model with architecture, stack, and workflow before generating code
  • 03Fan work out to parallel agents so you stay in goal-level flow, not line-level flow
  • 04Being systematic up front gets you closer to production code than vibe coding

How to run it

  1. 1

    Prime with architecture and constraints

    Tell the model what you want to build, its basic architectural components, the stack, and the general workflow to follow, and have it help think it through and design it.

    Pro tip Specify up front that the pieces must work together and use appropriate APIs and conventions.

  2. 2

    Assign pieces to parallel agents

    For each piece of the design, assign an agent to work on it in parallel.

  3. 3

    Think ahead while agents run

    Let it run for a few minutes and use that time to think through something else that's interesting or a part you anticipate will be hairy.

    Pro tip This is how flow is preserved — your attention stays on the goal and the hard parts, not the typing.

  4. 4

    Step back and evaluate

    Come back, evaluate everything together, then dive back in to fix specific pieces.

In the wild

Systematic up front beats vibe coding

Because these engineers were so systematic about architecture, stack, and conventions before generating anything, what they got back was 'probably a little better than vibe coded' and much closer to production code.

Parallel-agent output that resembles production code rather than throwaway prototypes.

Common mistakes

Powering through without a plan

Just prompting and figuring it out as you go yields vibe-coded output; the up-front architectural priming is what raises quality.

Is it for you?

Best for

Senior engineers orchestrating multiple AI coding agents who want production-grade output

Not ideal for

Tiny throwaway scripts or exploratory prototyping where up-front architecture is overkill

From the transcript

this is what I want to build. It needs to have these basic architectural components. it needs to have this kind of a stack. It…

11:00

for each piece, it'll assign an agent to go work on each piece in parallel

11:00

because they were so systematic about it up front, they're much closer to something that looks like production code

11:30

From the episode

How to measure AI developer productivity in 2025

Nicole Forsgren