spawn

Orchestrate parallel AI subagents in isolated git worktrees for complex tasks.

Updated Nov 3, 2016
One-click install
npx skills add https://github.com/xleliberty/mydotfiles --skill spawn-xleliberty
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spawn
Source: https://github.com/xleliberty/mydotfiles/tree/main/.config/.claude/plugins/cache/claude-code-skills/engineering-advanced-skills/2.1.2/agenthub/skills/spawn
Command: npx skills add https://github.com/xleliberty/mydotfiles --skill spawn-xleliberty

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill solves the bottleneck of sequential task execution by enabling multiple AI agents to explore different strategies for the same problem simultaneously without interfering with each other.

Core Features & Use Cases

  • Parallel Exploration: Spawns N subagents to work on a single task, maximizing the probability of finding an optimal solution.
  • Isolated Environments: Uses git worktrees to ensure each agent operates in a clean, independent filesystem.
  • Template-Driven Strategy: Supports specialized templates like optimizer, refactorer, and test-writer to guide agent behavior toward specific outcomes.

Quick Start

Execute the spawn command to launch multiple agents for the current session using the optimizer template.

Frequently Asked Questions about spawn

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run parallel AI agents without them overwriting each other's files?

You can run parallel AI agents in isolated environments by using git worktrees, which provide each agent with an independent filesystem to explore different strategies without interfering with one another. This approach maximizes the probability of finding an optimal solution.

How do I orchestrate multiple subagents to solve a single engineering task at once?

You can orchestrate multiple subagents by spawning N agents within isolated git worktrees, managing session configuration and task dispatching to coordinate concurrent tool calls and maintain filesystem isolation across diverse agent strategies.

Can I use git worktrees to isolate agent tool calls for parallel exploration?

Yes, git worktrees are used to ensure each agent operates in a clean, independent filesystem. This session-based environment coordinates concurrent agent tool calls and maintains filesystem isolation during parallel exploration.

What's the best way to guide AI agents toward specific coding outcomes like refactoring or writing tests?

The best way to guide agent behavior is by using template-driven strategies, such as specialized templates for optimizers, refactorers, and test-writers. These templates direct the parallel agents toward specific engineering outcomes.

Why does sequential task execution bottleneck my engineering workflow?

Sequential task execution bottlenecks workflows by processing tasks one after another, preventing simultaneous strategy exploration. Spawning parallel subagents in isolated worktrees solves this by allowing multiple approaches to be tested concurrently.