kage-bunshin
Installation
SKILL.md
Kage Bunshin — Persistent Peer Claude Sessions
Spawn independent interactive claude CLI sessions in tmux with full bidirectional communication. The orchestrator can send messages, read responses, monitor status, and steer work mid-flight via tmux send-keys and tmux capture-pane.
This is NOT a subagent or teammate — it is an independent CLI process with its own context window, inheriting all MCP servers, skills, plugins, and agents from the project directory.
Session Manager Script
All operations go through ${CLAUDE_SKILL_DIR}/scripts/spawn.py:
spawn.py --session-id ID spawn --name X [--model MODEL] [--max-budget N] [--effort LEVEL] "prompt"
spawn.py --session-id ID send --name X "message"
spawn.py --session-id ID read --name X
spawn.py --session-id ID status --name X
spawn.py --session-id ID list
spawn.py --session-id ID stop --name X # graceful shutdown (Ctrl-C + wait)
spawn.py --session-id ID kill --name X # force kill (last resort)