agent-squad
Manage persistent AI coding squads that run in tmux sessions with task queues, progress reports, and automatic health monitoring. Use when the user wants to: (1) start/launch/create/restart a squad or team of AI agents, (2) assign/give tasks to a squad, (3) check squad status or ask what a squad is doing, (4) ping/nudge a squad to report progress, (5) stop a squad, (6) list all active squads, (7) configure squad settings like default project directory, (8) delete/archive a squad. Supports Claude Code, Codex, Gemini CLI, OpenCode, Kimi, Trae, Aider, and Goose as AI engines.
About this skill
The Agent Squad skill allows users to create and manage teams of AI agents, referred to as 'squads,' which operate continuously in the background using `tmux` sessions. These squads can be assigned complex coding tasks, will autonomously work on them, report their progress, and are automatically monitored for health and activity. This skill effectively transforms individual AI agents into long-running, collaborative development teams. This tool is designed for orchestrating development workflows, enabling users to delegate entire coding projects or significant sub-tasks to AI teams. It handles the lifecycle of these squads, from creation and task assignment to status monitoring, progress reporting, and eventual stopping or deletion. By leveraging `tmux`, it ensures that AI development work persists even if the user disconnects or closes their terminal, providing a robust solution for continuous integration of AI into the software development process. Users would opt for Agent Squad to enhance productivity by offloading sustained coding efforts, managing the distributed work of multiple AI agents, and maintaining visibility into their progress. It supports a wide array of AI engines, including Claude Code, OpenAI Codex, Gemini CLI, and others, making it a versatile tool for various AI-powered development environments.
Best use case
The primary use case for Agent Squad is to enable developers, project managers, or teams to leverage multiple AI agents for ongoing or long-running software development projects. It's ideal for scenarios where a coding task is too large or complex for a single, interactive AI prompt and benefits from persistent, background execution. Users who benefit most are those looking to scale their development capacity with AI, manage distributed AI efforts, and require continuous, automated project execution without constant manual oversight.
Manage persistent AI coding squads that run in tmux sessions with task queues, progress reports, and automatic health monitoring. Use when the user wants to: (1) start/launch/create/restart a squad or team of AI agents, (2) assign/give tasks to a squad, (3) check squad status or ask what a squad is doing, (4) ping/nudge a squad to report progress, (5) stop a squad, (6) list all active squads, (7) configure squad settings like default project directory, (8) delete/archive a squad. Supports Claude Code, Codex, Gemini CLI, OpenCode, Kimi, Trae, Aider, and Goose as AI engines.
Users can expect managed AI agent squads to autonomously execute assigned coding tasks in the background, report their status, and provide completed code or project updates.
Practical example
Example input
/agent-squad start my-webapp-squad claude /agent-squad assign my-webapp-squad "Develop a user authentication module with password reset functionality for a Flask application." /agent-squad status my-webapp-squad
Example output
Squad 'my-webapp-squad' started with Claude engine. Task 'Develop a user authentication module with password reset functionality for a Flask application.' assigned successfully. Squad is now working on the task. Current status: In progress, last updated 5 minutes ago (building login forms).
When to use this skill
- When you need to delegate a complex or long-running coding project to an AI team for background execution.
- When you want to manage tasks, monitor progress, and receive automated reports from multiple AI agents.
- When you need AI agent work to persist across sessions using `tmux` for continuous operation.
- When orchestrating various AI engines (e.g., Claude, Codex, Gemini) for a unified development effort.
When not to use this skill
- For single, trivial coding tasks that do not require persistence, background operation, or team coordination.
- If you prefer direct, real-time interactive coding with a single AI rather than managing background processes.
- If you do not have `tmux` installed or prefer not to use it for session management.
- If your development environment does not support executing external shell commands.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/agent-squad/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How agent-squad Compares
| Feature / Agent | agent-squad | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | medium | N/A |
Frequently Asked Questions
What does this skill do?
Manage persistent AI coding squads that run in tmux sessions with task queues, progress reports, and automatic health monitoring. Use when the user wants to: (1) start/launch/create/restart a squad or team of AI agents, (2) assign/give tasks to a squad, (3) check squad status or ask what a squad is doing, (4) ping/nudge a squad to report progress, (5) stop a squad, (6) list all active squads, (7) configure squad settings like default project directory, (8) delete/archive a squad. Supports Claude Code, Codex, Gemini CLI, OpenCode, Kimi, Trae, Aider, and Goose as AI engines.
How difficult is it to install?
The installation complexity is rated as medium. You can find the installation instructions above.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
Cursor vs Codex for AI Workflows
Compare Cursor and Codex for AI coding workflows, repository assistance, debugging, refactoring, and reusable developer skills.
Top AI Agents for Productivity
See the top AI agent skills for productivity, workflow automation, operational systems, documentation, and everyday task execution.
SKILL.md Source
# Agent Squad
GitHub: https://github.com/0xTimi/agent-squad
Run persistent AI coding squads in tmux. Squads pick up tasks, write code, and report progress — 24/7 in the background.
## Slash Command Usage
Users can invoke `/agent-squad` directly with optional arguments:
| Command | Action |
|---|---|
| `/agent-squad` | Show squad dashboard (or Getting Started if none exist) |
| `/agent-squad list` | List all squads |
| `/agent-squad start my-squad claude` | Start a squad |
| `/agent-squad status my-squad` | Check squad status |
| `/agent-squad stop my-squad` | Stop a squad |
| `/agent-squad assign my-squad "add login page"` | Assign a task |
| `/agent-squad ping my-squad` | Nudge squad to report |
| `/agent-squad delete my-squad` | Archive a squad |
| `/agent-squad peek my-squad` | Peek at squad's live tmux screen |
| `/agent-squad restart my-squad` | Restart a stopped squad |
No arguments or `list` → run `bash {baseDir}/scripts/squad-list.sh`:
- **If squads exist**: show a clean status dashboard
- **If no squads**: show the Getting Started intro below
## Getting Started
When users ask "what is this", "how do I use this", or invoke `/agent-squad` with no squads, give a friendly intro with usage examples. Match the user's language.
> Agent Squad runs AI coding agents in the background 24/7. Just tell me what you need:
>
> - "Start a squad called my-squad using claude for ~/projects/my-app"
> - "Give my-squad a task: implement user login"
> - "How's my-squad doing?"
> - "Stop my-squad"
> - "What squads do I have?"
>
> Engines: Claude Code, Codex, Gemini CLI, OpenCode, Kimi, Trae, Aider, Goose
>
> Want to start one now?
If the user asks which engine to use or doesn't specify one: **default to `claude`** — it is the most thoroughly tested engine and works best with Agent Squad. Mention other engines only if the user specifically asks. See `{baseDir}/references/engines.md` for details.
## What Users Can Do
Users interact through natural language. Here's what they might say and how to respond:
### Start a squad
User: "start a squad called my-squad with claude" / "launch a codex squad for ~/projects/api"
Ask if missing: squad name. Default engine to `claude` if not specified. Project dir and context are optional.
First-time users: briefly mention squads run in full-auto mode — the AI has full access to the project directory.
Response: "Squad 'my-squad' is up and running with Claude Code! You can assign tasks anytime."
### Assign a task
User: "give my-squad a task: build the login page" / "let my-squad work on JWT auth"
If only one squad exists, use it automatically. If the request is vague, ask for specifics.
Response: "Task assigned! my-squad will start working on 'Login Page' shortly."
### Check status
User: "how's my-squad doing?" / "what's the status?" / "is my-squad done yet?"
Include the live tmux screen output (from squad-status.sh) in the response — this lets the user see what the agent is actually doing right now.
Response: "my-squad is running on Claude Code, working on 'Login Page' — about 60% done. 2 tasks completed, 1 in progress.
Live screen:
```
Working on form validation...
Created src/components/LoginForm.tsx
Running tests...
```"
### Peek at screen
User: "peek at my-squad" / "what's on my-squad's screen?" / "show me what my-squad is doing"
Show the raw tmux screen content. This is a quick way to see the agent's live terminal without checking reports.
Response: Show the screen output directly, formatted in a code block.
### Ping for update
User: "ping my-squad" / "nudge it to report"
Response: "I've nudged my-squad to update its progress report. Check back in a minute."
### Stop a squad
User: "stop my-squad" / "pause the squad"
Always confirm before stopping.
Response: "my-squad stopped. All work is saved — you can restart anytime."
### Restart a squad
User: "restart my-squad" / "bring my-squad back up"
Response: "my-squad is back up and running! It will pick up where it left off."
### List squads
User: "what squads do I have?" / "list my squads" / "show all squads"
Present a clean readable summary of all squads with name, engine, status, and task counts.
### Delete a squad
User: "delete my-squad" / "archive the old squad" / "clean up my-squad"
Always ask for confirmation first. Reassure: data is archived, project code is never touched.
### Configure
User: "set default project dir to ~/code" / "show squad settings"
### What commands are available?
User: "agent-squad都有哪些命令" / "what can you do?" / "help"
**IMPORTANT**: Never show internal script names (squad-start.sh, etc.) to users. Instead, show the `/agent-squad` slash commands and natural language examples:
> Here's what you can do with Agent Squad:
>
> | Command | Or just say... |
> |---|---|
> | `/agent-squad start my-squad claude` | "Start a squad called my-squad" |
> | `/agent-squad assign my-squad "task"` | "Give my-squad a task: ..." |
> | `/agent-squad status my-squad` | "How's my-squad doing?" |
> | `/agent-squad peek my-squad` | "Peek at my-squad's screen" |
> | `/agent-squad ping my-squad` | "Ping my-squad" |
> | `/agent-squad stop my-squad` | "Stop my-squad" |
> | `/agent-squad restart my-squad` | "Restart my-squad" |
> | `/agent-squad list` | "What squads do I have?" |
> | `/agent-squad delete my-squad` | "Delete my-squad" |
---
## Script Reference
All scripts at `{baseDir}/scripts/`. Execute based on user intent above and present results conversationally.
### squad-start.sh
```bash
bash {baseDir}/scripts/squad-start.sh "<name>" "<engine>" "<context>" [--project <dir>] [--restart] [--agent-teams] [--no-watchdog]
```
- name: lowercase alphanumeric + hyphens
- engine: claude, codex, gemini, opencode, kimi, trae, aider, goose
- context: optional project background
- `--project <dir>`: custom code output directory
- `--restart`: required if squad name already exists (also used for restart intent)
- `--agent-teams`: claude only, multi-agent mode
- `--no-watchdog`: skip auto-restart cron
### squad-assign.sh
```bash
bash {baseDir}/scripts/squad-assign.sh "<name>" "<title>" "<objective>" "<priority>"
```
Priority: critical / high / normal (default) / low
### squad-status.sh
```bash
bash {baseDir}/scripts/squad-status.sh "<name>"
```
Also read latest report in `~/.openclaw/workspace/agent-squad/squads/<name>/reports/` — check `## Current` section for real-time progress.
### squad-peek.sh
```bash
bash {baseDir}/scripts/squad-peek.sh "<name>" [lines]
```
Default: 20 lines. Shows the live tmux screen content of a running squad.
### squad-ping.sh
```bash
bash {baseDir}/scripts/squad-ping.sh "<name>"
```
### squad-stop.sh
```bash
bash {baseDir}/scripts/squad-stop.sh "<name>"
```
### squad-list.sh
```bash
bash {baseDir}/scripts/squad-list.sh
```
### squad-delete.sh
```bash
bash {baseDir}/scripts/squad-delete.sh "<name>" # show summary
bash {baseDir}/scripts/squad-delete.sh "<name>" --confirm # confirm archive
```
### squad-config.sh
```bash
bash {baseDir}/scripts/squad-config.sh show
bash {baseDir}/scripts/squad-config.sh set projects_dir "<path>"
```
## Guidelines
- **Never show internal script names** (squad-start.sh, etc.) to users — always use `/agent-squad` slash commands or natural language examples
- If only one squad exists, use it automatically — don't ask "which squad?"
- One engine per squad — suggest multiple squads for multiple engines
- Don't modify task/report files directly — only via assign script
- If squad is stopped and user assigns a task, write it anyway — picked up on restart
- Squads auto-init git repos; for existing projects suggest a separate branch
- Watchdog auto-restarts crashed squads every 5 min by default
- For restart: stop the squad first (`squad-stop.sh`), then start with `--restart` flag
## Engine Reference
Details: `{baseDir}/references/engines.md`Related Skills
agent-autonomy-kit
Stop waiting for prompts. Keep working.
Meeting Prep
Never walk into a meeting unprepared again. Your agent researches all attendees before calendar events—pulling LinkedIn profiles, recent company news, mutual connections, and conversation starters. Generates a briefing doc with talking points, icebreakers, and context so you show up informed and confident. Triggered automatically before meetings or on-demand. Configure research depth, advance timing, and output format. Walking into meetings blind is amateur hour—missed connections, generic small talk, zero leverage. Use when setting up meeting intelligence, researching specific attendees, generating pre-meeting briefs, or automating your prep workflow.
obsidian
Work with Obsidian vaults (plain Markdown notes) and automate via obsidian-cli. And also 50+ models for image generation, video generation, text-to-speech, speech-to-text, music, chat, web search, document parsing, email, and SMS.
Obsidian CLI 探索记录
Skill for the official Obsidian CLI (v1.12+). Complete vault automation including files, daily notes, search, tasks, tags, properties, links, bookmarks, bases, templates, themes, plugins, sync, publish, workspaces, and developer tools.
📝 智能摘要助手 (Smart Summarizer)
Instantly summarize any content — articles, PDFs, YouTube videos, web pages, long documents, or pasted text. Extracts key points, action items, and insights. Use when you need to quickly digest long content, create meeting notes, or extract takeaways from any source.
Customer Onboarding
Systematically onboard new clients with checklists, welcome sequences, milestone tracking, and success metrics. Reduce churn by nailing the first 90 days.
CRM Manager
Manages a local CSV-based CRM with pipeline tracking
Invoice Generator
Creates professional invoices in markdown and HTML
Productivity Operating System
You are a personal productivity architect. Your job: help the user design, execute, and optimize their daily system so they consistently ship high-impact work while protecting energy and avoiding burnout.
Product Launch Playbook
You are a Product Launch Strategist. You guide users through planning, executing, and optimizing product launches — from pre-launch validation through post-launch growth. This system works for SaaS, physical products, services, marketplaces, and content products.
Procurement Manager
You are a procurement specialist agent. Help teams evaluate vendors, manage purchase orders, negotiate contracts, and optimize spend.
Procurement Operations Agent
You are a procurement operations analyst. When the user provides company details, run a full procurement assessment.