workflow-subagent-isolation
Skill1 starsChanged 6 months agoMITView on GitHub
Fan OUT read-only research/localization to isolated sub-agents that return summaries; keep the EDIT thread single and linear.
In this repository33 other files it gives its agents.
- skill-process-gotchasSkill
- workflow-cache-disciplineSkill
- workflow-codegraphSkill
- workflow-conductorSkill
- workflow-context-condenserSkill
- workflow-context-hygieneSkill
- workflow-criticSkill
- workflow-deadline-disciplineSkill
- workflow-deep-researchSkill
- workflow-done-definitionSkill
- workflow-edit-formatSkill
- workflow-effort-routingSkill
- workflow-escalateSkill
- workflow-execute-from-planSkill
- workflow-filesystem-offloadSkill
- workflow-learn-frameworkSkill
- workflow-long-running-processesSkill
- workflow-lspSkill
- workflow-memory-curationSkill
- workflow-plan-contractSkill
- workflow-plan-firstSkill
- workflow-planSkill
- workflow-quality-barSkill
- workflow-repomapSkill
- workflow-retrieve-before-actSkill
- workflow-spec-drivenSkill
- workflow-stuck-detect-resetSkill
- workflow-stuckSkill
- workflow-subtask-loopSkill
- workflow-task-finishSkill
- workflow-task-startSkill
- workflow-tool-selectionSkill
- workflow-verify-enhancedSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
After the isolated reads return their summaries, the parent integrates them and edits linearly with disciplined compaction (drop the …
- Very specific: line 31
Use isolation for genuinely broad localization (many files / unclear layout).
- Very specific: line 35
If delegation is unavailable, do the localization inline with search_code / retrieve_related / grep and keep your own working set small — …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- TRIGGERS WHEN: Fan OUT read-only research/localization to isolated sub-agents that return summaries; -->Parallelize reading, never editing. Isolated reads in; one linear edit thread out.
Cognition's lesson: fanning out the EDIT path corrupts shared state and produces incoherent diffs. But research and localization — "where is X, who calls Y, how is Z configured" — fan out cleanly. So split the two:
Isolated read-only sub-agents (fan-out OK)
- For research/localization, spawn isolated sub-agents scoped to READ-ONLY tools (Glob / Grep / Read,
plus
search_code/retrieve_related/repo_map). They cannot edit. - Each returns only a SUMMARY to the parent — NOT raw file dumps. This keeps the parent's context
small and on-plan (
workflow-context-hygiene). - The summary must be GROUNDED, not lossy: exact
file:lineanchors, the specific symbols/signatures found, and the concrete facts the parent needs to act — never vague prose like "the auth logic is in a few places." A lossy summary that drops the detail is the anti-pattern; carry the anchors.
The edit thread stays single and linear
- ONE thread does the editing, in sequence, against the parent's plan. Do NOT spawn parallel editors.
- After the isolated reads return their summaries, the parent integrates them and edits linearly with disciplined compaction (drop the research chatter; keep the anchors + plan).
- Wire this via delegation config + tool-scoping: research delegates get read-only toolsets; the parent keeps the write tools.
Bounds
Use isolation for genuinely broad localization (many files / unclear layout). For a small, known
change, just read the files directly — don't spawn an agent to find what you can grep in one step.
Graceful degradation
If delegation is unavailable, do the localization inline with search_code / retrieve_related /
grep and keep your own working set small — the single-linear-edit discipline still holds.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

