Command center
The command center is an Org Owner's or Org Admin's overview of their organization: projects and their health, people, agents, delivery, cost, quality and risks. Every endpoint takes range (1h, 24h, 7d, 30d, 90d or 1y; default 30d) and optionally one project id and one persona; an org parameter is refused with 403 and a project you cannot read answers 404.
Get each agent's best setup
Lists in `rows`, per persona, the best-ranked configuration from the outcome ledger (at least `min_n` judged outcomes) beside the current one: the project's default model with `project`, else the most-dispatched configuration; each with its success rate, cost per success and `n`, and `settings_link`, the project settings page where the default model is set. A persona whose best setup is already the current one is left out. Requires the Org Owner or Org Admin role and agent performance on the plan (else 403).
Get the command center's delivery
Returns what the range delivered: PRs merged, tasks done with no PR, lines added, removed and net, artifacts by kind, the epic funnel (epics reaching each stage) and median and 90th-percentile cycle time, with charts of no-PR reasons, artifacts by kind and tasks done. Takes `group_by` (`project`, `persona`, `model` or `user`) for the done chart. Requires the Org Owner or Org Admin role (else 403).
List the command center's deployments
Lists every project of the organization in `rows`: its last five merge-lane rows to the integration branch (`merges`, newest first, each `merged`, `failed`, `queued` or `testing` with its PR number, link and time; empty without a merge lane) and `ci`, the newest CI run on that branch read live through the caller's own forge account: `status`, `workflow`, `branch`, `at`, `url`, and a `reason` in words when the status is `unknown`. Requires the Org Owner or Org Admin role (else 403).
Get the command center's efficiency
Returns input, cache and output tokens, retries, failure rate, cost per merged PR, per thousand lines and per epic, and the spend on failed or re-queued runs, with charts of tokens by model and the 5-hour and 7-day quota of the organization's own accounts. Takes `group_by` (`project`, `persona`, `model` or `user`) for the tokens chart. Requires the Org Owner or Org Admin role (else 403).
Get the command center's AI spend
Returns AI spend for the range in dollars, with a per-bucket trend, the tokens on models with no price, and spend by project, persona and model. No subscription, invoice or machine cost is included. Requires the Org Owner or Org Admin role (else 403).
Get the command center's insights
Returns `flags`, every anomaly on the organization's daily spend, tasks created, failure rate and account quota against its 28-day baseline, strongest first, and `digest`, the organization's latest weekly AI summary of what changed (`week_start`, `status`, `bullets`), or null before the first one. Requires the Org Owner or Org Admin role (else 403).
Get the command center's outcome ledger tiles
Returns four outcome ledger metrics for tasks dispatched in the range, each with `previous`, its value over the range before: success rate, first-pass merge rate, defects per 100 merges and cost per success; each formula names its n and 95% interval. Requires the Org Owner or Org Admin role (else 403).
Get the command center overview
Returns the overview strip for the range: `active_projects`, `tasks_in_flight`, `failed_or_stuck` and `spend_usd` as metrics, and `worst_health` (the worst project's colour, id and name). A metric with no data has a null `value`, a `status` and a `reason`, never 0. Requires the Org Owner or Org Admin role (else 403).
List the command center's people
Returns the organization's people for the range: `metrics` (members, active people, active share, hands-off rate, human minutes per merged PR, median answer time), `rows` (one per member, those with no activity included: tasks created now and in the range before, tasks per day, done, success rate, PRs merged, net lines, tokens, AI spend, spend per done task, hands-off rate, median answer minutes, last active, and `mix`, tasks created per persona) and `project_rows` (the same per project, with its members and active people). An unknown figure is null, never 0. Requires the Org Owner or Org Admin role (else 403).
List the command center's AI employees
Lists each persona with work in the range or in flight now, in `rows`: its display label, tasks in flight, tasks done in the range, success rate and AI spend, with Tasks board links. Counts are the Tasks board's own. Requires the Org Owner or Org Admin role (else 403).
Get the command center's productivity
Returns the KPI metrics for the range, each with `previous`, its value over the range before: tasks done, success rate, zero-touch rate, median cycle time, cost per merged PR and the AI quality review score. Requires the Org Owner or Org Admin role (else 403).
Get the command center's progress
Returns tasks by state for the range (`states`, each with its Tasks board link; the counts equal `GET /api/tasks/counts` for the same filter), tasks created and done per bucket, and open epics with their pipeline stage. Requires the Org Owner or Org Admin role (else 403).
List the command center's projects
Lists every project of the organization in `rows`: active ones first, then by health, then by name. Each row has its health colour and factors (the newest CI run on the integration branch among them, read through the caller's own forge account), open tasks, tasks done in the range, AI spend, last merge time, a `reasons` map for fields with no data, and links to the project and the Tasks board. Requires the Org Owner or Org Admin role (else 403).
Get the command center's AI quality review
Returns the weekly AI quality review over the organization's delivered tasks: the average 1-5 score and the review count with their trends, the score `distribution`, the average per persona, the ten lowest-scored tasks with their reasons, the sample size and the review's next run. Requires the Org Owner or Org Admin role (else 403).
List the command center's risks
Lists failed tasks, tasks waiting on a person or paused past the stuck time, and merge-lane failures in `items`, newest first, each with its project, title, reason, `since` and link; and `anomalies`, the cost spikes and success-rate drops against their 28-day baseline. Requires the Org Owner or Org Admin role (else 403).