Logo van Subagent Strategy

Subagent Strategy

Community
andreaswasita
subagent-strategy

Delegeert onderzoek en parallel werk aan subagents.

Add to TypingMind

Overzicht

Uitgeverandreaswasita
Repositorycopilot-agents-dojo
Skillnaamsubagent-strategy
Sterren
54
Forks
15
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door andreaswasita op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Subagent Strategy in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/andreaswasita/copilot-agents-dojo/tree/main/skills/subagent-strategy
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/andreaswasita/copilot-agents-dojo.git /tmp/copilot-agents-dojo
mkdir -p .claude/skills
cp -r /tmp/copilot-agents-dojo/skills/subagent-strategy .claude/skills/subagent-strategy
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Subagent Strategy in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Subagent Strategy automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Subagent Strategy niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Subagent Strategy Skill

Delegates focused work to Copilot sub-agents via the task tool so the parent context stays clean. Supports decomposition, where agents own different workstreams, and competition, where isolated agents attempt the same high-risk artifact before a judge and lead select the result. 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.

When to Use

  • Research across docs, APIs, or unfamiliar code (research role).
  • Log / stack-trace / performance-profile analysis (analysis role).
  • Parallel investigation when the answer lives in multiple places.
  • A one-way-door design or ambiguous artifact benefits from independent competing attempts.
  • The main context is filling with exploratory output (>~20 file reads).
  • Multiple independent questions to resolve.
  • NOT for: reading one file, single grep, work that must survive the turn.

Prerequisites

  • Access to the task tool (Copilot built-in).
  • A clear, written mission for each sub-agent — vague delegation produces vague output.
  • Awareness of the configured knobs in .dojo/delegation.yaml (defaults: max_spawn_depth: 2, max_concurrent_children: 3, default_mode: background, sync_timeout_seconds: 180, max_mission_tokens: 1500).

How to Run

text
1. Choose decomposition or competition mode.
2. Define one mission, scope, deliverable, and success rubric.
3. Give every sub-agent an isolated, non-overlapping target.
4. Invoke the `task` tool with mode=background for independent work,
   mode=sync only when you must block on the result.
5. Inspect evidence and artifacts; synthesize rather than forwarding summaries.

Quick Reference

RoleMission shapeTool & 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)
ModeUse whenOwnership
DecompositionWork separates into independent files, layers, or questions.One distinct workstream per sub-agent.
CompetitionA high-cost decision has several credible shapes and weak precedent.Same task and rubric, isolated outputs, independent judge.

Competition defaults to two or three candidates. More candidates require a reason because model diversity costs time and context.

Procedure

Step 1: Choose the Mode

Use decomposition for ordinary parallel work. Use competition only when choosing one implementation too early would lock in the wrong architecture, interface, or artifact.

Competition requires:

  1. The same task statement for every candidate.
  2. A private rubric with three to six concrete criteria.
  3. A separate output path or worktree for every candidate.
  4. A judge that sees sanitized candidate labels, not model identities.
  5. Lead review of every candidate before selecting or combining work.

Step 2: One Mission Per Sub-Agent

Each sub-agent gets exactly one focused mission. Bundling unrelated questions blurs the output. Spawn a second sub-agent instead.

Step 3: Bound the Scope

Tell the sub-agent which paths, files, or symbols to focus on. Unbounded sub-agents wander.

For competition, give candidates isolated targets. Shared writes destroy independence and can corrupt both outputs.

Step 4: Specify the Deliverable and Rubric

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.

For competition, define success before launching. Keep the rubric from candidates when it would cue them to game the evaluation; give it to the judge.

Step 5: Launch, Don't Babysit

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.

Step 6: Inspect, Then Integrate

Do not repeat the sub-agent's whole search. Spot-check the cited evidence, inspect produced artifacts, and verify claims that drive a decision. A sub-agent summary is input, not ground truth.

For competition:

  1. Read every candidate end to end.
  2. Have the judge score each sanitized candidate against the same rubric.
  3. Select the most maintainable base, not the most elaborate artifact.
  4. Integrate only compatible strengths from other candidates.
  5. Record rejected alternatives and why they lost.

Step 7: Resolve Conflicts

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.

Step 8: Respect the Configured Knobs

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.

Pitfalls

  • DO NOT delegate work that must outlive this turn. Sub-agents are NOT durable; if the parent is interrupted, the child is cancelled. Use skills/durable-work instead.
  • DO NOT issue vague missions ("look into this"). Specify scope and deliverable.
  • DO NOT spawn a sub-agent for one view or one grep — the overhead exceeds the benefit.
  • DO NOT re-run searches the sub-agent already did. Trust the summary.
  • DO NOT treat a sub-agent summary as proof. Inspect the cited evidence and produced artifact.
  • DO NOT use competition for routine changes with an obvious local pattern.
  • DO NOT let competing candidates write to the same path or worktree.
  • DO NOT tell a blinded judge which model produced each candidate.
  • DO NOT average incompatible designs. Pick a coherent base and integrate selectively.
  • DO NOT exceed max_concurrent_children (see .dojo/delegation.yaml) without justification logged in tasks/lessons.md.
  • DO NOT silently pick a winner when sub-agents conflict. Resolve per conflict_resolution or log.

Verification

  • Each sub-agent invocation has a single, written mission.
  • Each invocation specifies the deliverable shape.
  • Decision-driving evidence and produced artifacts were inspected.
  • Competition, when used, had isolated outputs and a model-blind judge.
  • Rejected alternatives and the selection rationale were recorded.
  • No sub-agent depth >2 unless deliberately justified in tasks/lessons.md.

Veelgestelde vragen

Wat doet de AI-skill Subagent Strategy?

Delegeert onderzoek en parallel werk aan subagents.

Waarom Subagent Strategy gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Subagent Strategy bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Subagent Strategy in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/andreaswasita/copilot-agents-dojo/tree/main/skills/subagent-strategy. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Subagent Strategy gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Subagent Strategy gebruiken?

Zoveel als je wilt. Je kunt Subagent Strategy gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Subagent Strategy gratis?

Ja. Deze skill is door andreaswasita op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇