Logo di Subagent Strategy

Subagent Strategy

Community
andreaswasita
subagent-strategy

Delega la ricerca e il lavoro in parallelo a sub-agenti.

Add to TypingMind

Panoramica

Pubblicato daandreaswasita
Repositorycopilot-agents-dojo
Nome della skillsubagent-strategy
Stelle
54
Fork
15
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da andreaswasita su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Subagent Strategy in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/andreaswasita/copilot-agents-dojo/tree/main/skills/subagent-strategy
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Subagent Strategy in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Subagent Strategy non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Subagent Strategy non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

Domande frequenti

Cosa fa la skill IA Subagent Strategy?

Delega la ricerca e il lavoro in parallelo a sub-agenti.

Perché usare Subagent Strategy su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Subagent Strategy è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Subagent Strategy in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/andreaswasita/copilot-agents-dojo/tree/main/skills/subagent-strategy. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Subagent Strategy?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Subagent Strategy?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Subagent Strategy: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Subagent Strategy è gratuita?

Sì. È pubblicata su GitHub da andreaswasita con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇