Skip to main content
Agent Picks is available through the REST v2 API and MCP server. Use these when your own agent or reporting tool needs the same measurements you read in the app. Start with API authentication, or connect an agent through the MCP server guide. Access requires Agent Picks on the account and access to the project. agent_picks.run covers everything that spends credits. Add it to an API key under API Keys; an MCP connection asks for it when you connect. Every change also needs a member who can manage the project: the member signed in through MCP, or the member who created the API key. That member needs DevTune management permission on the account and edit rights on the project, so a key stops working for changes when its creator leaves or loses either.

Read results

Read the latest completed test’s pick and install rates with the summary:
Each rate’s rate, rate_low and rate_high are the pick rate and its likely range. install_rate, install_rate_low and install_rate_high are the install rate. found is the tool’s Found in: reached_runs of completed_runs minus unavailable_runs, with its rate and range, and null where the test didn’t record it. The test cells read returns it on each scenario’s tools. Report the range and coverage with every rate: rates use completed runs only, and incomplete_cells lists the cells where fewer runs completed than were planned. Check test.scope: public means the figures come from your category’s public test, not your own. A null rate is not measured, never 0.

Copies and the public board

A setup copied from a public category carries copied_from, that category’s category_id, slug and name; it is null for a setup you started blank. edited.requests and edited.recognition say whether the setup’s requests, request ending or contexts, and its tool recognition, have been edited since it was created. public_board compares a full test of the copy with the category’s latest public results, scenario by scenario. It reads the summary’s test when that is a full test, else the copy of the public results fast track made. comparable_cells of total_cells compare; both are 0 when the copy has neither a full test nor fast track’s copy of the public results. reasons names what differs in the rest, never who changed it: public_board.board_rank is the board’s own ranking, in the order the public leaderboard lists its rows: by pick rate, with Built its own and No provider chosen as rows like any tool. own_rank is your tool’s row, counting from 1, and null when the board doesn’t list it. leader is the first row: its outcome is installed with the tool’s tool_key and display_name, or built_its_own or no_provider with both null. board_rank is null when the public results couldn’t be read; the rest of the summary still returns. Say your tool ranks on the board only when comparable_cells is at least 1; otherwise report leader as the board’s result. public_board is null for a blank setup and for a category without public results.

Choosing a setup

A project can have several setups, one for each category or custom job. Every setup-scoped read and change takes an optional setup: the setup’s id, or its category’s slug. Pass it as a query parameter on reads and on Clear, and in the body on other changes. MCP tools take the same setup argument.
  • With one setup, setup is optional and existing calls work unchanged.
  • With several and no setup, the call is refused with 400 and reason agent_picks_setup_required. details.setups lists the project’s setups (id, category_slug, category_name), so you can retry with one of them.
  • A setup the project doesn’t have is refused with 404 and reason agent_picks_setup_not_found, with the same details.setups.
  • Responses echo the setup they used as setup. A read of one named test, run or Action ignores setup and echoes the setup that test belongs to. A removed setup’s test stays readable by test_id, including its summary, and echoes setup as null.

Adding, changing and removing setups

PUT /agent-picks/setup (devtune_save_agent_picks_setup) saves a setup for a public category:
  • Without setup, it updates the project’s setup for category_id, or adds one when the project has none for that category. A new setup is your project’s own copy of DevTune’s setup for the category: its requests and how it recognizes each tool.
  • With setup, it updates that setup. A setup’s category can’t change: saving it with a category another setup already uses is refused with 409 and reason category_in_use, and with any other category_id with 409 and reason category_fixed. Add a setup for the other category instead.
PUT /agent-picks/job (devtune_save_agent_picks_job) saves a custom job the same way. Without setup, it updates the project’s custom job with the same job line (ignoring case and surrounding spaces), or adds a setup for a new job. With setup, it updates that setup. A project can have as many custom jobs as you need. A job with a source_category_id is your project’s copy of that category, and a project has one copy per category. Without setup, the save updates that copy whatever its job line, or adds one. A job without a source category never updates a copy by its job line. With setup, a source_category_id another setup’s copy already has is refused with 409 and reason category_in_use, and changing or clearing the source_category_id of that setup’s own job with 409 and reason category_fixed. A copy can keep the name it was copied with and hold the tools it copied plus seven more. A job without a source category holds up to seven tools and a job line of at least 8 characters. A copy or custom job may also change what it asks and how it recognizes tools. Each part is left unchanged when absent:
  • requests, by intent: the text, or "omitted" to leave that request out. Saving a left-out request’s text asks it again. At least one request stays active, and only a setup that has had an improve request takes one.
  • request_ending: what follows every request. An empty string sends requests as written.
  • recognition: tools, each {tool_key, signals} for a tool the setup already measures, and building_blocks.
A public board’s setup takes none of these. The save returns the saved requests, request_ending and recognition; saving them as they stand changes nothing, so an unedited copy stays comparable with its board. A save is refused with names_tool, rule_matches_starter, building_block_tool, invalid_pattern, setup_changed or customer_requests_off; see Refusal reasons. DELETE /agent-picks/setup (devtune_clear_agent_picks_setup) removes one setup. With several setups, pass setup. The setup’s tests and results stay readable, its schedule stops, and its suggested Actions that nobody has accepted are removed. Removing a setup that is already gone is a no-op.

Start a test

Every start needs its own quote, so an agent can never spend credits in one call.
  1. Quote with POST /agent-picks/tests/quote (devtune_quote_agent_picks_test). Pass test options (preset, runs_per_cell, scope) for a test, action_id alone for an Action’s re-test, or schedule alone for a schedule. The quote spends nothing and returns the estimate in credits, the agents your plan leaves out, a quote_token and expires_at. A test quote also returns test_id.
  2. Show the estimate to a human and get approval for the most the test may reserve.
  3. Start with POST /agent-picks/tests (devtune_start_agent_picks_test), passing quote_token and that approved amount as max_credits. For a schedule, PUT /agent-picks/schedule with cadence, quote_token and max_credits.
  4. Follow the test with GET /agent-picks/test?test_id= (or test_id on devtune_get_agent_picks_test), even after another test starts. It reports status, the estimate, and the credits reserved, settled and refunded.
Quote a full test with an empty object, or a Quick test with {"preset":"quick"}:
The response carries the estimate in credits and the token to start with. estimate.high is what the start reserves:
After a person approves the estimate, start the test with the token and the approved maximum:
A refused start returns the reason and what to do about it. With too few credits:
Over MCP, call devtune_quote_agent_picks_test with the same arguments, then devtune_start_agent_picks_test with quote_token and max_credits. The tools return the same bodies. See Refusal reasons for every reason. A quote token lasts 15 minutes and works only for the API key or MCP connection, and the project, it was quoted for. It works once:
  • A retry of a start with the same token returns existing and reserves nothing more. To start another test, quote again.
  • A schedule token is used up when the schedule saves. Reusing it is refused, even after you turn the schedule off or clear and recreate the setup.
The start re-quotes. If the setup or the re-test baseline changed since the quote, it is refused with estimate_changed: quote again. Otherwise it reserves the fresh high estimate. Settlement never charges more than that reservation, so max_credits caps what the test can cost. On a schedule, max_credits applies to each run, not to a month. Starting a paid test or enabling a schedule is not available in MCP code mode.

Endpoints and tools

Every Agent Picks endpoint is in the API reference, from Get Agent Picks summary onwards, with its MCP tool named in the MCP server guide. REST paths are relative to https://devtune.ai/api/v2. Each endpoint page gives its parameters, response fields and refusals.

Read measurements

The endpoint pages define every field. These rules apply across them:
  • Not measured is never zero. A null rate, count or verdict is not measured. A tool the test didn’t recognize has measured: false. Unfinished tests keep their coverage but carry no rates.
  • Compare like with like. Compare tests only when their judging_key values are equal and not null, and show a change between two tests only when their comparison_key values are equal. Break trend lines where judging changes. Show projects_added and projects_removed, the projects a test added and removed, as an event on the trend without breaking the line. Show requests_changed, each request (intent, before, after) the test reworded, left out (after is null) or asked again (before is null), and ending_changed, the request ending before and after, as events the same way; their comparison_key differs, so don’t show a change across them. A recognition edit changes judging_key, so it breaks the line.
  • Verdicts carry their rule. The cells read, one entry per scenario, and the summary return decision_method, the rule their loss and lead verdicts were decided by, and re-test results return method. Results are never restated under a newer rule. Runs whose pick was an unmatched-code guess are counted in fallback_runs and left out of verdicts.
  • Observations, never causes. Run evidence records what the sandbox saw, not why an agent chose a tool or whether its integration worked. Request and job text, search terms, file paths, raw commands, error text and artifacts are withheld; a withheld or empty field doesn’t mean the activity didn’t happen.
  • Credits, not dollars. No Agent Picks read returns model cost in dollars. The paid-test endpoint reports what a test reserved, charged and refunded in credit micros, at 1,000,000 micros per credit. See the API migration guide.

Schedules

Read GET /agent-picks/schedule (devtune_get_agent_picks_schedule) for the cadence, the next UTC run, and the estimate per run and for the next calendar month against included plan credits. Every Agent Picks plan supports daily, weekly and monthly schedules. Daily tests run at midnight UTC, weekly on Monday and monthly on the first. To schedule tests, quote with schedule set to the cadence, then PUT /agent-picks/schedule (devtune_enable_agent_picks_schedule) with cadence, the quote_token and max_credits. DELETE the same path (devtune_disable_agent_picks_schedule) to return to on-demand tests.
  • Saving confirms the quoted test and its high credit reservation. Each run reserves its fresh quote when it is at or below the confirmed amount. A higher quote skips the period until you review the estimate and save again.
  • Each run reserves credits like an on-demand paid test. A credit shortfall skips that period and emails the account owner with a link to buy a pack. There are no automatic purchases.
  • The newest skipped period includes its reason and a recovery action. A project manager can re-confirm a permission change, and incomplete setup links back to setup. The notice clears when a later period succeeds or scheduling is turned off.
  • Periods more than one cadence interval late advance without a catch-up test. Disabled accounts are left untouched.
  • Included credits match the monthly grant; trialing plans contribute zero.
Read history (devtune_get_agent_picks_history) for earlier scheduled and on-demand tests.

Changes

The settings endpoint changes the agent/model selections of an existing setup. It does not create the setup or start a test. Pi and OpenCode need Agent Picks Pro or Enterprise. On another plan, adding either returns 403 with reason agent_not_in_plan; choices saved before a downgrade stay saved, and paid tests leave them out. The setup endpoint adds or updates a setup for a public category, as Adding, changing and removing setups describes, and clearing the last setup leaves the project with none until one is saved again. The catalogue lists what the setup wizard in the app offers: published categories with their tools, the environments, and the agents with their models. An environment with category_ids can be saved only with one of those categories; one without it works with any category. default_selected is false for a project a new setup leaves unticked, such as one with hosting or requirements: add its id to environment_ids to test it. prompt_prefix is what agents are told before every request there, and starts_with names the host whose deploy setup the project starts with; each is null when there’s none. A retired environment isn’t listed, and a setup that already holds one keeps it. included_in_plan is false for an agent the account’s plan refuses with agent_not_in_plan. For a custom job, draft the job and each tool’s signals, then save the job. A draft is a proposal: nothing reaches a test until you save. Pass other_tools when drafting a tool to have the draft propose relationships: the job’s tools that this tool’s own site says it runs inside, each with the sentence and page it was read from. A save that makes a tool yield back to itself through signals.yieldsTo is refused with 400. signals.dismissedYieldsTo keeps the suggestions dismissed or removed for that tool, so the app doesn’t suggest them again until either tool is drafted again; it never changes how runs are classified. To confirm one, add its yields_to to that tool’s signals.yieldsTo before saving: a run that uses both tools then counts as the yields_to tool. Run detail’s pick.overlapping_tools names the tools an ambiguous run used. Drafts share the project’s allowance of 60 an hour with the app, and are refused while DevTune support has paused the account.

Cancelling and refunds

DELETE /agent-picks/tests/{testId} cancels a paid test or re-test. Queued runs stop at once. Running runs keep their reservation until they finish and settle, so credits can return a little later: refunded_micros and released_at on the test show when they have. A repeat returns cancelled again. Starter tests cannot be cancelled. You can cancel a test and turn a schedule off while the account is paused.

Starter test

POST /agent-picks/starter-test starts the free starter test on the saved setup. Each confirmed account-owner work domain gets one. Starting it uses that allowance, and a failed or cancelled starter test does not give it back.

Refusal reasons

Refused changes return an error with reason. The MCP tools return the same body. A request body that is not valid JSON, or an empty body, is refused with 400 and error: "bad_request" but no reason, before anything is quoted, reserved or drafted. The starter test takes no fields, so it also accepts an empty body; a malformed one is still refused.