https://github.com/smtg-ai/claude-squad
Manage multiple AI terminal agents like Claude Code, Codex, OpenCode, and Amp.
https://github.com/smtg-ai/claude-squad
claude-code cli codex opencode vibe-coding
Last synced: 2 months ago
JSON representation
Manage multiple AI terminal agents like Claude Code, Codex, OpenCode, and Amp.
- Host: GitHub
- URL: https://github.com/smtg-ai/claude-squad
- Owner: smtg-ai
- License: agpl-3.0
- Created: 2025-03-09T20:00:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-06-17T16:05:14.000Z (3 months ago)
- Last Synced: 2026-06-17T18:07:17.995Z (3 months ago)
- Topics: claude-code, cli, codex, opencode, vibe-coding
- Language: Go
- Homepage: https://smtg-ai.github.io/claude-squad/
- Size: 3.27 MB
- Stars: 7,828
- Watchers: 30
- Forks: 558
- Open Issues: 50
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Cla: CLA.md
Awesome Lists containing this project
- awesome-AI-driven-development - Claude Squad - Manage multiple AI terminal agents like Claude Code, Aider, Codex, OpenCode, and Amp. (Multi-Agent & Orchestration / Other IDEs)
- awesome-agent-product - Claude Squad - Manage multiple AI terminal agents like Claude Code, Codex, OpenCode, and Amp. (Terminal Multiplexers and Session Managers)
- awesome-claude - claude-squad - 4.2k⭐ - Manage multiple AI terminal agents (Claude Code Ecosystem / Project & Session Management)
- awesome-go - smtg-ai/claude-squad - Manage multiple AI terminal agents like Claude Code, Codex, OpenCode, and Amp. (Other / General Purpose Libraries)
- awesome-claude-code - **claude-squad**
- awesome-gemini-cli - claude-squad - Manage multiple AI terminal agents like Gemini CLI, Claude Code, Codex CLI, Aider, OpenCode, Amp, etc. (🎉 New Entries)
- awesome - smtg-ai/claude-squad - Manage multiple AI terminal agents like Claude Code, Codex, OpenCode, and Amp. (Go)
- awesome-claude-multi-agent - Claude Squad - Terminal manager for running multiple parallel Claude Code agents in isolated Git workspaces. (Orchestration Frameworks)
- awesome-claude-code - Claude Squad - ai](https://github.com/smtg-ai) - A terminal app that manages multiple Claude Code, Codex, and other local agents (including Aider) in separate workspaces, allowing you to work on multiple tasks simultaneously. (Agent Orchestration / Obsidian)
- awesome-ai-tuis - **Claude Squad** - agent · 🪟 tmux sessions · 🌲 Git worktrees · 🖥 TUI · ⚡ Go | (📊 The List)
- awesome-claude-code-and-skills - smtg-ai/claude-squad - ai/claude-squad?style=flat-square) (Multi-Agent Systems / Parallel Processing)
- awesome-claude-code - claude-squad - ai/claude-squad?style=flat) | Manage multiple AI terminal agents including Aider and Codex | (🛠 Applications & Utilities)
- awesome-claude-code - Claude Squad - Manage multiple AI terminal agents like Claude Code, Aider, Codex, OpenCode, and Amp simultaneously.  (CLI Extensions and Companion Tools / MCP Frameworks and Tooling)
- awesome-codex-cli - claude-squad - Manage multiple AI terminal agents like Claude Code, Aider, Codex, OpenCode, and Amp. (Tools / Development Tools)
- awesome-ai - smtg-ai/claude-squad
- awesome-openclaw-skills - Claude Squad - | (Code & Developer Tools)
- awesome-opensource-ai - Claude Squad - Manage multiple AI terminal agents like Claude Code, Codex, OpenCode, and Amp. Terminal multiplexer for AI coding agents with session management and parallel execution. AGPL-3.0 licensed.  (13. Developer Tools & Integrations)
- awesome-cli-agents - smtg-ai/claude-squad - Manage multiple AI terminal agents like Claude Code, Codex, OpenCode, and Amp. [Terminal] (8k⭐) (🚀 AI Tools for Vim, Neovim, and Terminal)
- awesome-cli-coding-agents - Claude Squad - based harness to run and manage multiple Claude Code sessions side-by-side. (Harnesses & orchestration / Session managers & parallel runners)
- awesome-agent-orchestrators - claude-squad - Runs each agent as a detached background session with its own worktree, so work continues after you close the pane. Claude Code, Codex, OpenCode, Amp. (Parallel Coding Agents — Terminal (TUI/CLI))
- awesome-agent-harness - GitHub - 7865-f4b400?style=flat-square)](https://github.com/smtg-ai/claude-squad) | terminal, sessions, worktrees | Terminal control plane for managing multiple Claude Code, Codex, Gemini, OpenCode, Amp, and other agent sessions with isolated git workspaces and review flows. | (Catalog / Harness Architecture & Orchestration)
- awesome-claude-code-cn - Claude Squad - ai](https://github.com/smtg-ai) - Claude Squad 是一个终端应用程序,在单独的工作区中管理多个 Claude Code、Codex(以及其他本地代理,包括 Aider),允许您同时处理多个任务。 (工具 🧰 / 编排器)
- awesome-claude-code - claude-squad - ai/claude-squad) | 管理多个 AI 终端代理,如 Claude Code、Aider 等 | 多代理管理| (框架扩展)
- awesome-claude-code - smtg-ai/claude-squad - ai/claude-squad?style=flat-square&logo=github) | Terminal multiplexer to run and manage multiple AI coding agents in parallel | (Agent Orchestration)
- awesome-ai-dev-tools - claude-squad - Manage multiple AI terminal agents in background. (📚 Tools / 🌟 What You'll Find Here:)
- StarryDivineSky - smtg-ai/claude-squad - ai/claude-squad 是一个专为管理多AI终端代理(如Claude Code、Codex、OpenCode等)设计的开源调度框架,其核心解决了开发者需同时调用不同AI服务时面临的**协作效率低**与**资源分配混乱**的痛点。通过统一的任务分发与响应聚合机制,该项目让异构AI代理能像“协同作战的小队”一样各司其职,显著提升复杂场景下的自动化处理能力。**项目的核心亮点在于其三大设计优势**:首先,它采用**动态负载均衡**策略,可实时监测各代理的性能状态,类似交通导航系统智能分配车流,避免单一代理过载而其他闲置的浪费;其次,内置的**容错与重试机制**能自动识别代理的异常响应,像经验丰富的指挥官临时调整战术,确保任务不因个别代理故障而中断;最后,其**模块化接入设计**允许用户像拼装乐高积木一样自由扩展新代理,无需重构核心逻辑,这一灵活性远超同类工具(如单一代理封装库或静态调度器)。**技术原理上**,claude-squad的架构可类比为“AI代理的中央调度室”。其核心是一个轻量级任务队列(类似医院分诊台),用户提交的请求会被拆解为子任务,随后调度器根据代理的实时能力标签(如代码生成、文本补全等)匹配最优执行者。过程中,项目通过异步通信协议(类似快递物流的跟踪系统)收集所有代理的响应,最终聚合结果并过滤冲突。这种设计巧妙规避了多代理协作中的“重复劳动”与“结果打架”问题,而底层依赖的Python异步协程则确保了高吞吐量的同时维持低延迟。整体而言,claude-squad以简洁的API抽象了多AI代理管理的复杂性,其设计思想尤其适合需要结合不同AI特长(如代码生成+错误检查+风格优化)的复合型场景。开发者通过少量配置即可构建自己的“AI特工队”,这与从头编写调度逻辑或手动串联多个API相比,不啻为效率的降维打击。 (A01_文本生成_文本对话 / 大语言对话模型及数据)
- awesome-vibe-coding - Claude Squad
README
# Claude Squad [](https://github.com/smtg-ai/claude-squad/actions/workflows/build.yml) [](https://github.com/smtg-ai/claude-squad/releases/latest)
[Claude Squad](https://smtg-ai.github.io/claude-squad/) is a terminal app that manages multiple [Claude Code](https://github.com/anthropics/claude-code), [Codex](https://github.com/openai/codex), [Gemini](https://github.com/google-gemini/gemini-cli) (and other local agents including [Aider](https://github.com/Aider-AI/aider)) in separate workspaces, allowing you to work on multiple tasks simultaneously.

### Highlights
- Complete tasks in the background (including yolo / auto-accept mode!)
- Manage instances and tasks in one terminal window
- Review changes before applying them, checkout changes before pushing them
- Each task gets its own isolated git workspace, so no conflicts
https://github.com/user-attachments/assets/aef18253-e58f-4525-9032-f5a3d66c975a
### Installation
Both Homebrew and manual installation will install Claude Squad as `cs` on your system.
#### Homebrew
```bash
brew install claude-squad
ln -s "$(brew --prefix)/bin/claude-squad" "$(brew --prefix)/bin/cs"
```
#### Manual
Claude Squad can also be installed by running the following command:
```bash
curl -fsSL https://raw.githubusercontent.com/smtg-ai/claude-squad/main/install.sh | bash
```
This puts the `cs` binary in `~/.local/bin`.
To use a custom name for the binary:
```bash
curl -fsSL https://raw.githubusercontent.com/smtg-ai/claude-squad/main/install.sh | bash -s -- --name
```
### Prerequisites
- [tmux](https://github.com/tmux/tmux/wiki/Installing)
- [gh](https://cli.github.com/)
### Usage
```
Usage:
cs [flags]
cs [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
debug Print debug information like config paths
help Help about any command
reset Reset all stored instances
version Print the version number of claude-squad
Flags:
-y, --autoyes [experimental] If enabled, all instances will automatically accept prompts for claude code & aider
-h, --help help for claude-squad
-p, --program string Program to run in new instances (e.g. 'aider --model ollama_chat/gemma3:1b')
```
Run the application with:
```bash
cs
```
NOTE: The default program is `claude` and we recommend using the latest version.
Using Claude Squad with other AI assistants:
- For [Codex](https://github.com/openai/codex): Set your API key with `export OPENAI_API_KEY=`
- Launch with specific assistants:
- Codex: `cs -p "codex"`
- Aider: `cs -p "aider ..."`
- Gemini: `cs -p "gemini"`
- Make this the default, by modifying the config file (locate with `cs debug`)
#### Menu
The menu at the bottom of the screen shows available commands:
##### Instance/Session Management
- `n` - Create a new session
- `N` - Create a new session with a prompt
- `D` - Kill (delete) the selected session
- `↑/j`, `↓/k` - Navigate between sessions
##### Actions
- `↵/o` - Attach to the selected session to reprompt
- `ctrl-q` - Detach from session
- `s` - Commit and push branch to github
- `c` - Checkout. Commits changes and pauses the session
- `r` - Resume a paused session
- `?` - Show help menu
##### Navigation
- `tab` - Switch between preview tab and diff tab
- `q` - Quit the application
- `shift-↓/↑` - scroll in diff view
### FAQs
#### Failed to start new session
If you get an error like `failed to start new session: timed out waiting for tmux session`, update the
underlying program (ex. `claude`) to the latest version.
### How It Works
1. **tmux** to create isolated terminal sessions for each agent
2. **git worktrees** to isolate codebases so each session works on its own branch
3. A simple TUI interface for easy navigation and management
### License
[AGPL-3.0](LICENSE.md)
### Star History
[](https://www.star-history.com/#smtg-ai/claude-squad&Date)