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

# Your agent

> The quickstart's steps with your own agent, its MCP servers, your requests, and cases you accept.

Start with the workflow where an error costs the most: that is where a number with an interval is worth the most, and where a weakness found in a twin is cheapest.

## 1. Make the project

In your agent's repository:

```sh theme={null}
proving init
```

`init` finds your MCP configuration (`.mcp.json`, `.cursor/mcp.json` or `.vscode/mcp.json`) and asks for the agent's name, how it is started (its adapter) and the command that starts it. Without a terminal, give them as flags:

```sh theme={null}
mkdir my-agent && cd my-agent
proving init --yes --agent-name my-agent --adapter single-shot --command "echo answered"
```

It writes `proving.yaml` and the project directory, `proving/`: tasks, cases, checks, the redaction policy and the blinding key. Commit them with your code. `proving doctor` checks that everything is in place:

```sh theme={null}
proving doctor
```

The adapters are on [Laps](https://docs.hex65.com/concepts/laps.md); the project file's fields are on [Project file](https://docs.hex65.com/reference/project-file.md).

## 2. Record

```sh theme={null}
proving connect
proving record --input "Refund the duplicate charge on order 1182"
```

`connect` wraps your MCP servers with the recorder (and `proving disconnect` restores them exactly). `record` runs your agent once on the request, against its **real** tools: recording is not contained, so record on a test account. After each session it asks whether the outcome was correct; an accepted session becomes a reference. `--inputs <file>` records one session per line of a JSON lines file. `proving recordings review` asks later about sessions you did not review.

## 3. Redact, build the twin, draft the course

```sh theme={null}
proving redact
proving redact review
proving twin build
proving tasks draft
```

`redact` proposes a policy from what its detectors found, then writes redacted sessions with signed reports. `redact review` asks about the paths the policy does not cover. `twin build` builds the twin and lists what it could not decide: answer in `proving/twin.yaml`, or with `proving twin review`. `tasks draft` drafts tasks, cases and checks from your accepted sessions, and seals some of them as the exam (they are not shown again).

## 4. Run laps

```sh theme={null}
proving run
proving results
```

Then read [How to read a result](https://docs.hex65.com/concepts/reading-results.md), and look at the failure clusters: `proving clusters list`.

## When your agent has no MCP servers

Recording and the twin work on MCP servers. An agent with no MCP servers can still run laps against its cases, but has no twin: the run says what is not measured. Wrappers for other kinds of tools come with M3.


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