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

# Tune

> Change the agent, and compare each version with the last on the same cases.

Tuning is changing the agent (its prompt, its tools, its model, its code) and finding out whether the change helped. Each change makes a new **agent version**: a fingerprint of what the agent is made of. Runs record the version they tested.

## Compare two runs

```sh theme={null}
proving compare <base-run> <candidate-run>
```

`compare` reports the difference in pass rate between two runs on the cases they share, with its interval, the cases that flipped, and a verdict. A difference whose interval includes zero is not a difference you can claim.

## Keep what you fixed fixed

`proving clusters promote <cluster>` copies up to three of a cluster's exemplar cases into the **regression set**: the cases every future version must pass. Run them with `proving run --set regression`.

## The exam stays out of reach

Tuning never sees the exam. A task's exam must be sealed before tuning on it begins, and exam cases never enter the practice or regression sets ([the rules](https://docs.hex65.com/concepts/rules.md)).

The gate, which compares every change in CI and blocks a regression, comes with M2.


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