---
name: subagent-briefing
description: Use when delegating work to a subagent and writing its brief/dispatch prompt — spawning parallel agents, writing Task/Agent prompts, farming out research or production work to worker agents. Also when subagent output came back in the wrong shape, got lost, or two agents overwrote each other's files.
---

# Subagent Briefing

## Core principle
A subagent knows ONLY what the brief says. A constraint missing from the brief is a constraint the agent doesn't have. A weak brief means the work gets done twice.

## The brief's 7 REQUIRED sections — in this order
Writing a brief = filling these 7 slots. An empty slot ships as a gap.

1. **THE BIG PICTURE** — why this task exists, who is waiting for it, where the result will be merged.
2. **THE TASK (atomic)** — one sentence: what to produce + its definition-of-done.
3. **CONSTRAINTS** — what NOT to touch · what NOT to delete · which files/folders belong to ANOTHER agent · which paths are single-owner.
4. **SOURCES** — absolute paths of files to read. Say "read, don't invent" explicitly.
5. **VERIFICATION STEPS** — each step must demand a MEASURED NUMBER ("how many files scanned", "worst value found"), never just "check it".
6. **RETURN FORMAT** — with a line cap (e.g. "≤25 lines"), field-by-field schema; raw dumps forbidden.
7. **FALSE-GREEN WARNING** — "before saying PASS/done, show how many units you processed; empty output does not count as PASS."

## Two pre-dispatch checks (both bit us in production)

**① TOOLSET CHECK — can this agent type actually do the job?**
An agent tasked with writing files must HAVE a write tool; one tasked with running commands must have shell access. Real incident: two read-only research agents were told to write reports to disk — no write tool, output lost, work redone. Read the agent type's tool list before dispatch. If the tools don't fit: pick another type, or have the agent return text and write it yourself.

**② IS THE OUTPUT PATH SINGLE-OWNER?**
Two parallel agents must never write to the same folder. Real incident: two production lanes wrote into one folder; one deleted the other's files. Give each agent its own output directory; the orchestrator merges.

## Working discipline to embed in every brief
- Fabrication = 0. No source → answer "NOT FOUND", never guess.
- Tag every finding: `[V]` verbatim from source · `[I]` inferred · `[C]` needs confirmation.
- One agent = one atomic task = one return. No wandering, no self-extension.
- Return compressed synthesis (schema-coded), not raw dumps — protect the orchestrator's context.

## Quick checklist
| Check | Pass? |
|---|---|
| All 7 slots filled | ☐ |
| Task truly atomic (one return suffices) | ☐ |
| Constraints name what's off-limits | ☐ |
| Verification demands numbers | ☐ |
| Return format has a line cap | ☐ |
| Agent's toolset can do the job | ☐ |
| Output path owned by this agent only | ☐ |

## Common failures
| Mistake | Consequence |
|---|---|
| "Research this and write a report" (no slots) | Agent invents a format; syntheses don't merge |
| No constraints written | Agent overwrites/deletes working files |
| "Check it" (no number demanded) | Agent says "checked, looks fine"; nothing measured |
| No line cap | Raw dump floods the orchestrator's context |
| Toolset not checked | Output can't be written; work redone |
| Two agents, one folder | File loss (it happened) |
| Warnings hand-copied into each brief | Session ends, the habit dies — bind it to a skill |
