New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Launches N parallel subagents in isolated git worktrees to compete on one session task.

skills.sh installs
1.4K
GitHub stars
30.3K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers dispatching each agent's task assignment, building its prompt, and launching all agents in a single message
  • Includes four dispatch templates (optimizer, refactorer, test-writer, bug-fixer) that assign each agent a distinct strategy
  • Enforces isolation: "worktree" for every agent and forbids agents from reading each other's results
  • Designed for initialized AgentHub sessions, with state set to running and monitoring via /hub-status

Install

$ npx -y skills add alirezarezvani/claude-skills --skill spawn -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

/agenthub:spawn — Launch Parallel Agents

Spawn N subagents that work on the same task in parallel, each in an isolated git worktree.

Usage

/agenthub:spawn                                    # Spawn agents for the latest session
/agenthub:spawn 20260317-143022                    # Spawn agents for a specific session
/agenthub:spawn --template optimizer               # Use optimizer template for dispatch prompts
/agenthub:spawn --template refactorer              # Use refactorer template

Templates

When --template <name> is provided, use the dispatch prompt from ../agenthub/references/agent-templates.md instead of the default prompt below. Available templates:

TemplatePatternUse Case
optimizerEdit → eval → keep/discard → repeat x10Performance, latency, size reduction
refactorerRestructure → test → iterate until greenCode quality, tech debt
test-writerWrite tests → measure coverage → repeatTest coverage gaps
bug-fixerReproduce → diagnose → fix → verifyBug fix with competing approaches

Details

Repository
github.com/alirezarezvani/claude-skills
Categories
Agent Workflow & Planning, Git & Releases
First seen
Apr 16, 2026

More from alirezarezvani/claude-skills

All 259