CodePanel
get_agent_records

get_agent_records

The CodePanel MCP tool that returns each coding agent's record over 30 or 90 days: findings fixed and disputed, rounds to green, merges, spend.

On this page›

get_agent_records returns how each coding agent's pull requests went under review over the last 30 or 90 days: the same figures as the Records page (/autopilot/records). It reads only reviews CodePanel already ran, so it changes nothing, makes no model call, and calling it twice gives the same answer.

When to call it

  • To choose an agent or model: compare agents on findings fixed, disputes won, rounds to green and spend per pull request, next to your account's figures and CodePanel's measured baseline.
  • To check your own record: an agent that rates findings with --agent (or the MCP client's name) has a row under that label.
  • To compare your own coding agents: source: "own" lists the agents you set up in Autopilot by their runs: how many tasks became a change, the share whose first run passed its checks, dollars and time per change, and how often each asked you.
  • Before trusting a figure: skip any whose low is true; its sample is under the minimum.

Inputs

Input Type Required Description
days 30 or 90 no Window in days: 30 (default) or 90
detail boolean no Add trend, recent pull requests and published figures
limit integer, at most 50 no Agents per page, default 10
cursor string no nextCursor from the previous page
source all or external or own no all (default); own: your coding agents by their runs; external: agents by --agent

It only reads: the server marks it readOnlyHint: true, so clients that ask before a write can run it without asking.

days is 30 or 90 and defaults to 30. source is all (the default), own or external. limit is 1 to 50 and defaults to 10. Pass the nextCursor of one page as cursor, with the same days, to get the next. The ranking is scored again on each call. The cursor fingerprints the agents listed before it; if a rating between pages reordered them, the cursor is refused rather than skipping or repeating an agent, and you start again without it.

What it returns

The tool lists an output schema and answers with structured content in that shape, as well as the same JSON as text.

Field Meaning
days, since The window, and its start in epoch milliseconds
truncated true when a read cap left out the oldest pull requests in the window
minFindings, minPrs The samples under which a figure is marked low
account The figures over every reviewed pull request in the window, whoever worked it
baselines CodePanel's own measured rounds, greenAfterRound1, reBlock and spendPerPr, with measuredOn and source
detail Whether the agents below carry trend, recent and published
source The filter the page was read with
roles Your own agents' runs summed per role (role, agents, runs); empty with source: "external", which reads no runs
total, nextCursor Agents across every page, and the cursor for the next page (null on the last)
agents This page of agents: external ones first, most pull requests first, then your own, most changes first; each below

Each agent has:

Field Meaning
agent Its stable key: a public agent's slug (claude-code, codex, cursor, ...) when the label is one of its known names, else the label as the agent gave it
known true when CodePanel publishes figures for it
source external for an agent that rates findings with --agent; own for one of your Autopilot agents, keyed by its codingAgentId
name, role Your own agent's name and role; null for an external agent (name is null too once the agent is removed)
runs Your own agent's runs that ended in the window, null for an external one: tasks, runs, changes, merged (changes through a merged pull request), prsOpened, firstTry (share of tasks whose first run succeeded with its checks passed and no question for the owner left unanswered), usdPerChange and msPerChange (every run, failed ones included, per change), ownerInterrupts, interruptsPerRun and usd. A change is a task whose pull request merged or, while local runs commit to a branch without opening one, whose run succeeded with a commit. A subtask the agent ran as a team's subagent counts as one of its tasks: a step up from another member is its second attempt, so never a first try
figures prs, merged, findings, escapes, disputes counts, and figures as { value, n, low }: shares from 0 to 1 (fixed, dismissed, disputed, disputesWon, greenAfterRound1, reBlock) and means (rounds, roundsToGreen, spendPerPr in USD, escapesPerPr). value is null with no sample; spendPartial says spend is a floor
trend With detail: weekly prs, findings and fixed
recent With detail: its latest pull requests by repo and number, with reviewId, merged, rounds, what it answered, fixed and disputed, spendUsd and escapes. Read one with get_review
published With detail: CodePanel's figures for that agent across accounts, or null
repos, recentTasks With detail, your own agents: runs per repository, and the latest tasks it ran itself, not subtasks (taskId for get_task, status, change, merged, firstTry, prNumber, usd)

Errors

A bad days, limit, cursor or detail fails with code invalid_input, the field in fields, and nextAction, the call that would work (for a malformed cursor, or one whose earlier agents moved since its page, call again without it; for one from the other window, call again with its days). A token without read fails with missing_scope.

The same step without MCP

Surface Form
HTTP API GET /autopilot/records with the read scope
CLI codepanel records [--days 30|90] [--detail] [--limit n] [--cursor c]

What the server tells your agent

The description your agent reads when it lists the tools:

Use it to choose which agent or model to hand work to, or to check an agent's own record; not for one pull request (get_review) or for the reviewers' quality (get_quality). Compares coding agents over the last 30 or 90 days, the figures on /autopilot/records: external agents (Claude Code, Codex, Cursor, your own --agent labels; source external) by how their pull requests went under CodePanel review, and your own coding agents (source own, keyed by codingAgentId) by their runs in runs: tasks, changes, firstTry pass rate, usdPerChange, msPerChange and owner interrupts, plus the review of any pull request their runs opened. A change is a task whose pull request merged or, until runs open pull requests, whose run succeeded with a commit. Reads only, makes no model call. Compact by default: each agent's key and figures, the account's figures and CodePanel's baselines; detail: true adds each agent's weekly trend, recent pull requests (repo, number, reviewId for get_review) and published cross-account figures. External agents come first, most pull requests first, then yours, most changes first; roles sums your agents' runs per role, and detail adds repos and recentTasks for yours. limit sets agents per page (default 10, at most 50). For the next page, pass nextCursor as cursor with the same days; if the agents before it were reordered since, the cursor is refused (invalid_input) and you start again without it. Every figure is { value, n, low }: shares 0 to 1 (fixed, dismissed, disputed, disputesWon, greenAfterRound1, reBlock) or means (rounds, roundsToGreen, spendPerPr in USD, escapesPerPr); skip a figure whose low is true. A bad input fails with code invalid_input and nextAction, the call to make instead.

Last updated