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.
Installation agent prête
Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.
npx -y tokrepo@latest install 935294e1-35a8-47a9-b09b-4c94703d7aa9 --target codexÀ exécuter après confirmation du plan en dry-run.
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.
Questions fréquentes
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.
Sources citées (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
En lien sur TokRepo
Source et remerciements
Created by smtg-ai. Licensed under MIT.
smtg-ai/claude-squad — 5k+ stars
Fil de discussion
Actifs similaires
Agent Squad — Multi-Agent Orchestration for Complex Conversations
A flexible open-source framework for managing multiple AI agents that intelligently routes conversations to specialized agents based on context, supporting both Python and TypeScript.
Hugging Face Skills — Agent Skills Marketplace
Install Hugging Face Skills to teach your agent Hub workflows (download, upload, datasets, evals) across Claude Code, Codex, and Cursor.
oh-my-claudecode — Zero-Config Multi-Agent System
Zero learning curve multi-agent orchestration for Claude Code. Includes team mode, autopilot, Ralph persistent execution, and ultrawork parallel mode with 19 specialized agents.
Claude Swarm — Multi-Agent Orchestration with SDK
Python-based multi-agent orchestration built on Claude Agent SDK. Opus decomposes tasks, Haiku workers execute in parallel waves with real-time TUI dashboard and budget control.