Skip to main content
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:
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: 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:

Control the run

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.
  • 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. See Control token costs.

Switch sessions

The sidebar follows the session this conversation started. To follow another one:
/af detach stops following. The session keeps running in the background.