Logotipo de Subagent Strategy

Subagent Strategy

Comunidad
andreaswasita
subagent-strategy

Delega la investigación y el trabajo en paralelo en subagentes.

Add to TypingMind

Descripción general

Editorandreaswasita
Repositoriocopilot-agents-dojo
Nombre de la habilidadsubagent-strategy
Estrellas
54
Forks
15
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por andreaswasita en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Subagent Strategy en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/andreaswasita/copilot-agents-dojo/tree/main/skills/subagent-strategy
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese 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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Subagent Strategy en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Subagent Strategy automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Subagent Strategy no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo 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.

Preguntas frecuentes

¿Qué hace la habilidad de IA Subagent Strategy?

Delega la investigación y el trabajo en paralelo en subagentes.

¿Por qué usar Subagent Strategy en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Subagent Strategy está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Subagent Strategy en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/andreaswasita/copilot-agents-dojo/tree/main/skills/subagent-strategy. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Subagent Strategy?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Subagent Strategy?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Subagent Strategy con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Subagent Strategy?

Sí. andreaswasita la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇