---
title: "Agent simulations: can AI agents use your product?"
description: "Give real AI agents such as Claude Code or Codex tasks against your docs, API, SDK or MCP server, and score them. What each run needs and how to read it."
url: "https://www.promigence.ai/blog/agent-simulations-test-how-ai-agents-use-your-product"
site: "Promigence"
---

# Agent simulations: can AI agents use your product?

_Harshraj, 27 November 2026_

## What is an agent simulation?

An agent simulation gives a real AI agent a real task against your product, such as a coding agent like Claude Code or Codex asked to integrate your SDK, or a browser agent asked to sign up and create an API key from your docs. Then it checks the result. Each run needs a clean environment, the agent itself, a starting state prepared ahead of time, credentials kept out of the record and a clear status at the end. Run many of them, separate environment failures from product failures, and the pass rate tells you how well agents can use what you ship.

## Why companies now test for agent users

Many developers no longer read a product's docs themselves. They ask an agent to do it. A developer types "add billing to this app with our payments SDK", and the coding agent reads the docs, picks an API, writes the code and runs it. If the agent gets it wrong, the developer blames the product.

Sites now write for that reader. The llms.txt proposal, published in September 2024, describes itself as "a proposal to standardise on using an /llms.txt file to provide information to help agents use a website".

None of that proves an agent can succeed. A team at Microsoft wrote about testing changes to agent experience in July 2026 and found that most ideas did not work as expected. A tip added to a docs page changed nothing: "The tip was there, the agent read the page, and it did nothing differently." Their advice is blunt: "Test your hypotheses. Most of them will be wrong."

That is what an agent simulation does. It turns "we think agents can use our product" into a number.

## What an agent simulation looks like

A simulation starts from a task written the way a user would phrase it. Some examples:

- "Create a Next.js app that signs users in with our auth SDK."
- "Find the rate limits for the search API in our docs and write a client that respects them."
- "Using our MCP server, create a project and invite a teammate."
- "Sign up on the website, verify the email and get an API key."

Every task runs against one or more agents, several times over, because agents do not answer the same way twice. A check at the end decides the outcome: the app builds and its test passes, the API key works, the project exists with the right member. The result is a table of tasks by agents, with a pass rate in each cell and a transcript behind every run.

A small matrix grows fast. Twelve tasks, three agents and ten repeats come to 360 runs, on every docs release and again when an agent ships a new version.

## What a simulation run needs

Every run needs the same six things. Missing any one of them makes the result hard to trust.

| Need | Why it matters |
|---|---|
| A clean environment per run | Files, caches or accounts left over from an earlier run change the outcome |
| The agent, at a pinned version | A new agent release can move the pass rate on its own |
| A starting state prepared ahead | A repository at a fixed commit with dependencies installed, or a browser session already open, so runs test your product and not the setup |
| Test credentials kept out of the record | Keys and passwords otherwise end up in transcripts, screenshots and reports |
| A check that decides the outcome | Tests, an API call or a grader, run after the agent stops |
| A clear status per run | So a run that never started is never counted as the agent failing |

The starting state deserves care. If each run installs its own dependencies, a slow package mirror or a flaky download shows up as a failed task. Build the state once, check it, and start every run from a copy of it.

Credentials need the same care: create test accounts per run, keep keys outside the agent where possible and scrub artifacts before they are shared. Our post on [keeping test credentials out of agent transcripts](https://www.promigence.ai/blog/test-credentials-out-of-agent-transcripts) covers the patterns.

## Four statuses every run should end with

A pass rate is only as good as the statuses under it. A run should end in one of four states, and the report should count them apart:

| Status | What happened | Whose problem |
|---|---|---|
| Never started | The environment never became ready, so the agent never ran | The platform or the setup |
| Broke partway | The environment failed partway through the run | The platform |
| Ran out of time | The agent ran out of time before it finished | Often the product: the agent was stuck |
| Finished | The agent stopped and the check ran, passing or failing | The product, the docs or the agent |

Only the last two say anything about your product. Read them first. A timeout is worth reading closely: an agent that loops for ten minutes on one page usually found a gap in the docs, an error message that does not name the fix, or a flow it could not see.

## Separating environment problems from product problems

A simulation fails for two very different reasons. Either the agent could not use your product, or the run itself broke. Mixing the two produces numbers that move for no reason.

Start by checking the environment before any agent runs in it. Build the starting state with a verify step, for example a command that installs the project, runs its own tests and starts the app. If that step fails, nothing should be stored, and no run should start from it.

Next, classify every failed run. Environment failures (never started, broke partway) go into one count and get run again. Task failures (ran out of time, finished with a failing check) go into another and get read. Never average the two.

Then compare across agents. If one agent passes a task ten times out of ten and another passes it twice, the product works and the second agent struggles with it. If every agent fails at the same step, the problem is probably yours.

Last, repeat. One run per cell is a coin toss. Ten per cell gives a pass rate you can watch move after a docs change.

## What it costs to run

Model tokens are billed separately by your model provider. The compute adds up when runs are short and numerous, so per-second billing matters.

As a labelled example, take the 360-run matrix above, with each run lasting 8 minutes in a small sandbox of 2 vCPU and 4 GiB. At $0.0504 per vCPU-hour and $0.0162 per GiB-hour, that sandbox costs $0.1656 an hour. The matrix is 360 × 8 minutes = 2,880 minutes, or 48 hours, so 48 × $0.1656 = $7.95 in compute for the whole matrix. Tokens come on top.

## Where Promigence fits

Promigence is where those runs can execute: one sandbox per run, each a full Linux environment of its own, started from a prepared snapshot. Nothing carries over between runs.

You build the starting state once as a snapshot, from a Dockerfile, or from an image with your repository cloned at a pinned commit, with your app and agent installed and the app started at build time if the task needs it running. A snapshot is stored only if its verify command exits 0, so a broken starting state fails at build time instead of inside the simulation. Each run's sandbox then starts from that one snapshot. Through the CLI a sandbox is ready for its first command in 207 ms at p50, and two hundred requested at once were all served at a 177 ms median with no retries.

Every run's report separates environment failures from task failures, sandbox by sandbox; the CLI exits 3 when the environment failed and 4 when the task did. `promigence run replay` sends only the environment failures through again, in new sandboxes. A sandbox that fails on Promigence's side before it reaches you is not billed. After hand-over, when Promigence's side shows a failure was its own, the work since the last snapshot (or since the start), up to 24 hours, is credited back.

A run is quoted before it starts and held to a hard spend cap, and usage is billed per second. Secrets are named per run and kept out of logs and outputs, and a key bound to its API with `--host` and stored with `--no-raw` stays out of the sandbox entirely. A sandbox can run behind an allow list of the destinations it needs. When a person needs to see what the agent built, `promigence port expose` publishes a sandbox port as a preview URL, and `promigence port revoke` takes it down. A sandbox can also pause with its files kept for someone to inspect later, and paused time is not billed.

A new account runs 20 sandboxes at once, and support raises that on request. The [snapshot and fork guide](https://www.promigence.ai/docs/guides/snapshot-and-fork) shows the build-once, start-many pattern, and the [Claude Code and Codex guide](https://www.promigence.ai/docs/guides/claude-code-and-codex) shows a coding agent running inside a sandbox.

## FAQ

### What is an agent simulation?

It is a test that gives a real AI agent, such as a coding agent or a browser agent, a realistic task against your product and records whether it succeeds. Many runs across several agents give a pass rate per task that shows how usable your docs, API, SDK or MCP server are for agents.

### How do I test if AI agents can use my API or SDK?

Write tasks the way a developer would ask an agent, run each one in a clean environment with the agent at a pinned version, and check the result with tests or an API call. Repeat each task about ten times per agent, and count environment failures apart from task failures.

### How is an agent simulation different from an agent eval?

Most agent evals measure the agent: which model or harness does best on a fixed benchmark. An agent simulation holds the agents fixed and measures your product: how often popular agents succeed with your docs, API or website.

### Why do my agent test results change between runs?

Agents are not deterministic, so some spread is normal; ten runs per task smooths it. Large swings usually come from the environment: leftover state, failed installs or a timeout counted as a product failure. Start every run from a verified snapshot and report environment failures apart.

### How many agent simulation runs do I need?

Enough to see a pass rate move. Ten runs per task per agent is a practical floor. A matrix of 12 tasks, 3 agents and 10 repeats is 360 runs; at 8 minutes a run on a small sandbox at list rates, that is about $8 in compute.

## Try Promigence

With Promigence, every simulation run gets its own sandbox from a verified snapshot, a report that keeps environment failures apart from task failures, and a quote and cap, with free credit to start. [Request access](https://www.promigence.ai/?ref=blog#request-access), then follow [the quickstart](https://www.promigence.ai/docs/quickstart) to build a snapshot and start 20 sandboxes from it.

## Sources

| Source | What it supports | Read |
|---|---|---|
| [Promigence for agent builders](https://www.promigence.ai/for/agent-builders) | 207 ms end to end through the CLI; 200 at once, all served, at a 177 ms median | 28 Nov 2026 |
| [llms.txt proposal](https://llmstxt.org/) (Jeremy Howard, 3 Sep 2024) | sites publishing information to help agents use them | 24 Nov 2026 |
| [Microsoft for Developers: How to test agent experience changes without shipping them](https://developer.microsoft.com/blog/how-to-test-agent-experience-changes-without-shipping-them/) (21 Jul 2026) | most agent-experience changes fail; the docs tip that changed nothing | 24 Nov 2026 |

