en un clic
subagent-strategy
Delegates research and parallel work to sub-agents.
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
Delegates research and parallel work to sub-agents.
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Basé sur la classification professionnelle SOC
Flags risky shell commands and unsafe tree ops.
Detects high-confidence security risks in code.
Surfaces the dojo's non-negotiable prime directives.
Activates the dojo framework at the start of a session.
Plans multi-step work before writing code.
Captures lessons and promotes recurring patterns.
| name | subagent-strategy |
| description | Delegates research and parallel work to sub-agents. |
| tier | core |
| category | delegation |
| created_by | human |
| platforms | ["windows","macos","linux"] |
| tags | ["delegation","parallel","context-management"] |
| author | Andreas Wasita (@andreaswasita) |
Delegates focused work (research, analysis, parallel reads) to Copilot sub-agents via the task tool so the parent context stays clean. Does NOT apply when the work must outlive the current turn — use the durable board (skills/durable-work) for that, since sub-agents are cancelled if the parent is interrupted.
grep, work that must survive the turn.task tool (Copilot built-in)..dojo/delegation.yaml (defaults: max_spawn_depth: 2, max_concurrent_children: 3, default_mode: background, sync_timeout_seconds: 180, max_mission_tokens: 1500).1. Pick the role from the Quick Reference table.
2. Draft the mission (one focused question or deliverable).
3. Invoke the `task` tool with mode=background for independent work,
mode=sync only when you must block on the result.
4. Integrate the returned summary; do NOT re-search what it already found.
| Role | Mission shape | Tool & mode |
|---|---|---|
| Research | "Find X across the codebase; report file:line citations." | task (background) |
| Analysis | "Diagnose this stack trace; report root cause and 3 candidate fixes." | task (background) |
| Refactor scout | "Identify code smells in path/; propose alternatives." | task (background) |
| Test scout | "List untested branches in module/." | task (background) |
| Self-review | "Audit my diff against tasks/todo.md; flag gaps." | task (sync) |
Each sub-agent gets exactly one focused mission. Bundling unrelated questions blurs the output. Spawn a second sub-agent instead.
Tell the sub-agent which paths, files, or symbols to focus on. Unbounded sub-agents wander.
Be explicit: "Return a bullet list of file:line citations" beats "look into this." If you want code, say so. If you want a recommendation with tradeoffs, say so.
Use mode: background for independent sub-agents and continue planning in the foreground. Use mode: sync only when the next step genuinely depends on the result.
When the sub-agent reports back, do not re-run grep/view on the same files. Its findings are now ground truth for this turn; treat it like a Code Intelligence call.
If two sub-agents disagree, re-issue with sharper scope or pick the one with stronger citations. Never silently choose — log discrepancies in tasks/lessons.md.
All limits live in .dojo/delegation.yaml (read at session start). The agent MUST respect:
max_spawn_depth (default 2) — orchestrators that spawn orchestrators that spawn orchestrators kill context windows.max_concurrent_children (default 3) — past 3 in flight, the parent can't track results.max_mission_tokens (default 1500) — missions longer than this are almost always under-scoped; break them up.sync_timeout_seconds (default 180) — if a sync child hasn't returned by this point, switch to background polling.conflict_resolution (default escalate) — when sub-agents disagree, log to tasks/lessons.md with error_type: delegation-conflict and proceed with the higher-citation answer.escalate_to_board_if — if any trigger fires, this is not sub-agent work; use skills/durable-work.To override per-project, edit .dojo/delegation.yaml. To override per-call, pass the corresponding argument to the task tool — and log the exception in tasks/lessons.md.
skills/durable-work instead.view or one grep — the overhead exceeds the benefit.max_concurrent_children (see .dojo/delegation.yaml) without justification logged in tasks/lessons.md.conflict_resolution or log.tasks/lessons.md.