← 返回
AI智能 中文

Agent Squad 0.9.4

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:...
管理在tmux会话中运行的持久AI编码小组,具备任务队列、进度报告和自动健康监控功能。用于:
0xtimi
AI智能 clawhub v0.9.4 2 版本 100000 Key: 无需
★ 0
Stars
📥 819
下载
💾 9
安装
2
版本
#latest

概述

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:

CommandAction
------
/agent-squadShow squad dashboard (or Getting Started if none exist)
/agent-squad listList all squads
/agent-squad start my-squad claudeStart a squad
/agent-squad status my-squadCheck squad status
/agent-squad stop my-squadStop a squad
/agent-squad assign my-squad "add login page"Assign a task
/agent-squad ping my-squadNudge squad to report
/agent-squad delete my-squadArchive a squad
/agent-squad peek my-squadPeek at squad's live tmux screen
/agent-squad restart my-squadRestart 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 {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 : 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 {baseDir}/scripts/squad-assign.sh "<name>" "<title>" "<objective>" "<priority>"

Priority: critical / high / normal (default) / low

squad-status.sh

bash {baseDir}/scripts/squad-status.sh "<name>"

Also read latest report in ~/.openclaw/workspace/agent-squad/squads//reports/ — check ## Current section for real-time progress.

squad-peek.sh

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 {baseDir}/scripts/squad-ping.sh "<name>"

squad-stop.sh

bash {baseDir}/scripts/squad-stop.sh "<name>"

squad-list.sh

bash {baseDir}/scripts/squad-list.sh

squad-delete.sh

bash {baseDir}/scripts/squad-delete.sh "<name>"          # show summary
bash {baseDir}/scripts/squad-delete.sh "<name>" --confirm # confirm archive

squad-config.sh

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

版本历史

共 2 个版本

  • v0.9.4 当前
    2026-03-30 12:53 安全 安全
  • v0.9.1
    2026-03-11 17:08

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 836 📥 213,187
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 712 📥 243,883
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,358 📥 318,467