How-To

How to Use Sub-Agents Without Chaos

A practical guide for delegating work to sub-agents while keeping one clear owner, one output format, and zero confusion.

Sub-agents are great when your main agent needs parallel help (research, drafting, coding, data cleanup). But many users hit the same problem: they spawn extra agents and lose track of who did what.

Common symptom

"I told my agent to create sub-agents and now I have mixed responses, duplicate work, and no clean final answer."

When to Use a Sub-Agent

2-Minute Setup Pattern (Manager + Workers)

  1. Tell your main agent it is the orchestrator and final editor.
  2. Define each sub-agent's job in one sentence (no overlap).
  3. Force a shared output format (same headings, same bullet style).
  4. Require a final merge pass with conflict cleanup and deduplication.

Copy/Paste Prompt Template

You are the manager agent.
Create sub-agents only if needed.

Goal: [one clear result]
Deadline: [time]

Assign workers:
1) Research worker: gather facts/sources only
2) Draft worker: produce first draft using research
3) QA worker: find errors, contradictions, missing steps

Rules:
- No overlapping responsibilities
- Each worker must return output in this format:
  - Task completed
  - Key findings (3-7 bullets)
  - Open questions
- After workers finish, merge into ONE final answer
- Final answer must include:
  1) Executive summary
  2) Action steps
  3) Risks/unknowns
  4) Next best action

High-Friction Mistakes to Avoid

1) Letting workers answer the user directly

Have workers report to the manager only. The manager sends the final response.

2) Assigning overlapping tasks

If two workers both "research" or both "draft," you get duplicates and contradictions.

3) No merge rule

Without a forced final merge, you end up with fragments instead of a deliverable.

4) No evidence requirement

For factual work, require each worker to cite source links or data origin.

Best practice

Use sub-agents for depth and speed — but keep one accountable owner for quality. Manager-led merges are what make the workflow reliable.

Advanced Troubleshooting (Real-World Failure Modes)

1) “The workers finished, but I can’t find the output”

This is usually a destination mismatch (different thread/session/surface), not failed work.

2) “I keep getting duplicate final answers”

You likely have multiple managers or stale workers still active.

3) “Workers time out or return partial work”

Large tasks fail when each worker is too broad.

4) “Manager says merged, but key details vanished”

This is a merge-quality issue.

5) “Can I use a sub-agent to keep files organized?”

Yes — but only with strict file rules, or you'll create duplicates/triplicates fast.

If It Still Feels Messy

Run this reset workflow:

  1. Stop creating new workers.
  2. Ask the manager to list all active workers and their exact jobs.
  3. Kill overlapping workers and keep only distinct roles.
  4. Re-run with strict format + final merge required.
Don’t do this

Don't spawn sub-agents "just in case." Every extra worker increases coordination cost and can lower answer quality if the roles are not tightly scoped.