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

# How it works

> What the Autofit agent sees, what it can change in an experiment, and what it cannot.

An agent writes and runs the experiments. It is Claude Code running in the background on your machine, separate from the chat you work in.

Autofit scores every experiment on [locked folds](https://docs.priorlabs.ai/autofit/how-it-works/validation.md), applies a [post-processing](https://docs.priorlabs.ai/autofit/how-it-works/post-processing.md) step when the session has one, and blends the best experiments into an [ensemble](https://docs.priorlabs.ai/autofit/how-it-works/ensembling.md).

## What it runs on

Autofit starts Claude Code without a window, on Claude Opus 5.5 by default. It runs without your Claude Code settings, plugins or MCP servers. It uses your Claude Code login or your `ANTHROPIC_API_KEY`, so its usage counts toward your plan or your bill. See [Control token costs](https://docs.priorlabs.ai/autofit/control-token-costs.md).

You can ask for Claude Fable 5.2 or another effort level, at setup or for a later round. Fable is not available on every Claude account.

## What it sees

* The task: target, metric, validation setup and baseline score.
* Your table. Its instructions tell it to use summaries and previews of up to 20 rows, not the whole file. Rows it previews go to Anthropic as part of its context. See [Data privacy](https://docs.priorlabs.ai/autofit/data-privacy.md).
* The context Claude wrote from what you said and from your notes. The setup summary shows it word for word. See [Domain context](https://docs.priorlabs.ai/autofit/frame-a-task/domain-context.md).
* Guidance on TabPFN: its settings and what tends to help it.
* The leaderboard: every experiment so far, with its score and description.
* Your messages while it runs.

Your messages carry a code only Autofit knows. Text in your data cannot pose as you.

## What it can change

Each experiment is one Python script, `train.py`, with a scikit-learn pipeline and a call that scores it. The agent may change:

* **The pipeline steps before the model.** New features, dropped columns, encodings, group statistics, date parts, joins to [lookup tables](https://docs.priorlabs.ai/autofit/frame-a-task/multi-table-data.md).
* **TabPFN's settings.** For example its preprocessing and which columns it treats as categorical.
* **The target transform** for regression.
* **The name, description and starting point** of the experiment. Each script names the experiment it built on, and you see its change as a diff against that script.

Every script is self-contained, so you can read any experiment on its own.

## What it cannot change

Autofit refuses an experiment that changes the folds, the metric, the number of estimators or the model. The target, the data file and data loading are rules in the agent's instructions.

* **The folds and the metric.** Autofit refuses an experiment that passes other values. See [Locked folds](https://docs.priorlabs.ai/autofit/how-it-works/validation.md).
* **The number of estimators.** It is fixed at 4 for every experiment, so experiments cost the same and stay comparable.
* **The model.** The last step of every pipeline is TabPFN as Autofit returns it. A wrapper around it, such as stacking or a residual model, fails.
* **The target and the data file.** They are fixed in every script.
* **Data loading.** Autofit loads the table and splits it. The pipeline gets only the training rows of each fold.

## Seeds

Each experiment draws a new TabPFN seed. This keeps the search from fitting one seed's quirks and gives ensemble members different randomness. The baseline and the proven setups use fixed seeds, so they score the same in every session on the same data and folds.

## Limits

* **Time.** One fold of an experiment may take up to 30 minutes, and the whole experiment about 55 minutes. A slower experiment fails.
* **Turns.** The agent has 20 turns for each experiment of the round's budget. Raising the budget adds more.

A failed experiment does not enter the [ensemble](https://docs.priorlabs.ai/autofit/how-it-works/ensembling.md). The agent sees the error and can fix it in its next experiment.

## What you control

You decide what runs. You can review each experiment before it runs, set a rule ("approve what only adds columns"), or let the agent run on its own and step in when you want. See [Steer a run](https://docs.priorlabs.ai/autofit/steer-a-run.md).


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