Subagent Fanout
Agent Buildingsubagent-fanoutSubagent Fanout is an Agent Skill for agent building published in the Archive228/loopkit repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Parallelize independent sub-jobs across fresh-context subagents instead of one bloated context. Use when a goal branches into many independent pieces.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/Archive228/loopkit/blob/HEAD/skills/subagent-fanout/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/subagent-fanout, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Subagent Fan-out
One context loaded with ten jobs' worth of material is the exact shape that triggers context rot. Ten small contexts don't.
- Spawn one subagent per independent unit (one file, one source, one check). Each gets a fresh context window.
- An orchestrator synthesizes their results — it never does the per-unit work itself.
- Give each worker a tight role and only the input it needs.
- Use ONLY when the pieces are genuinely independent. Sequential dependencies stay in one chain. Fan-out for breadth (research, multi-file edits, multi-source verification). Keep it serial when step N needs step N-1's output.