Executables (bin/) — files in this plugin's bin/directory are added to the Bash tool's PATH while the plugin is enabled.
Executes bash commands
Hook triggers when Bash tool is used
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
A session-oriented pool of persistent Claude Code sessions backed by tmux.
Running a claude command while another Claude session has a Bash tool call in flight silently destroys that call's output. This is a fundamental Claude Code limitation - the transcript-directory file watcher reacts to new sessions, breaking active ones. You can't reliably run parallel Claude work by spawning new claude processes.
sub-claude pre-starts Claude TUI sessions in tmux panes before any work begins. New conversations use /clear, session switches use /resume - all typed into existing sessions, no new processes ever launched.
The result: reliable parallel Claude work with fire-and-forget, blocking, and multi-turn patterns.
# Install CLI
git clone https://github.com/EliasSchlie/sub-claude.git
cd sub-claude
./install.sh
# Initialize a pool (5 slots by default)
sub-claude pool init
# Fire-and-forget
id=$(sub-claude start "refactor auth module")
# Blocking - wait for result
result=$(sub-claude -v response start "summarize this file" --block)
# Multi-turn conversation
id=$(sub-claude start "analyze the codebase")
sub-claude wait "$id"
sub-claude followup "$id" "now suggest improvements" --block
# Parallel fan-out
id1=$(sub-claude start "task one")
id2=$(sub-claude start "task two")
sub-claude wait # waits for first to finish
sub-claude wait # waits for the next
The plugin teaches Claude how to use sub-claude automatically via skills and hooks.
# Per-session (development/testing):
claude --plugin-dir /path/to/sub-claude
# Persistent (via marketplace):
# Inside Claude Code, run:
# /plugin marketplace add EliasSchlie/claude-plugins
# /plugin install sub-claude@elias-tools
The plugin handles Claude Code integration. The CLI binary needs a separate install:
git clone https://github.com/EliasSchlie/sub-claude.git
cd sub-claude
./install.sh # copies to ~/.local/{bin,lib}
# or
./install.sh --link # symlinks binary - updates via git pull, no reinstall
Use --prefix /usr/local for system-wide install.
Caller A Caller B
| |
start "prompt" followup $id "prompt"
| |
v v
+------------------------------------------+
| sub-claude orchestrator |
| |
| Queue (FIFO): [job-3, job-4, ...] |
| |
| Session mapping: |
| ID a1b2c3d4 -> slot-0 (busy) |
| ID e5f6a7b8 -> slot-1 (idle) |
| ID c9d0e1f2 -> offloaded (snapshot) |
+-------------------+----------------------+
|
+---------------+---------------+
v v
Background watcher Shared tmux server
(polls every 2s) +-- slot-0 (busy)
- done detection +-- slot-1 (idle)
- queue dispatch +-- slot-2 (fresh)
- crash recovery +-- slot-3 (fresh)
- pin expiry +-- slot-4 (fresh)
Key concepts:
sub-claude [-v response|conversation|full|raw] [-C <dir>] <command> [args]
npx claudepluginhub eliasschlie/claude-plugins --plugin sub-claudeSession intention tracking — PID mapping, intention file intro, and change notifications for the Open Cockpit app
Detects idle Claude sessions for keyboard-shortcut cycling
AI safety field expert — career advice, events, sub-fields, and company landscape
Managed pools of Claude Code sessions — spawn, offload, restore, prompt, attach
Persistent terminal management — spawn, read, write, and kill terminals that survive session disconnects
Launch, control, and monitor other Claude Code sessions as workers via tmux
Let local Claude Code sessions talk to each other in natural language.
Local channel for asking a live Claude Code session and receiving replies.
Control Codex and Gemini from your phone. Coordinate AI agents across CLIs via tmux.
MCP server for spawning and orchestrating multiple Claude Code sessions via iTerm2
Mission Control for Claude Code — auto-starts a web dashboard, provides 90 MCP tools (sessions, stats, live monitoring, projects, teams, insights, coaching, and more), and adds 9 skills including /session-recap, /daily-cost, /standup, /coaching, /insights, and /team-status.