ashlr

ashlr__fleet_* tools

Fourteen MCP tools that let an agent read the Phantom agent fleet and queue audited requests to it. Reads are read-only; requests are appended to journals and never executed by the plugin.

Handlers: servers/fleet-*-server-handlers.ts, registered on the default ashlr router.

Phantom runs a fleet of coding agents in lanes of jobs. These tools give an agent in Claude Code, Codex, Cursor or Goose a compact view of that fleet and a narrow, audited way to ask for changes. Three rules hold for every tool here:

  • Fixed sources. Fleet state comes from ~/.ashlr/fleet (with a ~/.ashlr-runs fallback where noted). Callers pass job IDs, lane names and cursors, never paths.
  • Missing data stays explicit. When a source is missing or malformed, the tools say so instead of guessing.
  • Requests, not actions. The write-side tools only append a record to a journal for the fleet controller to review. The plugin never pauses, kills or reassigns anything itself.

Read the fleet

ashlr__fleet_state

Fleet targets, holds, the last 20 jobs and the latest leader event. With the ~/.ashlr-runs fallback, jobs under queue/run/ are split into live, ghost and held. No arguments.

ashlr__fleet_snapshot

Lanes, complete job records, PR links and the latest leader event, with the same fallback. Pass the returned cursor back to get only net changes and removed IDs.

FieldTypeRequiredDescription
cursorstringnoCursor from a previous snapshot; omit for a full snapshot.

ashlr__fleet_events

Polls typed dispatch and job events. The cursor is opaque and tracks each source separately; only complete lines are read.

FieldTypeRequiredDescription
cursorstringnoCursor from the previous call.
limitintegerno1 to 200 events (default 200).

ashlr__fleet_lanes

Lane targets, holds, job counts and source errors as JSON. No arguments.

ashlr__fleet_resources

Resource availability, cap headroom, slot targets, throughput and exhaustion estimates. A missing ledger, or one older than 60 seconds, is refreshed with ashlr resources --json. No arguments.

ashlr__fleet_ghosts

Ghost slots, stalled jobs, and reported versus live counts per lane from ~/.ashlr/fleet/runs. Unknown liveness is reported as unknown. No arguments.

ashlr__fleet_session

One job's metadata, metrics, live child jobs, PR, worktree and the last 150 log lines. Output is redacted.

FieldTypeRequiredDescription
job_idstringyesFleet job ID (letters, digits, _ and -, up to 128 characters).

ashlr__fleet_browser

Paged browser frames, the latest frame and the current URL for one job.

FieldTypeRequiredDescription
jobstringyesFleet job ID.
cursorstringnoCursor for polling newer frames.
limitintegerno1 to 200 frames (default 100).

ashlr__fleet_proposals

The steering proposal journal (~/.ashlr/fleet/steer-proposals.jsonl) and a count of skipped records. No arguments.

ashlr__fleet_dirty_triage

Ranks open PRs whose merge state is DIRTY (merge conflicts) as worth recutting, superseded or stale, with a reason code (C1 to C6) for each. It queries GitHub read-only through locus exec -- gh, so it needs a pinned Locus identity. Partial errors and truncation are reported.

FieldTypeRequiredDescription
reposstring[]noUp to 20 owner/repo names (default: the current repo).
staleDaysintegernoDays without activity before a PR counts as stale, 1 to 365 (default 14).

Ask the fleet for changes

Each request carries who asked and why. Lanes and job IDs must start with a letter or digit and may contain letters, digits, _, . and - (up to 128 characters). Slot counts run from 0 to 1024.

ashlr__fleet_act

Appends a request to ~/.ashlr/fleet/actions.jsonl. dry_run defaults to true, which records the request with status dry_run; pass false to record it as pending for the controller. A kill also adds one request per live child job, each naming the parent request.

FieldTypeRequiredDescription
actionstringyespause, resume, kill, reassign, slots or steer.
requested_bystringyesWho is asking (up to 512 characters).
reasonstringyesWhy (up to 512 characters).
lanestringno (per action)Required for pause, resume, reassign and slots.
job_idstringno (per action)Required for kill, reassign and steer.
slotsintegerno (per action)Required for slots.
messagestringno (per action)Required for steer: the steering message for the job (up to 512 characters).
dry_runbooleannoDefault true.

Each action accepts only its own fields; for example, pause rejects job_id.

{
  "tool": "ashlr__fleet_act",
  "arguments": {
    "action": "pause",
    "lane": "docs",
    "requested_by": "release-agent",
    "reason": "Hold docs work while the release is qualified"
  }
}

ashlr__fleet_intent

Appends an intent to ~/.ashlr/fleet/intents.jsonl. Same shape as ashlr__fleet_act without steer, message or dry_run, and the slot action is named set-slot.

FieldTypeRequiredDescription
actionstringyespause, resume, kill, reassign or set-slot.
requested_bystringyesWho is asking.
reasonstringyesWhy.
lanestringno (per action)Required for pause, resume, reassign and set-slot.
job_idstringno (per action)Required for kill and reassign.
slotsintegerno (per action)Required for set-slot.

ashlr__fleet_propose

Appends a steering proposal to ~/.ashlr/fleet/steer-proposals.jsonl for controller review. A duplicate of a pending proposal is rejected. Read the journal back with ashlr__fleet_proposals.

FieldTypeRequiredDescription
actionstringyesreassign or set-slots.
lanestringyesTarget lane.
authorstringyesWho is proposing (up to 200 characters).
reasonstringyesWhy (up to 512 characters).
job_idstringno (per action)Required for reassign.
slotsintegerno (per action)Required for set-slots.

ashlr__fleet_direction

Reads the project's direction file, or proposes a change to it. It works in the project the server was launched in, not in ~/.ashlr/fleet. Proposals are only appended to DIRECTION-PROPOSED.md; the tool never adopts a direction or writes VISION.md.

FieldTypeRequiredDescription
commandstringyesread or propose.
directionstringnoFor read: a .md file name in the project root (default VISION.md).
authorstringno (per command)Required for propose (up to 200 characters).
textstringno (per command)Required for propose: the proposed change (up to 8192 characters).

See also

  • /ashlr-fleet explains the Phantom fleet pane, local peers and governed model routing inside Claude Code.
  • Tools index lists all MCP tools with their one-line descriptions.