fleet
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese/fleet
/fleet
Fleet orchestration — manage coding agents (Claude Code, Copilot, Amplifier) running across multiple Azure VMs via azlin.
Invoke as or just describe what you want and Claude will pick the right command.
/fleet <command>集群编排——通过azlin管理运行在多台Azure VM上的编码Agent(Claude Code、Copilot、Amplifier)。
可通过调用,或直接描述需求,Claude会自动选择合适的命令。
/fleet <command>All Commands
所有命令
Status & Monitoring
状态与监控
| Command | What it does |
|---|---|
| Quick text overview of all VMs and sessions |
| Discover, adopt, dry-run reason, show report |
| Point-in-time capture of all managed sessions |
| Live snapshot of a single session |
| Observe sessions with pattern classification |
| Interactive Textual TUI dashboard |
| 命令 | 功能 |
|---|---|
| 所有VM和会话的快速文本概览 |
| 发现、接管、试运行原因分析、生成报告 |
| 捕获所有托管会话的即时状态 |
| 单个会话的实时状态快照 |
| 对会话进行模式分类监控 |
| 交互式文本TUI仪表盘 |
Admiral Control
全局控制
| Command | What it does |
|---|---|
| LIVE — reason and execute actions on sessions |
| Show what the admiral would do (no action) |
| Single PERCEIVE->REASON->ACT cycle |
| Run autonomous admiral loop |
| 命令 | 功能 |
|---|---|
| 实时操作——分析会话并执行对应操作 |
| 展示全局控制器将执行的操作(无实际执行) |
| 执行单次PERCEIVE->REASON->ACT循环 |
| 启动自主全局控制循环 |
Session Management
会话管理
| Command | What it does |
|---|---|
| Bring existing tmux sessions under management |
| Propagate auth tokens (GitHub, Azure, Claude) |
| 命令 | 功能 |
|---|---|
| 将现有tmux会话纳入管理 |
| 同步授权令牌(GitHub、Azure、Claude) |
Task Management
任务管理
| Command | What it does |
|---|---|
| Queue work for the fleet |
| Show task queue |
| Project-level tracking |
| Generate fleet status report |
| 命令 | 功能 |
|---|---|
| 为集群添加待执行任务 |
| 查看任务队列 |
| 项目级跟踪 |
| 生成集群状态报告 |
Projects & Knowledge
项目与知识管理
| Command | What it does |
|---|---|
| Manage fleet projects |
| Track a GitHub issue as a project objective |
| Sync objectives from GitHub issues by label |
| Fleet knowledge graph summary |
| 命令 | 功能 |
|---|---|
| 管理集群项目 |
| 将GitHub议题作为项目目标跟踪 |
| 根据标签从GitHub议题同步目标 |
| 集群知识图谱概览 |
Co-Pilot
副驾驶功能
| Command | What it does |
|---|---|
| Show copilot lock/goal state |
| Show copilot decision history |
| 命令 | 功能 |
|---|---|
| 查看Copilot锁定/目标状态 |
| 查看Copilot决策历史 |
Quick Reference
快速参考
| User says | Command |
|---|---|
| "What are my agents doing?" | |
| "Show me the fleet" | |
| "Send next steps to all sessions" | |
| "Advance without confirmation" | |
| "Watch what dev/cybergym is doing" | |
| "Add auth to the new VM" | |
| "Queue this task for the fleet" | |
| "Track issue #42 for myapp" | |
| "Sync objectives from GitHub" | |
| "Open the dashboard" | |
| 用户提问 | 对应命令 |
|---|---|
| “我的Agent在做什么?” | |
| “展示我的集群状态” | |
| “向所有会话发送下一步指令” | |
| “无需确认直接推进” | |
| “监控dev/cybergym的操作” | |
| “为新VM添加授权” | |
| “为集群添加这个任务” | |
| “跟踪myapp的#42号议题” | |
| “从GitHub同步目标” | |
| “打开仪表盘” | |
Key Options
核心选项
fleet scout [--session vm:session] [--vm VM] [--skip-adopt] [--incremental] [--save PATH]
fleet advance [--session vm:session] [--vm VM] [--force] [--save PATH]
fleet dry-run [--vm VM ...] [--backend auto|anthropic|copilot|litellm]
fleet adopt <vm> [--sessions s1 s2]
fleet watch <vm> <session> [--lines 30]
fleet auth <vm> [--services github azure claude]
fleet add-task "prompt" [--priority high] [--repo URL]
fleet start [--interval 300] [--max-cycles 10]fleet scout [--session vm:session] [--vm VM] [--skip-adopt] [--incremental] [--save PATH]
fleet advance [--session vm:session] [--vm VM] [--force] [--save PATH]
fleet dry-run [--vm VM ...] [--backend auto|anthropic|copilot|litellm]
fleet adopt <vm> [--sessions s1 s2]
fleet watch <vm> <session> [--lines 30]
fleet auth <vm> [--services github azure claude]
fleet add-task "prompt" [--priority high] [--repo URL]
fleet start [--interval 300] [--max-cycles 10]Environment
环境变量
| Variable | Required for |
|---|---|
| All commands (auto-detected if azlin on PATH) |
| scout, advance, dry-run, run-once, start |
| 变量 | 用途 |
|---|---|
| 所有命令都需要(若azlin在PATH中可自动检测) |
| scout、advance、dry-run、run-once、start命令需要 |
Admiral Configuration
全局控制器配置
- Model: Claude Opus 4.6 ()
claude-opus-4-6 - Max output tokens: 128,000 (reasoning JSON)
- Context gathered per session: full tmux scrollback + first 50 & last 200 transcript messages
- Safety: 57 dangerous-input patterns blocked (with safe allow-list), confidence thresholds (60% send_input, 80% restart), --confirm default on advance
- Docs:
docs/fleet-orchestration/ADMIRAL_REASONING.md
- 模型: Claude Opus 4.6 ()
claude-opus-4-6 - 最大输出令牌数: 128,000(推理JSON)
- 每个会话收集的上下文: 完整tmux回滚记录 + 前50条和后200条对话消息
- 安全设置: 拦截57种危险输入模式(含安全白名单),置信度阈值(60%发送输入,80%重启),advance命令默认启用--confirm确认
- 文档:
docs/fleet-orchestration/ADMIRAL_REASONING.md
Status Icons
状态图标
| Icon | Status | Meaning |
|---|---|---|
| thinking | Agent is actively processing |
| running | Agent producing output |
| idle | Agent at prompt, waiting for direction |
| shell (dead agent) | No agent detected in this session |
| suspended | Agent backgrounded but alive |
| error | Error detected in session output |
| completed | Agent finished its task |
| waiting input | Agent asked a question, awaiting response |
| 图标 | 状态 | 含义 |
|---|---|---|
| 思考中 | Agent正在主动处理任务 |
| 运行中 | Agent正在生成输出 |
| 空闲 | Agent处于提示符状态,等待指令 |
| 无Agent(会话失效) | 该会话中未检测到Agent |
| 已挂起 | Agent被后台运行但仍存活 |
| 错误 | 会话输出中检测到错误 |
| 已完成 | Agent已完成任务 |
| 等待输入 | Agent提出问题,等待响应 |
Performance & Architecture
性能与架构
- Sequential VM polling: Session discovery from (no SSH). Pane capture via sequential SSH
azlin list - Cached SSH output: Scout caches Phase 1 tmux captures for Phase 3 reasoning (no double-poll)
- Incremental scout: flag skips unchanged sessions using
--incremental~/.amplihack/fleet/last_scout.json - Bastion tunnel reuse: Reuses existing SSH tunnels via instead of creating new ones
get_existing_tunnels() - PR URL detection: Uses on remote VM for reliable PR detection from git state
gh pr list - Health metrics in reasoning: wired into
fleet_health.pyfor admiral decisionsSessionContext - Unified status classifier: Single canonical classifier in (no dual TUI/CLI divergence)
_status.py - Modular CLI: Commands split across ,
_cli_session_ops.py,_cli_scout_advance.py(each under 400 LOC)_cli_formatters.py - Project grouping: Scout report groups sessions by registered project with open objectives displayed
- 顺序VM轮询: 通过发现会话(无需SSH),通过顺序SSH捕获面板内容
azlin list - SSH输出缓存: Scout在第1阶段缓存tmux捕获结果用于第3阶段推理(避免重复轮询)
- 增量探测: 标志会跳过未更改的会话,使用
--incremental记录~/.amplihack/fleet/last_scout.json - 堡垒机隧道复用: 通过复用现有SSH隧道,而非创建新隧道
get_existing_tunnels() - PR URL检测: 在远程VM上使用从git状态中可靠检测PR
gh pr list - 推理中的健康指标: 接入
fleet_health.py用于全局控制器决策SessionContext - 统一状态分类器: 中包含单一标准分类器(TUI与CLI无分歧)
_status.py - 模块化CLI: 命令拆分到、
_cli_session_ops.py、_cli_scout_advance.py(每个文件不超过400行代码)_cli_formatters.py - 项目分组: Scout报告按已注册项目将会话分组,并显示未完成目标
How to Run
运行方式
Execute via Bash:
bash
fleet <command> [options]通过Bash执行:
bash
fleet <command> [options]Presenting Results
结果展示
After running or , present the output to the user as:
fleet scoutfleet advance-
Summary table — reformat the CLI output into a clean markdown table with columns: VM | Session | Status | Action | Conf | Summary
-
Proposed inputs — for anydecisions, show what the admiral wants to send
send_input -
Follow-up commands — always end with the actionable next steps from the report:
- to send next command to all sessions
fleet advance - to review each before executing
fleet advance --confirm - to advance one specific session
fleet advance --session vm:session - to inspect specific sessions
fleet watch <vm> <session>
运行或后,按以下格式向用户展示输出:
fleet scoutfleet advance-
摘要表格——将CLI输出重新格式化为清晰的Markdown表格,包含列: VM | 会话 | Status | 操作 | 置信度 | 摘要
-
建议输入——对于所有决策,展示全局控制器想要发送的内容
send_input -
后续命令——始终在报告末尾提供可执行的下一步操作:
- 向所有会话发送下一条命令
fleet advance - 先逐个审核再执行
fleet advance --confirm - 推进单个指定会话
fleet advance --session vm:session - 查看指定会话详情
fleet watch <vm> <session>