> ## 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.

# Sessions

> Find an agent session, read its tokens and cost, and see who can reveal its content.

A session is one conversation in an agent harness, from the first prompt to the last response. When an agent starts subagents, their conversations belong to the session that started them.

A session goes from the harness to an uplink instance, then to Agent Golf as session data. The dashboard shows it on the Sessions page. With the local API on, the browser gets session content directly from the uplink instance.

Agent Golf stores session data and an opaque reference for each prompt, response, and tool output. When a
Self-Hosted Uplink instance has the local API on, the browser of a user who can reveal the session gets content
directly from that instance, and the content does not pass through Agent Golf servers. Content of the Cloud Uplink
instance goes to the browser through Agent Golf.

## Contributor

A session's contributor is the person who ran it. Agent Golf takes the contributor from the personal publishing key that the harness sends, never from the harness account or email. Once a session has a contributor, a key that arrives later does not change it.

The contributor sees the session as their own, and every **Contributor** column and filter shows this person. A session without a publishing key has no contributor and counts for the service user that sent it, for example **Uplink key**. The contributor of a session is not the same as the **Contributor** role.

## Before you begin

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

* **View Own Sessions** to open **Sessions** and your own sessions.
* **View Team Activity** to list all users' sessions and to filter by contributor.
* **View Team Sessions** to open other users' sessions.
* **Reveal Team Session Content** to reveal the content of other users' sessions.

## The Sessions page

Open **Sessions** in the sidebar. Sessions show while they are still active, and their totals update as new events arrive.

The tiles at the top show the model totals of the time range: **Cost**, **Requests**, **Models Used**, **Latency**, and **TTFT** (time to first token). Latency and TTFT are means over only the requests that measured them. The filters do not change these tiles.

**Recent Sessions** lists one session in each row: the contributor and harness, the session name, the model, the duration, the status, the [token usage](#token-usage), the cache hit rate, the throughput (tok/s), the cost, and the start time. When Linear is connected, a **Linked Issues** column shows each session's Linear issues.

The status shows the count of tool failures, or **Not measured** when the harness does not report tool calls. The line above the list shows the count and the known cost of the sessions that the list matches with its filters, over all its pages.

Filter the list by **Contributor**, **Harness**, **Model**, **Provider**, **Status** (**Errors Only**), or **Session Name or ID**. Sort it by start time, cost, tokens, cache hit rate, **Tool Failures**, or **Failure Rate**.

A row that shows **Explorer unavailable** is a session that you can list but not open.

## Session details

Select a session to open its details. The title is the session name. A session without a name shows the harness, for example "Codex Session". The header shows the **Conversation ID**, the ID that Agent Golf gave the session, and the **Native ID**, the ID that the harness gave it.

The page shows, in this order:

1. The tiles: **Cost**, **Duration**, **Tokens**, **Cache Hit Rate**, and **Tool Failures**.
2. **Model Usage**: one row for each model, with its **Provider**, **Requests**, **Tokens**, **Cache Hit Rate**, and **Cost**.
3. **Linear Issues**, when Linear is connected. See [Pull requests and sessions](https://docs.agent.golf/linear/dashboard-and-team.md#pull-requests-and-sessions).
4. **Pull Requests**: the pull requests that the session links to, with the share of the session's cost that goes to each. To add a link, see [Link a session by hand](https://docs.agent.golf/dashboard/attribution.md#link-a-session-by-hand).
5. **Cache Misses after Context Changes**, when request analysis of the session is complete and at least two requests read no cache after a provider change, a model change, or compaction. Prewarm requests, and requests without input tokens or cache writes, do not count. **Filter Cache Misses** shows those requests in **Events**.
6. **Timeline**: the model requests and tool calls in time order. Switch the chart between **Cost**, **Tokens**, **Latency**, and **Events**. Select a time range to filter **Events**.
7. **Events**: the session's events, split into **Timed Events** and **Untimed Events**. Select an event to see its details. The **Insights** button shows the insight points that Agent Golf adds to a session, for example the size of a tool payload. They are hidden by default.

When a session is older than your workspace's [**Session Detail** window](https://docs.agent.golf/account/data-retention.md#history-retention), the page shows **Session Detail Expired**. The session's totals stay.

## Token usage

**Tokens** shows the input, output, and reasoning tokens. Input includes uncached input tokens, cache reads, and cache writes. Output does not include reasoning tokens. Hover over a token count to see its type.

## Cache hit rate

**Cache Hit Rate** is the cache-read tokens divided by all input tokens. A **Cache Miss** is a request that had input but read no tokens from the cache. A Codex prewarm request, which only prepares the connection, is never a cache miss.

On the session page:

* The **Timeline** marks the cache misses under the chart. Select a marker to focus its time range.
* The **Cache Miss** button in **Events** shows or hides the cache misses.
* The details of a cache miss say when the provider or the model changed since the previous request, or when the miss came after compaction.

## Cost and the model catalog

**Cost** is the known cost of the model requests. When a harness reports a request's cost, Agent Golf keeps that value, even when it is zero. When a harness reports no cost, Agent Golf estimates it from the request's tokens and the catalog price at the time of the request. A request with no reported cost and no catalog price has no known cost, and it does not count in the cost totals.

The model catalog is the price list behind these estimates, and Agent Golf refreshes it from [models.dev](https://models.dev). Every signed-in user can open it under **Resources** in the sidebar:

* **Labs**: the AI labs and their models.
* **Providers**: the services that serve models, and each service's models.
* **Models**: each model, with its context size, its input and output types, its release date, and each provider's price per million tokens.

A model name on a dashboard page links to its catalog page. A model that the catalog does not list shows as text.

## HITL turns and AI lines

**HITL turns** (human-in-the-loop turns) are the distinct prompts that a person sent in the session. Claude Code, Codex, and GitHub Copilot send prompts. omp sends no prompts, so its sessions have no HITL turns.

**AI lines** are the lines that the session's edits added and removed. Only edits that did not fail count. Uplink counts the lines on your network, and only the counts go to Agent Golf. When Uplink cannot read an edit's content, for example because the harness does not export it, that edit is **not measured**.

The pull request metrics use HITL turns and AI lines. See [Pull request metrics](https://docs.agent.golf/dashboard/metrics.md#pull-request-metrics).

## Session content

Agent Golf stores an opaque reference for each prompt, response, and tool output, never the content itself. See [What Leaves Your Network](https://docs.agent.golf/getting-started/data-boundary.md). When a Self-Hosted Uplink instance has the [local API](https://docs.agent.golf/uplink/local-api.md) on, your browser gets the content directly from that uplink instance. See [Trust in the dashboard](https://docs.agent.golf/uplink/local-api.md#trust-in-the-dashboard). Without the local API, the dashboard shows session totals and timelines, but no content.

On the Cloud Uplink instance, the content goes from the Cloud Uplink instance through Agent Golf to your browser. See [Cloud Uplink](https://docs.agent.golf/uplink/cloud.md#session-content).

Who can reveal the content:

* You can reveal the content of your own sessions.
* With **View Team Sessions**, you can open other users' sessions, but not their content.
* With **View Team Sessions** and **Reveal Team Session Content**, you can also reveal their content.
* With only **View Team Activity**, you can list all users' sessions, but you cannot open them.

Agent Golf decides for each session who can reveal its content, and the uplink instance then returns the content. The same rules apply on every Self-Hosted Uplink instance and on the Cloud Uplink instance.


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