Claude Squad — Manage Multiple AI Agent Sessions
Terminal multiplexer for AI coding agents. Run multiple Claude Code or Aider sessions in parallel with tmux-based management, status tracking, and git worktrees.
What it is
Claude Squad is a terminal multiplexer purpose-built for AI coding agents. It lets you run multiple Claude Code, Aider, or other AI coding sessions in parallel, each in its own tmux pane with independent git worktrees. A status dashboard shows which sessions are active, waiting for input, or completed.
Claude Squad is designed for developers who want to parallelize AI-assisted development across multiple tasks or branches simultaneously.
How it saves time or tokens
Running one AI coding session at a time creates a bottleneck. While Claude Code works on a refactoring task, you wait. Claude Squad eliminates that bottleneck by letting you launch multiple sessions: one for refactoring, one for tests, one for documentation. Each session runs independently with its own git worktree, so there are no merge conflicts during parallel work. The status dashboard tells you which sessions need your attention, so you can context-switch efficiently.
How to use
- Install Claude Squad:
go install github.com/smtg-ai/claude-squad@latest
Or download a binary from GitHub releases.
- Launch Claude Squad:
claude-squad
- Press
nto start a new agent session. Each session gets its own tmux pane and git worktree. Navigate between sessions with arrow keys and monitor their status in the dashboard.
Example
A typical multi-session workflow:
# Launch Claude Squad
claude-squad
# Press 'n' — Session 1: "Refactor auth module"
# Press 'n' — Session 2: "Write unit tests for API"
# Press 'n' — Session 3: "Update README with new endpoints"
# Dashboard shows:
# [1] auth-refactor WORKING branch: ws/auth-refactor
# [2] api-tests WAITING branch: ws/api-tests
# [3] readme-update DONE branch: ws/readme-update
# Select session 2, provide input, then let it continue
# When all sessions finish, merge worktrees back
Related on TokRepo
- Coding tools — Browse AI-assisted development tools
- Automation tools — Explore tools for automating development workflows
Common pitfalls
- Not having tmux installed. Claude Squad requires tmux as a dependency. Install it with
brew install tmux(macOS) orapt install tmux(Linux) before running Claude Squad. - Running too many sessions simultaneously on a machine with limited resources. Each AI session consumes memory and API tokens. Start with 2-3 sessions and scale up based on your hardware and API rate limits.
- Forgetting to merge worktrees after sessions complete. Claude Squad creates separate git worktrees for isolation, but you must manually merge the results back into your main branch when done.
Frequently Asked Questions
Claude Squad supports Claude Code and Aider out of the box. Since it uses tmux to manage sessions, it can technically run any terminal-based AI coding agent. You configure the agent command when creating a new session.
Each session runs in its own git worktree, which is an independent working directory with its own branch. This prevents conflicts during parallel work. You merge the branches after sessions complete using standard git merge or rebase.
Yes. Claude Squad works on macOS and Linux. It requires Go for installation (or use a pre-built binary) and tmux for session management. Install tmux with brew install tmux on macOS.
There is no hard limit in Claude Squad itself. The practical limit depends on your machine's resources and your API rate limits. Each session runs an independent AI agent process, so memory and API costs scale linearly.
Claude Squad uses tmux for session management, so sessions persist as long as the tmux server is running. If you close your terminal, you can reattach to the tmux session. However, if the tmux server itself is killed, sessions are lost.
Citations (3)
- Claude Squad GitHub— Claude Squad is a terminal multiplexer for AI coding agents
- Git Worktree Documentation— Git worktrees provide independent working directories
- tmux GitHub— tmux is a terminal multiplexer
Related on TokRepo
Source & Thanks
Created by smtg-ai. Licensed under MIT.
smtg-ai/claude-squad — 5k+ stars
Discussion
Related Assets
Claude-Flow — Multi-Agent Orchestration for Claude Code
Layers swarm and hive-mind multi-agent orchestration on top of Claude Code with 64 specialized agents, SQLite memory, and parallel execution.
ccusage — Real-Time Token Cost Tracker for Claude Code
CLI that reads ~/.claude logs and breaks down Claude Code token spend by day, session, and project — pluggable into your statusline.
SuperClaude — Workflow Framework for Claude Code
Adds 16+ slash commands, 9 cognitive personas, and a smart flag system to Claude Code in one pipx install.