SWAT autonomous squad orchestration. Use when: dispatching tasks, checking operation status, managing squads/intake, or monitoring task completions. Covers dispatch workflow, debrief notifications, scheduling, and marketplace operations.
SWAT dispatches tasks to autonomous AI squads powered by GitHub Copilot CLI. Each squad is a domain specialist that works independently in the background.
| Command | Purpose |
|---|---|
swat --version | Show installed version |
| Tool | Purpose |
|---|---|
swat_dispatch | Dispatch a task (auto-classified to the right squad) |
swat_ops | List operations (supports status/since/limit/offset filters), returns counts |
swat_cancel | Cancel a running operation |
| Tool | Purpose |
|---|---|
swat_squads | List installed squads |
swat_squad_browse | List squads available in the marketplace |
swat_squad_install | Install a squad from the marketplace |
swat_squad_uninstall | Uninstall a squad and clean up dependencies |
swat_squad_update | Update an installed squad to the latest marketplace version |
| Tool | Purpose |
|---|---|
swat_intake_create | Create a scheduled recurring task (zero LLM cost) |
swat_intake_list | List all intake queue entries |
swat_intake_delete | Delete an intake queue entry |
swat_dispatch(brief). Squad is auto-classified. Returns an operation ID immediately.Use SWAT's built-in intake queue for deterministic, zero-LLM-cost recurring tasks:
swat_intake_create(brief="分析紫金矿业601899", cron="0 9 * * 1", timezone="Asia/Shanghai")
min hour dom month dowimmediate: Set to true to trigger the first run right away (default: false)Use swat_intake_list to view all entries and swat_intake_delete(id) to remove one.
When to use SWAT scheduler vs OpenClaw cron:
Squads automatically notify the user when they finish or fail. Use swat_ops to check status on-demand when the user asks.
swat_ops only when the user asks about a task, or when you have a natural reason to check (e.g., heartbeat).sleep, polling loops, or repeated exec calls to wait for completion.swat_ops returns counts + operations. Filters:
status — queued, active, completed, failedsince — RFC3339 timestamp, only returns terminal ops after this time; active/queued always includedlimit — max results (default 50)offset — skip first N results (default 0)sleep X && check or similar patterns.swat_dispatch auto-classifies the task.swat_squad_browse — See what's available to install.swat_squad_install(squad) — Downloads squad + resolves dependencies automatically.swat_squad_uninstall(squad) — Removes squad blueprint + cleans up orphaned dependencies.swat_squad_update(squad) — Update to latest marketplace version.If SWAT tools are not available, guide the user to install:
curl -fsSL https://raw.githubusercontent.com/LangSensei/swat/main/install.sh | bash
Then restart OpenClaw. After that, install a squad: swat_squad_install("squad-name").
Before the first dispatch, verify GitHub auth is set up (required for Copilot CLI):
gh auth status
If not authenticated, guide the user to run gh auth login first.