Coding Fleet
When the user mentions coding fleet, PR analyzer, or gives persona + pipeline for a repo path: call the appropriate tool in your first turn.
PR loop (review → fix → CI → merge)
For repos with pr_loop.enabled: true in .agent-fleet.yaml:
Poll all open fleet/* PRs once:
{
"workspace": "/absolute/path/to/repo",
"mode": "once"
}
Run full lifecycle for one PR (address review findings → wait CI → merge):
{
"workspace": "/absolute/path/to/repo",
"mode": "pr",
"pr_number": 42,
"skip_review_wait": true
}
Tool: coding_fleet_pr_loop
Requires gh authenticated, CURSOR_API_KEY, and pr_loop + pr_review in repo config. PRs touching .github/workflows/ auto-park for human review.
Fleet Scouts (intake — read only)
Product + technical discovery before dispatch:
{
"workspace": "/absolute/path/to/repo",
"depth": "light",
"product_context": "optional business context"
}
Tool: coding_fleet_scout
Then: coding_fleet_scope → coding_fleet_dispatch.
Scope fleet work (thermo-nuclear quality review)
Rank dispatchable tasks from open issues + large-file hotspots:
{
"workspace": "/absolute/path/to/repo",
"github_repo": "owner/repo",
"issue_limit": 20
}
Tool: coding_fleet_scope
Then dispatch top-ranked tasks with coding_fleet_dispatch.
PR reviews automatically include a quality pass using the bundled thermo-nuclear-code-quality-review skill (maintainability, 1k-line guardrails, code-judo).
Implement / review dispatch
{
"goal": "<what to change>",
"workspace": "/absolute/path/to/repo",
"persona": "coder",
"pipeline": "code_review",
"context": "<constraints, file hints, errors>"
}
Repos with pr_review.use_in_code_review: true in .agent-fleet.yaml automatically use the two-pass PR analyzer (Composer 2.5) for the review phase instead of the generic reviewer.
When pr_loop.enabled: true, code_review dispatch also auto-fixes review/verify failures, pushes the branch, and runs coding_fleet_pr_loop on the new PR.
PR analyzer only (no implementer)
Use when reviewing an existing branch or worktree diff:
{
"workspace": "/absolute/path/to/repo",
"base_branch": "main",
"output_format": "json"
}
Tool: coding_fleet_pr_review
Or dispatch with pipeline pr_review:
{
"goal": "Analyze current branch diff",
"workspace": "/absolute/path/to/repo",
"persona": "pr-analyzer",
"pipeline": "pr_review"
}
Execution backend (from fleet.yaml)
| default_backend | Key required | Model default |
|-------------------|--------------|---------------|
| cursor (default) | CURSOR_API_KEY | composer-2.5 |
| kimi | KIMI_API_KEY | kimi-for-coding |
| grok | grok login (no API key) | grok-4.6 |
| openrouter | OPENROUTER_API_KEY | backend default |
| qwen | QWEN_API_KEY | qwen3.8-max-preview |
| agnes | AGNES_API_KEY | agnes-2.5-flash |
| cmd | cmd login (no API key) | meituan/longcat-2.0:free |
| devin | devin auth login (no API key) | swe-2-high |
Pipelines
simple— implement onlycode_review— implement → scope → verify? → PR analyzer review (when repo configured)pr_review— analyze diff only (two-pass backend/security + frontend)full— plan → research → implement → verify → review
Repo tuning
Add to .agent-fleet.yaml:
pr_review:
enabled: true
use_in_code_review: true
overlay: agents/pr_review_overlay.md
area_prefixes:
frontend: [frontend/, web/]
backend: [src/, api/, packages/]
See docs/NEW-REPO.md in the agent-fleet repo for full setup.
Requirements
- Fleet config:
~/.agent-fleet/fleet.yaml - Cursor SDK backend:
CURSOR_API_KEYin the environment - Kimi backend:
KIMI_API_KEY+kimi-clion PATH,default_backend: kimi pip install -e /path/to/agent-fleet