> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devtune.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Use your tool and success checks

> Measure whether coding agents build a working integration with your tool, and whether they stay on it.

A **Use your tool** request asks agents to do the job with your tool named, such as "Add error tracking to this app with Sentry." After each of these runs, a success check builds or loads the test app to see whether the agent's integration works. The runs give two rates beside the pick rate: **Success** and **Stay**.

## The three rates

| Rate | Question | Counts | Requests |
| - | - | - | - |
| Pick rate | Do agents choose your tool? | Runs that picked your tool, over completed runs | Every request except Use your tool |
| Success rate | Does the integration work? | Runs whose check passed and whose change installed your tool, over runs whose check ran | Use your tool only |
| Stay rate | Once agents have your tool, do they keep it? | Runs that finished on your tool, over runs that started with it | Use your tool, and the other requests in test apps that already have your tool |

Pick rate leaves Use your tool requests out, so naming your tool in a request never raises it.

All three are worked out the same way: the average of each scenario's own rate, with a 90% likely range, and directional under 10 scenarios. See [Pick rates, install rates and likely ranges](https://docs.devtune.ai/agent-picks/reading-results.md#pick-rates-install-rates-and-likely-ranges). A rate with no scenario to count reads `Unmeasured`, never 0. A test copied from a public category has no Use your tool runs, so its Success rate reads `Unmeasured`.

A passing check isn't a success on its own, because the untouched test app passes too. A run whose check passed counts against the Success rate when the agent finished on another tool, built its own, or left your tool out of its change.

A run counts in the Success rate when its check passed, failed or didn't finish in its time limit. A run whose check couldn't decide is left out of the rate and counted as `Unmeasured`; see [How a check reads](#how-a-check-reads).

## Add a Use your tool request

The setup needs your tool selected. Add the request in Settings, a [setup file](https://docs.devtune.ai/agent-picks/run-on-your-machine.md#use-your-tool) or [the API and MCP](https://docs.devtune.ai/agent-picks/api-and-mcp.md#use-your-tool-and-success-checks).

1. Open **Settings › Agent Picks** and select **Edit** on the setup.
2. Under the requests, find **Use your tool** and select **Add**. DevTune drafts the request from your build request, with your tool named.
3. Edit the text if you need to. It must name your tool and no other tool you're testing.
4. Select **Save setup**.

A request that names a competitor, or doesn't name your tool, is refused with "A Use your tool request must name your tool and no other tool you're testing." Without a tool selected, the row says "Select your tool to add this request."

Full and Quick tests ask the Use your tool request with the setup's other requests, so it adds a scenario for each test app the test runs, and each agent and model, and raises their quotes. The starter test doesn't ask it. Use your tool runs aren't stopped early: each run goes on until the agent finishes, and the quote's expected estimate assumes every planned run of these scenarios.

## The success check

Each Use your tool run checks the test app twice:

1. **Before the agent starts**, on the untouched test app.
2. **After the agent exits**, on what the agent left.

The check is the test app's default check, when it's on, then your own command, when you set one. Both run from the test app's root, and both must pass. The result after the agent decides the run.

No API key or secret reaches the check. Each step runs without the agent's environment variables, and the agent's credential files are deleted before the check after the agent. Write your command to use a test mode or a mock. A step that needs a key reads `Unmeasured`.

### The default check

| Test app | Default check |
| - | - |
| Next.js, Next.js without agent instructions, Next.js with GitHub Actions | `npm run build`, which typechecks |
| TanStack Start | `npm run build`, then `tsc --noEmit` |
| SvelteKit | `npm run build`, then `svelte-check` |
| Express | A syntax check of every JavaScript file, then loads `app.js` |
| FastAPI, FastAPI on AWS | Compiles the app, then imports `main` |
| Rails, Rails 8 on your own servers, EU data | Boots the app in the test environment |
| Empty folder, Next.js with Supabase, and any other test app | None. Add a command, or these runs read `Unmeasured`. |
| Your repository, in a [self-run](https://docs.devtune.ai/agent-picks/run-on-your-machine.md#use-your-tool) | None. Add a command, or these runs read `Unmeasured`. |

The default check has 5 minutes for all its steps.

### Your check command

Add a command when building the app doesn't prove your integration works, or when the test app has no default check. For example, `node -e "require('@sentry/node')"` fails when the agent didn't install the package.

* One line, up to 1,000 characters.
* It runs after the default check, both before and after the agent.
* Its time limit is 10 to 300 seconds, 300 when you set none.
* It may name your tool, but not a competitor you're testing: "Your check command can't name a competitor you're testing. Your own tool is fine."

Before the agent starts, your command is expected to fail, since the integration isn't there yet. Its result before the agent is shown on the run page and never decides the run.

## How a check reads

| Reading | In the Success rate | What to do |
| - | - | - |
| **Passed** | Success when the change installed your tool, otherwise a failure | Nothing. |
| **Build failed**, **Typecheck failed**, **Check failed**, **Your check failed** | Failure | Open the run to see what the agent changed. |
| **Check didn't finish in** *N* **minutes** or **seconds** | Failure | Raise your command's time limit if your command needs longer. |
| **The test app doesn't build before the agent starts**, or **The test app's build doesn't finish before the agent starts** | `Unmeasured` | The untouched test app failed its default check. Turn the default check off and rely on your command, or choose another test app. |
| **Check command not found** | `Unmeasured` | Your command's program wasn't found after the agent. Fix the command. |
| **No check ran for this test. Add a check command.** | `Unmeasured` | The test app has no default check, or you turned it off, and the setup has no command. Add a command. |
| **The agent changed the check** | `Unmeasured` | The agent edited a file the default check runs, such as a build script in `package.json`, the framework config or `tsconfig.json`. Your command's files aren't watched. |
| **This check needs a key. Use a test mode or a mock in your check command.** | `Unmeasured` | The check failed on an environment variable the agent's change reads and nothing set, or your tool's domains refused it with a 401 or 403. |
| **The sandbox failed before the check could run** | `Unmeasured` | Run the test again. |
| **No check was recorded. Run a new test to record one.** | `Unmeasured` | The run is from a test before checks ran. Run a new test. |

A scenario where no run's check ran is left out of the Success rate, and shows `Unmeasured` with its reason.

## Read Success and Stay

**Overview** shows the **Success rate** and **Stay rate** beside the pick rate, each with its range, scenario count and a trend by test. They come from the test Overview shows, unless a completed paid test with Use your tool runs, never a re-test, finished after it: then from the newest such test, and the card says **From the test of** its date, with **View test**. When Overview shows a public category's test, or none, or the setup holds no Use your tool request, they come from the newest such test whenever it finished. While the setup holds a request and Overview shows the setup's own test, Success reads `Unmeasured` when that test has no Use your tool runs and no such test finished after it. A card can have nothing to measure: Success when the setup has no such request, and Stay when, besides, none of its test apps starts with your tool. When Overview shows **Latest test**, that card reads **Add a Use your tool request**, which opens the setup's form, for a member who can change the setup, and **No Use your tool request** for anyone else. When Overview shows the **Run a test** card, it says what the request would measure, with **Add request** for a member who can change the setup.

**Use** answers whether an integration works when agents are told to use your tool, and whether it sticks. It shows two numbers, then one table.

The **Success rate** card shows the rate, its range and scenario count, then:

* **Check ran** *N* **of** *M* **runs**, the check's coverage. When your command failed, hover it for **Your check failed in** *N* **of** *M* **runs**.
* **Passed on another tool** and **Passed with no integration**: runs whose check passed but that count against the rate.

The **Stay rate** card shows the rate over both of its parts, then each part with its runs and scenarios:

* **Finished on it**: the Use your tool runs whose change installed your tool.
* **Kept in place**: in test apps that start with your tool, the runs of other requests that picked it. With no such test app it reads `Unmeasured`; hover it for the reason. To measure it, select a [test app](https://docs.devtune.ai/agent-picks/set-up.md#test-apps) that already has your tool.

**Use your tool by test app and agent** has a row per test app and a column per agent and model. Each cell is one Use your tool scenario:

| Reading | Counts |
| - | - |
| *N* **of** *M* **worked** | Runs that succeeded, of the runs whose check ran: the scenario's Success |
| *N* **failed** | Runs whose check failed or didn't finish in its time limit |
| *N* **didn't stay** | Runs that didn't finish on your tool: the rest of the scenario's Stay |
| *N* **Unmeasured**, a reason | Completed runs whose check couldn't decide, with the reason most of them share, such as **Needs a key** |

A count of 0 is left out. A cell where no check ran reads `Unmeasured` with its reason, then its didn't stay count, since Stay doesn't need the check. The readings overlap: a run that failed its check and didn't stay counts in both. **Didn't stay** doesn't mean the agent switched tools. It includes runs where nothing was replaced, such as a run that passed with no integration, and the counts don't record which tool a run ended on. Because the table holds only Use your tool scenarios, its didn't stay counts add up to **Finished on it**'s runs less those that finished on your tool, not to the Stay rate, which also counts **Kept in place**.

Hover a cell for its passes on another tool and with no integration, the runs that left after a failure on your tool, how many checks failed (and how many of those your command failed) and timed out, and the full reason its unmeasured runs share. Select a cell to open the test's runs.

**Edit check**, for a member who can change the setup, opens its **Success check** in Settings.

Use reads the same test as the Overview's cards. With `?test=` and a test's id, it reads that test, and when Use shows its cards, the Success card names the test's date with **View test**. After you remove the Use your tool request, the rates it measured still show, from the newest test with Use your tool runs, with its date and **View test**, and **Add request** for a member who can change the setup.

Without a Use your tool request, when the test Use reads has no Use your tool scenarios, Use shows the Success card's **Add a Use your tool request** (**No Use your tool request** for a member who can't change the setup), the Stay rate from **Kept in place**, and the table reads "Unmeasured: no Use your tool request". A test with Use your tool scenarios still shows its rates and its table rows. When the test Use reads has no Use your tool scenarios and none of your test apps starts with your tool either, Use shows only "No Use your tool request" and, for a member who can change the setup, **Add request**.

A test page's **Runs** table has a **Check** column for Use your tool runs. A run's page has a **Success check** block: the default check and your command, before and after the agent, with the failure, exit code, duration and time limit. A test's page shows its Pick, Success and Stay rates.

A Use your tool run's console opens with **Use** from the moment the run is queued: whether the agent used your tool as asked, switched to another tool (named), built its own, chose no provider, added a tool DevTune doesn't recognise, or installed nothing in the code change DevTune stored. Its success check result sits beside it once the check is recorded, and the evidence for the outcome sits under **Why**, from the run's transcript when it's shown. **Use** reads `Unmeasured` until the run is classified, when the run has no outcome (it failed, was cancelled or wasn't classified), when the test has no tool set as yours, and when the outcome can't say whether the agent used a tool: the agent only named a tool in its answer, or a tool was already in the test app and the agent left it unchanged. Success doesn't count either as a success on your tool, and Stay counts either as a run that didn't stay.

Overview and Use read DevTune's hosted tests. Use your tool runs you [run on your machine](https://docs.devtune.ai/agent-picks/run-on-your-machine.md#use-your-tool) and upload show their rates on their own test's page, apart from hosted tests.

The Success and Stay trends mark **Test apps changed**, **Use your tool request changed** and **Check changed** at a test with Use your tool runs whose test apps, request text or a test app's check changed from the latest earlier test with Use your tool runs. A test without Use your tool runs carries none of these markers. Compare tests across a marker with care.

## Set the check

New setups start with the default check on and no command.

* **Settings.** In **Settings › Agent Picks**, edit the setup and find **Success check**. Turn **Default check** on or off, and under **Your command** select **Add a command**, **Edit** or **Remove**. Settings shows the command's time limit; set it in a setup file or over the API.
* **Setup file.** `check.default`, `check.command` and `check.timeout`. See [Run tests on your machine](https://docs.devtune.ai/agent-picks/run-on-your-machine.md#use-your-tool).
* **API and MCP.** The `check` object on the setup and job saves. See [API and MCP](https://docs.devtune.ai/agent-picks/api-and-mcp.md#use-your-tool-and-success-checks).

Tests already queued keep the check they started with.

## Turn it off

| To remove | In Settings | In a setup file | Over the API and MCP |
| - | - | - | - |
| The Use your tool request | **Remove** beside the request | Delete `requests.use`, then `push` | `requests.use: "omitted"` |
| The default check | Set **Default check** to **Off** | `check.default: false`, then `push` | `check.default: false` |
| Your command | **Remove** under **Your command** | Delete `check.command` and `check.timeout`, then `push` | `check.command: null` and `check.timeout: null` |

With the default check off and no command, Use your tool runs aren't checked, and their Success reads `Unmeasured`. Earlier tests keep their results.

## Next steps

* [Run a Use your tool request on your machine](https://docs.devtune.ai/agent-picks/run-on-your-machine.md#use-your-tool)
* [Read Success and Stay over the API and MCP](https://docs.devtune.ai/agent-picks/api-and-mcp.md#use-your-tool-and-success-checks)
* [Reading results](https://docs.devtune.ai/agent-picks/reading-results.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.