Agent skill · software engineering · alirezarezvani
spawn
Launch the competing agents in isolated worktrees. Use when an AgentHub session is set up.
Why this skill is useful
Adds a script to launch multiple parallel agents with isolated worktrees, enabling concurrent task execution and diverse strategies.
What it needs
Requires git installed locally. About 2k tokens when loaded. Last updated 2026-08-05. 23,939 stars on the source repository.
What this skill does
/agenthub:spawn — Launch Parallel Agents Spawn N subagents that work on the same task in parallel, each in an isolated git worktree. Usage Templates When --template <name> is provided, use the dispatch prompt from ../agenthub/references/agent-templates.md instead of the default prompt below. Available templates: Template Pattern Use Case ---------- --------- ---------- optimizer Edit → eval → keep/discard → repeat x10 Performance, latency, size reduction refactorer Restructure → test → iterate until green Code quality, tech debt test-writer Write tests → measure coverage → repeat Test coverage gaps bug-fixer Reproduce → diagnose → fix → verify Bug fix with competing approaches When using a template, replace all {variables} with values from the session config. Assign each agent a different strategy appropriate to the template and task — diverse strategies maximize the value of parallel exploration. What It Does 1. Load session config from .agenthub/sessions/{session-id}/config.yaml 2. For each agent 1..N: Write task assignment to .agenthub/board/dispatch/ Build agent prompt with task, constraints, and board write instructions 3. Launch ALL agents in a single message with multiple Agent tool calls: 4. Update session state to running via: Critical Rules All agents in ONE message — spawn all Agent tool calls simultaneously for true parallelism isolation: "worktree" is mandatory — each agent needs its own filesystem Never modify session config after spawn — agents rely on stable configuration Each agent gets a unique board post — dispatch posts are numbered sequentially After Spawn Tell the user: {N} agents launched in parallel Each working in an isolated worktree Monitor with /hub-status Evaluate when done with /agenthub:eval
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills alirezarezvani/spawn--243a69