← Back to library

Fan one coding task out to parallel agents

Jared Zoneraich (@imjaredz) explains how Cognition's own teams use Devin: a lead agent splits a problem, launches around ten parallel child agents and merges what they return. Examples include a hundred agents scanning eval logs, five building alternative implementations and a mobile migration to Swift cut into six pieces, with agents writing child prompts and testing their own work.

  • OutcomeHave a lead agent split a big job into independent pieces, start child agents on each, then combine and compare their results.
  • SetupAn afternoon+
  • LevelAdvanced
  • CreditJared Zoneraich (@imjaredz)
View original
Works with
Custom agent

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 23, 2026

When should you use it?

  • A job splits into independent chunks
  • You want to compare several implementations
  • Your agent tool can run parallel sessions

Not for: Tightly coupled changes in one file; Small fixes

What do you need, and what do you get?

You need

  • Task description
  • Rules for splitting
  • Tests to judge each result

You get

  • Plan of independent pieces
  • Child agent results
  • Combined or chosen result

How does it work, step by step?

  1. Ask questions firstHave the lead agent ask you about anything unclear before it starts.
  2. Split the workLet it break the task into independent pieces with small, precise scopes.
  3. Write child promptsHave the lead agent write each child's prompt.
  4. Run in parallelStart the children and let each test its own piece.
  5. CombineHave the lead agent merge or compare the results, then review the final diff.

The prompt

Our own prompt, inspired by Jared Zoneraich (@imjaredz) and written to work in Custom agent. Values in lime are placeholders.

Fill in the blanks (optional; the copied prompt uses your values)

Prompt1 variable
Break this task into independent pieces that can be worked on in parallel: {task}. First, ask me any questions needed to remove ambiguity.
For each piece, write a precise prompt for a separate agent, including its tests. After the pieces return, combine them, run all tests and list conflicts for me to review.

Inspired by Jared Zoneraich (@imjaredz): Since I joined @cognition I've been obsessed with learning how our eng team uses Devin themselves. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • Parallel work costs more; set a budget.
  • Merging conflicting pieces can take longer than doing it once.
  • More agents means more output to review; do not skip review.

Our take

Fan-out changes the math of exploration. When trying five implementations costs barely more wall time than trying one, you can pick the best on evidence instead of committing to the first plausible design. The examples Jared Zoneraich gives also show where it fits: log analysis and migrations break naturally into independent chunks, while tightly coupled refactors do not. The practical work is in the split and the merge. Ask the lead agent to state the interface each child must respect before any code is written, so the pieces fit, and give every child a test it must pass rather than a vague goal. Judge the results by those tests and a short summary from each child, otherwise reviewing ten diffs erases the time saved. Watch spend closely, because parallel agents multiply token costs as fast as they cut hours. And weigh the source: the author works at Cognition, so these are an insider's practice notes from a well-funded team, useful as patterns but not an independent measure of results. Merges to main stay with an engineer.

Where the time goes back: Large jobs finish faster and you can pick the best of several attempts.

FAQ

Why does it help?
Agents do better with small context and precise tasks, per the poster.
Can I compare designs?
Yes, one example has five agents each build a different version of one feature.

Source and credit

Inspired by Jared Zoneraich (@imjaredz). We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
Since I joined @cognition I've been obsessed with learning how our eng team uses Devin themselves
Creator
Jared Zoneraich (@imjaredz)
Published on
X
Original date
Jun 19, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
Custom agent
AI dry run
Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends, bookings or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in IT & Security

All 82 IT & Security playbooks →

Related playbooks

IT & SecurityWorkflow✓ AI dry run

Build one pull request dashboard across two DevOps servers

Have a coding agent build a small internal web page that gathers every open pull request from several repositories and highlights the ones needing action.

Credit: cmpalmer52 on Hacker News

An afternoon+
IT & SecurityWorkflow✓ AI dry run

Let a coordinator agent watch merged PRs

Use a project-level coordinator agent that splits work among helper agents, keeps an eye on fresh merges for bugs, and reports progress with a recommendation when it needs you.

Credit: Chase Roberts (@chsrbrts)

An afternoon+
IT & SecurityWorkflow✓ AI dry run

Move heavy agent builds off your laptop

Let coding agents log in to remote build machines so heavy builds and tests run there instead of slowing your laptop during calls.

Credit: bentcorner on Hacker News

Under an hour