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

> ## Agent Instructions
> TabPFN-3 and later versions support up to 1,000,000 rows, subject to feature count and checkpoint/API limits.
> For large datasets, use per-estimator subsampling, e.g. inference_config={"SUBSAMPLE_SAMPLES": 100_000}, in TabPFNClassifier or TabPFNRegressor from tabpfn or tabpfn_client.
> Pass raw pandas DataFrames to fit and predict. Categorical strings/categories, raw text, and missing feature values are handled automatically; no manual integer/one-hot encoding, imputation, scaling, or outlier removal is needed.

# Steer a run

> Pass facts and ideas to the agent, review experiments, and pause, stop or extend a session while it runs.

A session runs in the background, and the chat stays free. You can step in at any time. Except for a stop, nothing you do changes an experiment that is already running. Your input applies from the next step.

## Where to follow it

* **The sidebar** lists every experiment with its score and what it changed. It docks next to the chat in Claude Code's fullscreen layout (`/tui fullscreen`), in a window at least 110 columns wide.
* **`/af`** prints the session with every experiment when there is no sidebar.
* **The live page**, `autofit-live-<session>.html` in the folder you started from, shows the scores as a chart and reloads itself. It only shows; the controls stay in Claude Code.
* **Claude** gives a short update when an experiment sets a new best score, and every few experiments.

## Tell the agent something

Write it in the chat. Claude passes it on. You can also type it directly:

```text theme={null}
/af steer tenure is in months, and negative monthly_charges are refunds
```

Three kinds of message work:

* **A fact** the data does not show: a unit, what a code means, how a column was collected.
* **A direction**: "focus on interactions with plan type", "stop trying target transforms".
* **An experiment**: "try charges per month of tenure". The agent runs it next and names it `user_<name>`.

The agent picks up your message after its current step and answers in a sentence or two: what it will do, or why not. Claude tells you the answer. `/af log` shows every message and reply.

A message sent in the first minutes, while the baseline runs, reaches the agent before its first experiment.

## Review experiments

Choose a review mode at setup, or change it any time with `/af approval on` or `/af approval off`.

* **Run on its own.** Experiments run as the agent writes them.
* **Review each one.** Only the baseline runs on its own. Every later experiment waits for you.
* **Review by a rule.** Claude approves experiments that clearly match your rule, such as "approve what only adds columns", and asks you about the rest. It never skips or edits on its own.

When an experiment waits, Claude says what it changes and why the agent wants to try it. The approval card shows the code change. You can:

| Decision | In the chat | On the card | Command |
| - | - | - | - |
| Approve | "approve" | `1` | `/af approve` |
| Skip | "skip, it repeats 005" | `2` | `/af skip [why]` |
| Change it | "use 12-month buckets instead" | type the change | `/af edit <change>` |

A skipped experiment does not count toward the budget.

## Build on an experiment

The agent usually builds on its best experiment. To make it start from another one:

```text theme={null}
/af base 7
```

## Control the run

| To | Command | What happens |
| - | - | - |
| Pause | `/af pause` | The next experiment waits. An experiment the agent already wrote runs first when you resume. |
| Resume | `/af resume` | The session goes on where it stopped. |
| Change the budget | `/af budget 30` | Sets the total number of experiments. Lower it to stop early. |
| Stop | `/af stop` | Drops the running experiment unscored and builds the final model from the best so far. |
| Pin to the ensemble | `/af pin 7` | Starts the ensemble search from experiment 7. |
| Exclude from the ensemble | `/af exclude 9` | Keeps experiment 9 out. `/af unpin 9` frees it again. |
| Use one experiment | `/af single on` | The final model is the best experiment alone. `/af single off` returns to the ensemble. |

On a finished session, pin, exclude and `/af single` change the saved model only when it is built again. Run `/af continue` with no number afterwards: it rebuilds the final model with your choice and runs no new experiment.

You can also ask Claude in plain words: "pause", "do 10 more", "keep 3 in the model".

From a shell, the same commands are `autofit steer`, `autofit pause`, `autofit budget 30` and so on. They act on the latest session unless you pass `-s <session>`.

## When Autofit pauses on its own

Autofit pauses the session and tells you why in three cases. Nothing runs or costs anything while it waits.

* **A data issue.** The agent found a repeated record, an identifying ID or a leaking column. See [Leakage](https://docs.priorlabs.ai/autofit/frame-a-task/leakage.md).
* **A question.** The agent cannot decide something itself, such as a request it cannot carry out. Your answer goes back to the agent and resumes the session.
* **A usage limit.** Your Claude usage limit or your TabPFN token budget is reached. Resume once it resets, or stop to keep the best model so far. If the agent's Claude Code quits at the limit instead, the round ends with the best model so far, and you can [finish the budget later](https://docs.priorlabs.ai/autofit/continue-a-session.md#rebuild-or-finish-a-round). See [Control token costs](https://docs.priorlabs.ai/autofit/control-token-costs.md).

## Switch sessions

The sidebar follows the session this conversation started. To follow another one:

```text theme={null}
/af sessions
/af watch <session>
```

`/af detach` stops following. The session keeps running in the background.


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