Logo di Dispatching Parallel Agents

Dispatching Parallel Agents

Community
andreaswasita
dispatching-parallel-agents

Runs independent subtasks concurrently via sub-agents.

Panoramica

Autoreandreaswasita
Repositorycopilot-agents-dojo
Nome della skilldispatching-parallel-agents
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 Dispatching Parallel Agents 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/dispatching-parallel-agents
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova 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 nella cartella 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/dispatching-parallel-agents .claude/skills/dispatching-parallel-agents
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Dispatching Parallel Agents 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 Dispatching Parallel Agents 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 Dispatching Parallel Agents 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à.

Dispatching Parallel Agents Skill

Runs multiple sub-agents concurrently when a plan contains independent subtasks with non-overlapping file boundaries. Each sub-agent receives a self-contained spec. Does NOT parallelize work with dependencies or shared mutable state — that path silently corrupts results.

When to Use

  • The plan contains 2+ tasks with no dependency edges between them.
  • Multiple research investigations or codebase explorations can run side-by-side.
  • Multiple verification runs (lint, test, type-check) can run in parallel.
  • User explicitly asks for parallel execution or to "speed this up".
  • NOT for debugging (parallel agents mask timing bugs).
  • NOT when tasks edit overlapping files or share mutable state.

Prerequisites

  • An approved plan in tasks/todo.md with task IDs and explicit dependencies.
  • The task Copilot tool available (or equivalent sub-agent mechanism).
  • Each candidate task has a precise file-boundary scope ("owns" a directory or file set).
  • Integration test or verification step that exercises the combined result.
  • The view, edit, grep, and powershell Copilot tools.

How to Run

text
1. From `tasks/todo.md`, pick tasks with no dependency edges between them.
2. Confirm each has a non-overlapping file scope.
3. Write a self-contained spec per agent (goal, files, DO NOT touch, verification).
4. Dispatch all sub-agents in one tool-call batch.
5. Collect each result; integrate.
6. Run an integration verification on the merged result.
7. Log failures and reasons in `tasks/lessons.md`.

Quick Reference

Parallel-safeSequential-only
Independent API modules in different foldersTask B reads Task A's output
Separate research questionsShared config edits
Per-package builds in a monorepoSame-file mutations
Per-file lint or type-check passesMigration scripts that order-depend
Spec fieldRequired
GoalOne sentence
Files ownedDirectory or explicit list
Files forbidden"DO NOT touch" list
VerificationTests this agent must pass before returning
Return formatWhat the agent reports back

Procedure

Step 1: Identify Independents

Use view on tasks/todo.md. List tasks with empty or already-satisfied dependency sets. Cross-check file scopes: any overlap → sequential, not parallel.

markdown
## Parallelizable
- [ ] Task A: User API endpoints (`src/api/users/`)
- [ ] Task B: Product API endpoints (`src/api/products/`)
- [ ] Task C: Migration scripts (`src/db/migrations/`)

## Sequential (depends on A+B+C)
- [ ] Task D: Integration tests for all endpoints

Step 2: Write Per-Agent Specs

Each spec is self-contained — no agent should need to ask "what do I do?":

markdown
### Agent 1 Spec: User API Endpoints
Goal: Implement CRUD endpoints for users.
Files owned: src/api/users/ (create new); src/routes/index.ts (add one route line).
DO NOT touch: src/api/products/, src/db/.
Verification: All new tests in src/api/users/__tests__/ pass; existing tests unaffected.
Return: list of files created + test result summary.

Step 3: Dispatch in One Batch

Issue the sub-agent calls in a single tool-calling batch so they execute in parallel, not sequentially. Use the task tool with mode: background for any agent expected to take more than a few seconds.

Step 4: Collect and Integrate

For each returned agent:

  • Confirm it reports verification PASS.
  • Inspect the diff with view and git diff --stat.
  • Merge changes into the current worktree if the agents wrote to separate worktrees.

Step 5: Integration Verification

After all agents complete, run the full test suite and bash scripts/verify.sh --check on the combined result. Per-agent green does not imply combined green.

Step 6: Handle Partial Failure

If one agent fails:

  1. Do not block the others — let successes complete.

  2. Diagnose: was the spec ambiguous? Hidden dependency missed?

  3. Re-dispatch the failed task with a revised spec, or finish it sequentially.

  4. Append to tasks/lessons.md:

    yaml
    - date: 2026-05-19
      error_type: parallel-dispatch-failure
      trigger: "Agent 2 needed Agent 1's output; was dispatched in parallel"
      root_cause: "Implicit dependency not surfaced in tasks/todo.md"
      fix: "Re-ran Agent 2 after Agent 1 completed"
      rule: "Every parallel-eligible task must declare its dependencies explicitly"

Pitfalls

  • DO NOT parallelize tasks with dependencies. They will race and one will silently produce wrong output.
  • DO NOT dispatch 20 agents at once. 3–5 is manageable; more is chaos and tool-budget exhaustion.
  • DO NOT skip integration verification. Per-agent green ≠ combined green.
  • DO NOT write vague specs ("handle the user stuff"). They produce vague output.
  • DO NOT ignore partial failures. One failure can invalidate downstream work that already merged.

Verification

  • Dependency check ran on tasks/todo.md — only zero-dep tasks dispatched in parallel.
  • File scopes verified non-overlapping before dispatch.
  • Each agent received a self-contained spec including DO NOT list.
  • All agents reported back; failures logged.
  • Integration test suite + scripts/verify.sh --check passed on the combined result.
  • If a failure occurred, tasks/lessons.md was updated with the root cause.

Domande frequenti

Cosa fa la skill IA Dispatching Parallel Agents?

Runs independent subtasks concurrently via sub-agents.

Perché usare Dispatching Parallel Agents su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Dispatching Parallel Agents è 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 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 Dispatching Parallel Agents in TypingMind?

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

Quali modelli IA possono usare Dispatching Parallel Agents?

Qualsiasi modello che colleghi in 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 Dispatching Parallel Agents?

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

La skill IA Dispatching Parallel Agents è 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, modelli 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.

Vedi tutti

Crea subito la tua area di lavoro IA

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