Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
281 changes: 281 additions & 0 deletions agent-experience-beta.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,281 @@
---
title: "Agent Experience beta guide"
description: "Set up Agent Experience (AX) during the private preview: write stories, run coding agents against your docs, and fix the pages where agents get stuck."
keywords: ["Agent Experience", "AX", "beta", "private preview", "coding agents", "agent onboarding", "stories", "findings"]
noindex: true
---

<Info>
Agent Experience is in private preview. Features, limits, and pricing may change before general availability. Send feedback from the **Send feedback** button on the Agent Experience page, or contact your Mintlify team.
</Info>

Agent Experience (AX) shows you how coding agents use your docs. You describe a task that a real user would try, like making a first API call or turning on a feature. AX runs coding agents such as Claude Code, Codex, and opencode against that task in a fresh sandbox, using only your public docs. Each run reports whether the agent reached the finish line, which pages it read, how it rated them, and where it got stuck.

Use AX to:

- Catch docs problems that block agents, like wrong header names, missing setup steps, or broken links.
- Check that onboarding still works after you publish changes.
- Compare how different agents and models handle the same task.

<Frame>
<img
alt="The Agent Experience page showing the Stories tab with five stories, their status, and the top issue for each."
className="block dark:hidden"
src="/images/agent-experience/stories-light.png"
/>
<img
alt="The Agent Experience page showing the Stories tab with five stories, their status, and the top issue for each."
className="hidden dark:block"
src="/images/agent-experience/stories-dark.png"
/>
</Frame>

## Before you begin

- Your Mintlify team turns on Agent Experience for your project during the beta. If you don't see it in your dashboard, ask your Mintlify contact.
- AX tests public docs sites. It doesn't support Base projects yet.
- Runs use your organization's [AI credits](/credits). See [Credits and limits](#credits-and-limits).

## Terms

| Term | Meaning |
| --- | --- |
| Story | A task an agent tries using only your public docs. A story has a prompt, a finish line, a schedule, and the harnesses and models to run on. |
| Run | One attempt at a story by one harness and model. Each run happens in a fresh sandbox with no prior context. |
| Harness | The coding agent that runs the task: Claude Code, Codex, or opencode. |
| Finish line | The condition that means the agent succeeded, for example "One authenticated request returns a 2xx response." |
| Finding | A docs problem that an agent reported on a specific page, with a severity from 1 to 5. |
| Health | The agent's confidence in its result, from 1 to 5. A run is **Healthy** when the agent reached the finish line. |

## Open Agent Experience

1. In your dashboard, open **Settings**.
2. Under **Products**, select **Agent Experience**.

The page has two tabs:

- **Stories**: every story with its latest status and top open issue. Stories with the most severe open findings appear first.
- **All runs**: every run across all stories, with filters and export.

## Create your first story

Select **Story** to choose how to create a story.

<Frame>
<img
alt="The Story menu open with three options: Automatic, Manual, and From an MCP client."
className="block dark:hidden"
src="/images/agent-experience/new-story-menu-light.png"
/>
<img
alt="The Story menu open with three options: Automatic, Manual, and From an MCP client."
className="hidden dark:block"
src="/images/agent-experience/new-story-menu-dark.png"
/>
</Frame>

<Tabs>
<Tab title="Manual">
Write the story yourself.

1. Select **Story** > **Manual**.
2. Enter a **Name**, for example "TypeScript SDK developer."
3. Enter a **Prompt** that describes who the user is and what they want to do.
4. Enter a **Finish line** that the agent can check, for example "One API call returns data."
5. Choose one or more **Harnesses**.
6. Optional: expand **Advanced** to set the situation, the schedule, and browser access. See [Story settings](#story-settings).
7. Select **Create story**.

<Frame>
<img
alt="The manual story form with fields for name, prompt, finish line, and harnesses, and the Advanced section expanded."
className="block dark:hidden"
src="/images/agent-experience/new-story-form-light.png"
/>
<img
alt="The manual story form with fields for name, prompt, finish line, and harnesses, and the Advanced section expanded."
className="hidden dark:block"
src="/images/agent-experience/new-story-form-dark.png"
/>
</Frame>
</Tab>
<Tab title="Automatic">
Let AX suggest stories based on your code and recent docs changes.

1. Select **Story** > **Automatic**.
2. Pick up to five repositories. AX reads repositories connected through the Mintlify GitHub app.
3. Select **Find examples**. If you don't want to share repositories, select **Suggest from docs only**.
4. Review the suggested stories. Edit the prompts and clear any you don't want.
5. Select **Add stories**.

If you don't see your repositories, open your Git settings and give the Mintlify GitHub app access to them.
</Tab>
<Tab title="From an MCP client">
Create and run stories from Claude Code, Cursor, or another MCP client.

1. Connect your client to the [admin MCP](/ai/mintlify-mcp).
2. Ask your agent to create an Agent Experience story. For example: "Create an Agent Experience story where a new developer gets an API key and makes their first request."

Through MCP, your agent can create stories, start runs, list runs and findings, and read run reports. It can also start from these templates:

| Template | What the agent does |
| --- | --- |
| New agent sign up | Sets up the product from the terminal. |
| First API call | Gets credentials and makes one authenticated request. |
| Connect AI tools | Connects a coding assistant through MCP or agent setup. |
| Turn on a new feature | Turns on the newest feature for an existing account. |
| Migrate from another tool | Moves existing content or configuration over with your migration path. |
</Tab>
</Tabs>

When you create a story, its first runs start right away. Results usually appear in 3 to 8 minutes.

### Write a good story

- Describe a real user. "You are a backend developer evaluating Acme for the first time" works better than "Test the API."
- Write a finish line the agent can check, like "The CLI is logged in" or "The webhook signature verifies."
- Keep each story to one task. Put onboarding and feature setup in separate stories so findings point to the right pages.
- If your prompt is rough, open the story and select **Improve**. It rewrites your line into a task with a finish line.

### Story settings

| Setting | Options |
| --- | --- |
| Situation | **New user setting up** for onboarding tasks, or **Existing user turning on a feature** for enablement tasks. |
| When should it run? | **Automatic (recommended)** checks hourly for docs updates and runs the story when a quick check says it's affected. **Only when I run it**, **Every day**, or **Every week** are also available. |
| Harnesses | Claude Code, Codex, and opencode. Each harness runs its recommended models, and every run starts once per model so you can compare them. Claude Code is selected by default. |
| Allow browser | Lets the agent open a browser, for example to verify an email or claim an account. Works with Claude Code only. Browser runs cost more credits. |

### Test accounts and email

Every run gets its own email address and inbox. If your story asks the agent to sign up, it uses that address, and it can read verification emails sent to it. You can see the messages on the run's **Overview** tab under **Test inbox**.

## Review a story

Select a story to see its health, findings, and run history.

<Frame>
<img
alt="A story page showing the latest health score, three targets, the story fields, findings with Fix and Dismiss buttons, and the run history."
className="block dark:hidden"
src="/images/agent-experience/story-detail-light.png"
/>
<img
alt="A story page showing the latest health score, three targets, the story fields, findings with Fix and Dismiss buttons, and the run history."
className="hidden dark:block"
src="/images/agent-experience/story-detail-dark.png"
/>
</Frame>

The top of the page shows the latest health score, the schedule, the share of healthy runs in the last seven days, and the number of open findings. From here you can:

- Select **Run now** to start a run on every harness and model.
- Edit the story and select **Save**.
- Select **Ask agent for insights** to ask the editor agent to analyze the story's runs.
- Select **Archive** to stop the story. Past runs stay in **All runs**.

### Work with findings

Each finding shows its severity, the page, its status, and the problem the agent reported.

- Select **Fix** to open the editor agent with a prompt to fix that page.
- Select **Dismiss** if the finding isn't a real problem. Dismissed findings stay dismissed until you select **Reopen**.

AX marks a finding **Fixed** once each model that reported it has run the story two more times without reporting it. If an agent reports it again later, it reopens.

## Review a run

Select a run to see what the agent did.

<Frame>
<img
alt="A run page showing the harness, model, health, spend, duration, summary, findings, and the docs pages the agent read with ratings."
className="block dark:hidden"
src="/images/agent-experience/run-overview-light.png"
/>
<img
alt="A run page showing the harness, model, health, spend, duration, summary, findings, and the docs pages the agent read with ratings."
className="hidden dark:block"
src="/images/agent-experience/run-overview-dark.png"
/>
</Frame>

The run page has three tabs:

- **Overview**: the findings from this run, every docs page the agent read with its rating and notes, the exact prompt the agent received, screenshots for browser runs, and problems the agent hit outside your docs.
- **Traces**: a timeline of every step the agent took, colored by tool type, and the grader output.
- **Findings**: every finding from this run.

<Frame>
<img
alt="The Traces tab showing a timeline of the agent fetching docs pages, running shell commands, failing, and writing its result."
className="block dark:hidden"
src="/images/agent-experience/run-traces-light.png"
/>
<img
alt="The Traces tab showing a timeline of the agent fetching docs pages, running shell commands, failing, and writing its result."
className="hidden dark:block"
src="/images/agent-experience/run-traces-dark.png"
/>
</Frame>

Use **Ask agent about this** to discuss the run with the editor agent, **Run again** to retry, and **Copy report** to copy a Markdown report you can share with your team.

## Track all runs

The **All runs** tab lists every run with its story, harness and model, who or what started it, result, health, summary, spend, and time. Filter by time range, story, harness and model, or status.

<Frame>
<img
alt="The All runs tab with filters for time range, story, harness and model, and status, and a table of runs."
className="block dark:hidden"
src="/images/agent-experience/all-runs-light.png"
/>
<img
alt="The All runs tab with filters for time range, story, harness and model, and status, and a table of runs."
className="hidden dark:block"
src="/images/agent-experience/all-runs-dark.png"
/>
</Frame>

- Select **Download** to export your stories, runs, and findings as JSON.
- Select **Copy** to copy a component you can paste into a Mintlify page to show your runs.

## Credits and limits

| Limit | Value |
| --- | --- |
| Cost per run | 100 credits, or 200 credits with browser access. You pay for every run that finishes, whether or not the agent reached the finish line. Runs that error or that you cancel are free. |
| Stories | Up to 10 active stories per project. Archive a story to add another. |
| Concurrent runs | Up to 10 runs in progress at once. |
| Daily runs | Up to 50 runs in 24 hours. |
| Run time | Most runs finish in 3 to 8 minutes. A run stops after 20 minutes. |

A story starts one run per model each time it runs. A story set to three models costs three runs.

### Set a spend limit

1. On the Agent Experience page, select **Settings**.
2. Select **Limit spend** and enter the maximum credits per month.

When AX reaches the limit, runs pause until the next month or until you raise the limit.

<Frame>
<img
alt="The Agent Experience settings panel with the credit spend limit options and this month's usage."
className="block dark:hidden"
src="/images/agent-experience/settings-light.png"
/>
<img
alt="The Agent Experience settings panel with the credit spend limit options and this month's usage."
className="hidden dark:block"
src="/images/agent-experience/settings-dark.png"
/>
</Frame>

## Suggested first week

1. Create two or three stories that cover your most important onboarding paths, like signing up, getting credentials, and making a first request.
2. Run each on Claude Code and one other harness to see where agents differ.
3. Fix the highest severity findings, publish, and watch the next automatic runs.
4. Share what worked and what didn't with your Mintlify team using **Send feedback**.
Binary file added images/agent-experience/all-runs-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/agent-experience/all-runs-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/agent-experience/new-story-form-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/agent-experience/new-story-form-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/agent-experience/new-story-menu-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/agent-experience/new-story-menu-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/agent-experience/run-overview-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/agent-experience/run-overview-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/agent-experience/run-traces-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/agent-experience/run-traces-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/agent-experience/settings-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/agent-experience/settings-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/agent-experience/stories-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/agent-experience/stories-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/agent-experience/story-detail-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/agent-experience/story-detail-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading