zircote-plugins/claude-team-orchestration/spawn-backends
Claude Code and agent skill by zircote-plugins/claude-team-orchestration
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Configure how teammate agents run including in-process, tmux, and iTerm2 backends. Use when choosing a display mode, setting up split panes, troubleshooting backend issues, or configuring teammateMode.
Install
npx vskill@latest install zircote-plugins/claude-team-orchestration/spawn-backendsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as zircote-plugins/claude-team-orchestration/spawn-backends.
Spawn Backends
A backend determines how teammate Claude instances actually run. Claude Code supports three backends and auto-detects the best one based on your environment.
Experimental: Agent teams are disabled by default. Enable withCLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMSin your settings or environment.
Related skills:
- Orchestrating - Primitives overview and quick reference
- Team Management - Creating and managing teams
- Error Handling - Troubleshooting backend issues
Backend Comparison
| Backend | How It Works | Visibility | Persistence | Speed | |
|---|---|---|---|---|---|
| in-process | Same Node.js process as leader | Hidden (background) | Dies with leader | Fastest | |
| tmux | Separate terminal in tmux session | Visible in tmux | Survives leader exit | Medium | |
| iterm2 | Split panes in iTerm2 window | Visible side-by-side | Dies with window | Medium |
teammateMode Setting
The default is "auto", which uses split panes if you're already running inside a tmux session, and in-process otherwise.
Settings File Configuration
Set teammateMode in your settings.json:
Valid values: "auto", "in-process", "tmux"
CLI Flag
Force a mode for a single session:
Environment Variable
Auto-Detection Logic
Claude Code automatically selects a backend using this decision tree:
Detection checks:
$TMUXenvironment variable -> inside tmux$TERM_PROGRAM === "iTerm.app"or$ITERM_SESSION_ID-> in iTerm2which tmux-> tmux availablewhich it2-> it2 CLI installed
in-process (Default)
Teammates run as async tasks within the same Node.js process.
How it works:
- No new process spawned
- Teammates share the same Node.js event loop
- Communication via in-memory queues (fast)
- You don't see teammate output directly
When it's used:
- Not running inside tmux session
- Non-interactive mode (CI, scripts)
- Explicitly set via
teammateMode: "in-process"orCLAUDE_CODE_SPAWN_BACKEND=in-process
Layout:
Interaction: Use Shift+Up/Down to select a teammate, then type to send a message. Press Enter to view a session, Escape to interrupt, Ctrl+T to toggle the task list.
Pros:
- Fastest startup (no process spawn)
- Lowest overhead
- Works everywhere, no extra setup
Cons:
- Can't see teammate output in real-time
- All die if leader dies
- Harder to debug
tmux
Teammates run as separate Claude instances in tmux panes/windows.
How it works:
- Each teammate gets its own tmux pane
- Separate process per teammate
- You can switch panes to see teammate output
- Communication via inbox files
When it's used:
- Running inside a tmux session (
$TMUXis set) - tmux available and not in iTerm2
- Explicitly set via
teammateMode: "tmux"orCLAUDE_CODE_SPAWN_BACKEND=tmux
Layout modes:
- Inside tmux (native): Splits your current window
- Outside tmux (external session): Creates a new tmux session called
claude-swarm
Note: tmux has known limitations on certain operating systems and traditionally works best on macOS. Usingtmux -CCin iTerm2 is the suggested entrypoint.
Pros:
- See teammate output in real-time
- Teammates survive leader exit
- Can attach/detach sessions
- Works in CI/headless environments
Cons:
- Slower startup (process spawn)
- Requires tmux installed
- More resource usage
Useful tmux commands:
iterm2 (macOS only)
Teammates run as split panes within your iTerm2 window.
How it works:
- Uses iTerm2's Python API via
it2CLI - Splits your current window into panes
- Each teammate visible side-by-side
- Communication via inbox files
When it's used:
- Running in iTerm2 (
$TERM_PROGRAM === "iTerm.app") it2CLI is installed and working- Python API enabled in iTerm2 preferences
Layout:
Pros:
- Visual debugging - see all teammates
- Native macOS experience
- No tmux needed
- Automatic pane management
Cons:
- macOS + iTerm2 only
- Requires setup (it2 CLI + Python API)
- Panes die with window
- Not supported in VS Code's integrated terminal, Windows Terminal, or Ghostty
Setup:
If setup fails: Claude Code will prompt you to set up it2 when you first spawn a teammate. You can choose to:
- Install it2 now (guided setup)
- Use tmux instead
- Cancel
Backend in Team Config
The backend type is recorded per-teammate in config.json:
Checking Current Backend
Troubleshooting Backends
| Issue | Cause | Solution | |
|---|---|---|---|
| "No pane backend available" | Neither tmux nor iTerm2 available | Install tmux: brew install tmux | |
| "it2 CLI not installed" | In iTerm2 but missing it2 | Run uv tool install it2 | |
| "Python API not enabled" | it2 can't communicate with iTerm2 | Enable in iTerm2 Settings -> General -> Magic | |
| Workers not visible | Using in-process backend | Start inside tmux or iTerm2 | |
| Workers dying unexpectedly | Outside tmux, leader exited | Use tmux for persistence | |
| Orphaned tmux sessions | Team wasn't fully cleaned up | tmux ls then tmux kill-session -t <name> |
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/spawn-backends/SKILL.md
Popularity
- Repository stars
- 15
- Repository forks
- 1
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/zircote-plugins/claude-team-orchestration/spawn-backends)