Skip to content
mentoor

Topic 1 of 5 · 4 min read

Parallel breadth-first tasks that suit many agents

Goal: Pick out the tasks in a list whose parts are independent enough for parallel agents to explore without shared context.

Multi-agent systems pay off when a task is wide: many parts that can be explored on their own and combined at the end. If the parts do not need to see each other while they work, parallel agents finish sooner and can cover more ground than one agent working through a list.

Check yourself · 1 of 3

Which task is the best fit for several agents working in parallel?

Choose one answer

Why it matters

One agent has one context window. A job such as "check 40 suppliers" or "read 200 files" fills that window with raw material long before the answer is written. Separate agents each get a fresh window, read their slice, and hand back a short summary. Anthropic reported that a lead agent with parallel subagents beat a single agent by 90.2% on its internal research eval, on tasks like finding every board member of a list of companies. The same write-up says the approach is a poor fit when agents must share much context or depend on each other.

How to spot a wide task

Ask four questions about each part of the job:

  1. Can part 7 be done without knowing the result of part 3? If yes, they are independent.
  2. Is the work mostly reading? Searching, auditing and collecting are safe to parallelise. Writing to the same files is not.
  3. Does each part return something small? A one-paragraph finding per agent is easy to merge. Half-built code is not.
  4. Is a missing or weak result from one part acceptable? Breadth tasks usually survive one weak branch.

Good fits: comparing 30 vendors against the same checklist, auditing every service in a monorepo for one deprecated API, searching many sources for mentions of a topic, running the same review prompt over many documents.

Before and after

Weak plan: "Three agents fix the checkout flow: one for the cart, one for payment, one for emails." These parts share data shapes and error handling, so they are not independent.

Better plan: "Eight agents each audit one service for calls to requests.get without a timeout and return a table of file, line and risk. The lead merges the tables." Each branch reads one directory, writes nothing and returns a small result.

What goes wrong

  • Duplicated work. Told only "research the topic", several agents search the same pages. Give each a distinct slice: a vendor, a directory, a date range.
  • Wide, but not valuable. Parallel agents multiply token use. The same article reports about 15 times the tokens of a chat. A cheap question does not justify it.
  • Merge becomes the bottleneck. Forty long reports overload the lead. Ask for a fixed, short output format so the merge is mechanical.

A quick test: if you could hand the parts to forty interns who never speak to each other and still get a usable pile of results, the task is wide.

Examples

Dependency audit across 12 services

Task: list every service that still pins log4j below a safe version. Each of 12 agents reads one repository and returns service, file, version. No agent needs another's answer, the output is a tiny table, and one failed branch is just re-run. This is the textbook wide task.

Supplier comparison

A buyer wants 25 suppliers scored on price, lead time and certifications. One agent per five suppliers, same scoring template, same source rules. The lead merges the rows into one sheet and flags gaps. Without the shared template the scores would not be comparable.

Key points

  • Parallel agents suit tasks whose parts can be done without seeing each other's results.
  • Read-heavy work such as searching, auditing and collecting is safe to split; writing to shared files is not.
  • Each agent needs a distinct slice and a short fixed output format, or work is duplicated and the merge is painful.
  • Anthropic's research system beat a single agent by 90.2% on its internal eval, at roughly 15 times the tokens of a chat.
  • A wide task still has to be valuable enough to pay for the extra tokens.

Common mistakes

  • Calling a task parallel because it has several named parts, when the parts share data and decisions.
  • Giving every agent the same broad instruction, so they search the same sources.
  • Letting parallel agents write to the same files or tables.
  • Skipping a fixed output format and then drowning the lead agent in prose.

Check yourself · 2 of 3

Why should each parallel agent get a distinct slice of the work, such as one vendor or one directory?

Choose one answer

Check yourself · 3 of 3

A lead agent gets 40 long, free-form reports back from subagents and its answer gets worse. What is the most direct fix?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic