Fleet 1.13 is herePipeline orchestration, Brain daemon, and 136 agent templates.Read the release notes →
Fleet

API Reference

Complete reference for Fleet's MCP protocol, fabric event types, agent environment variables, and filesystem data paths.

MCP Protocol

The MCP server implements JSON-RPC 2.0 over stdio. It supports three standard MCP methods:

initialize

Handshake method. Returns server capabilities and protocol version.

⮚ {"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05"}}
⮘ {"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2024-11-05","capabilities":{"tools":{}}}}

tools/list

Returns all 26 tool definitions with parameter schemas.

⮚ {"jsonrpc":"2.0","id":2,"method":"tools/list"}
⮘ {"jsonrpc":"2.0","id":2,"result":{"tools":[{"name":"fleet_status","description":"...","inputSchema":{...}}, ...]}}

tools/call

Execute a tool with arguments. Returns text content.

⮚ {"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"fleet_agent_start","arguments":{"name":"frontend-dev"}}}
⮘ {"jsonrpc":"2.0","id":3,"result":{"content":[{"type":"text","text":"Agent frontend-dev started"}]}}

Fabric Events

Structured events published to the fabric event bus. Agents subscribe to these to trigger autonomous actions.

Event TypeSourceDescription
ticket_createdPM / PO agentA new ticket was created on GitHub
ticket_readyLabel watcherTicket has the 'ready' label (15-min dedup)
ticket_shippedLabel watcherTicket has the 'shipped' label
pr_createdDeveloper agentA pull request was created
pr_needs_reviewLabel watcherPR has the 'needs-review' label (15-min dedup)
pr_approvedReviewer agentA PR was approved by a reviewer
pr_changes_requestedReviewer agentA reviewer requested changes on a PR
pr_mergedRelease managerA PR was merged to the main branch
pipeline_startedPipeline engineA pipeline run was started
pipeline_stage_completePipeline engineA pipeline stage completed
pipeline_completePipeline engineAn entire pipeline run completed
pipeline_failedPipeline engineA pipeline run failed
agent_startedActions layerAn agent's tmux session was created
agent_stoppedActions layerAn agent's tmux session was terminated
eval_completeBrain daemonAgent evaluation scoring finished
risk_alertBrain daemonAgent risk score exceeded threshold
agent_quarantinedBrain daemonAgent was automatically disabled

Work-in-progress dedup

Labels classified as work-in-progress (ready, needs-review, changes-requested) use 15-minute expiring dedup to prevent duplicate events. On watcher startup, WIP dedup entries are flushed for instant crash recovery.

Agent Environment Variables

These environment variables are set on the tmux session when an agent is launched:

VariableDescription
FLEET_AGENT_NAMEAgent name
FLEET_AGENT_ROLEAgent role (from config)
FLEET_AGENT_DEPARTMENTAgent department
FLEET_AGENT_REPORTS_TOAgent's manager
FLEET_PROJECTPrimary repo (e.g., Org/repo)
FLEET_REPOSComma-separated repos (org agents only)
FLEET_OWNERGithub username of the human owner
FLEET_SESSIONtmux session name
FLEET_WORKDIRWorking directory (repo agents only)
FLEET_PRODUCT_NAMEProduct name from config
FLEET_PRODUCT_DESCRIPTIONProduct description from config
FLEET_PUBLISH_CMDCommand to publish fabric events
FLEET_TRIGGER_EVENTEvent that triggered this agent (subscription-started)
FLEET_TRIGGER_PAYLOADJSON payload of the triggering event
FLEET_TASK_TITLETask description (from fleet task assign or pipeline)
FLEET_RUN_IDPipeline run ID (only during pipeline tasks)
FLEET_TASK_IDPipeline task ID (only during pipeline tasks)
FLEET_PIPELINE_STAGECurrent stage name (only during pipeline tasks)
FLEET_SIGNAL_CMDCommand to signal completion (only during pipeline tasks)

Data Paths

Fleet stores configuration, state, and runtime data in these locations:

PathPurpose
~/.team-dashboard/fleet.dbSQLite database (override: TEAM_DASHBOARD_DB_PATH)
~/.team-dashboard/org.yamlOrg-level agent config
~/.team-dashboard/prompts/Org agent prompt files
~/.team-dashboard/watcher.pidRepo watcher daemon PID
~/.team-dashboard/org-watcher.pidOrg watcher daemon PID
~/.team-dashboard/fleet.sockFabric unix socket
~/.team-dashboard/brain.sockBrain daemon unix socket
~/.team-dashboard/brain.pidBrain daemon PID file
.fleet/config.yamlRepo-local fleet config
.fleet/prompts/Repo-scoped prompt overlays
~/.claude/skills/fleet/Fleet skill library

Fleet Skills

Reusable workflow skills installed at ~/.claude/skills/fleet/. Skills publish structured decision events to fabric.

SkillUsed byDescription
/fleet-dev-taskAll developersBranch, implement, test, PR, handle review feedback
/fleet-review-prtech-lead, qa-leadFind PRs, checkout, review, approve/request changes
/fleet-ship-prrelease-managerMerge APPROVED PRs only, close issues, ship labels
/fleet-create-ticketPMs, POs, CMODedup check, rejection check, fleet-ticket helper
/fleet-hireCPO, CTO, CMOOrg review, rejection check, hiring ticket template