Logo vun Dispatching Parallel Agents

Dispatching Parallel Agents

Communautéit
andreaswasita
dispatching-parallel-agents

Runs independent subtasks concurrently via sub-agents.

Iwwersiicht

Editeurandreaswasita
Repositorycopilot-agents-dojo
Skill-Nummdispatching-parallel-agents
Stären
54
Forks
15
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum andreaswasita op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Dispatching Parallel Agents an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/andreaswasita/copilot-agents-dojo/tree/main/skills/dispatching-parallel-agents
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-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/dispatching-parallel-agents .claude/skills/dispatching-parallel-agents
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Dispatching Parallel Agents an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Dispatching Parallel Agents automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Dispatching Parallel Agents net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Heefeg gestallte Froen

Wat mécht de KI-Skill Dispatching Parallel Agents?

Runs independent subtasks concurrently via sub-agents.

Firwat Dispatching Parallel Agents op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Dispatching Parallel Agents besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Dispatching Parallel Agents an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/andreaswasita/copilot-agents-dojo/tree/main/skills/dispatching-parallel-agents an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Dispatching Parallel Agents benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Dispatching Parallel Agents benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Dispatching Parallel Agents domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Dispatching Parallel Agents gratis?

Jo. De Skill gëtt vum andreaswasita ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇