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

# Find Wasted Spend

> Find the tool calls, CI re-runs, cache misses, and repeated failures that add cost without moving work forward.

Part of your agent spend adds cost without moving the work forward. This page tells you where the dashboard shows each kind of waste, and what to look for.

## Before you begin

* **View Own Sessions** to open **Sessions**, **Model Requests**, and **Diagnostics**. With **View Team Activity**, these pages cover all users. Without it, they cover only your own sessions.
* **View Pull Requests and Repositories** to see the CI runs and their cost.

See [Default roles](https://docs.agent.golf/account/users.md#default-roles) for the roles that include these permissions.

## Tool and MCP calls

The agent sends each tool result back to the model, so each tool call leads to more model requests that you pay for. An MCP tool counts as a tool call like a built-in tool.

* **Diagnostics > Tools**: **Top Tools** shows up to ten tools with their **Calls**, **Failures**, and **Failure Rate**. Look for the tools with the most calls. An MCP tool shows under the tool name that the harness reports, next to the built-in tools.
* **Model Requests**: set **Type** to **Tool Call** and sort by **Cost** to see what the requests after tool calls cost.

Agent Golf shows calls and failures for each tool, but no cost for each tool, and it does not group MCP calls apart from other tool calls. See [Tools](https://docs.agent.golf/dashboard/diagnostics.md#tools) and [Model Requests](https://docs.agent.golf/dashboard/model-requests.md#what-the-page-shows).

## CI re-runs

Agents push often, and each push and each re-run runs your workflows again. Each run attempt adds its own minutes and cost.

* **Pull Requests**: **CI Retry Rate** shows the share of re-runs, and **CI Over Time** shows when it rose. See [Cost and CI tiles](https://docs.agent.golf/dashboard/pull-requests.md#cost-and-ci-tiles).
* On a pull request page, the **CI Runs** card marks each **Re-run** and shows **Spent on failed jobs**. **Agent Sessions vs. CI** marks the runs on commits made during a linked session as **Agent Commit**.

Look for pull requests with a high CI cost and many re-runs or failed jobs. See [Find the pull requests where re-runs drive CI cost](https://docs.agent.golf/dashboard/ci-costs.md#find-the-pull-requests-where-re-runs-drive-ci-cost).

## Cache misses

Most providers charge less for cache reads than for uncached input. A request that reads nothing from the cache pays again for context that the cache could have served. A provider change, a model change, or compaction can cause it.

* **Needs Attention** on the **Dashboard** shows "Cache hit rate is ..." when the rate is low. **View Model Usage** opens **Diagnostics > Models**, which shows the cache hit rate of each model. See [Needs Attention](https://docs.agent.golf/dashboard/overview.md#needs-attention).
* **Sessions** and **Model Requests**: sort by cache hit rate, lowest first, to find the sessions and the requests that read the least from the cache.
* On a session page, **Cache Misses after Context Changes** shows the requests that read no cache after a provider change, a model change, or compaction. See [Session details](https://docs.agent.golf/dashboard/sessions.md#session-details) for when the card shows. The **Timeline** marks each **Cache Miss**.

See [Cache hit rate](https://docs.agent.golf/dashboard/sessions.md#cache-hit-rate).

## Repeated failures

A failed tool call does not move the work forward, and the agent usually sends another model request to try again. A tool that fails often adds this cost to every session that uses it.

* **Needs Attention** shows "Tool failure rate is ..." when the rate is high or rose. **View Tool Failures** opens **Diagnostics > Tool Failures**.
* **Diagnostics > Tool Failures**: **Repeated Failures** lists each tool that failed, with its **Failures** and **Affected Sessions**. Select a row in **Recent Failures** to open the session at that failure.
* **Sessions**: set **Status** to **Errors Only** to list the sessions with at least one tool failure.

Look for one tool with many failures across many sessions. See [Find the tool that fails most](https://docs.agent.golf/dashboard/diagnostics.md#find-the-tool-that-fails-most).


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