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

# Twin

> A replica of what the agent acts on, built from recordings, so laps run with nothing real at stake.

The **twin** answers the agent's tool calls the way its real tools would, from what was recorded. It is built by `proving twin build` from your redacted recordings and is identified by its content hash: the same recordings and decisions build the same twin.

## How it answers

* A call that was recorded is answered **exactly** as recorded.
* A read of a record it knows is **derived** from what was recorded about that record.
* A call it cannot answer is a **miss**: the lap is void, never graded on a made-up answer.
* An **effect** (a payment, an email, a refund) is intercepted: written to the lap's effects ledger and answered as done, but never carried out.

Each tool is classed `read`, `write`, `effect` or `unknown` (treated as an effect). The build says how it classed each one and what it could not decide. You decide in `proving/twin.yaml` (see [Twin decisions](https://docs.hex65.com/reference/formats/twin-config.md)) and build again. The data example ships a `twin.yaml` for this reason.

## What it leaves out

`proving twin not-modeled` lists what the twin does not model: tools never recorded, writes that do not change later reads, and what you wrote down yourself. Results carry this list, so a reader knows the limits.

## Fidelity

`proving twin fidelity` measures the twin on recordings it was not built from: how often it answers as the real tool did. Until you measure it, results say "Fidelity: not measured".

## Kinds

At M1 the twin is the API-tool kind: MCP servers. Coding (M3) and browser (M5) twins are coming. `proving twin kinds` lists the kinds this binary has.


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