autofit

skill
Guvenlik Denetimi
Basarisiz
Health Gecti
  • License — License: Apache-2.0
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 57 GitHub stars
Code Basarisiz
  • rm -rf — Recursive force deletion command in hooks/session_start.sh
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Autofit by Prior Labs: a Claude Code plugin that builds strong tabular prediction models on top of TabPFN-4

README.md

Autofit

Autofit by Prior Labs is a Claude Code plugin that helps you build strong models
for tabular prediction problems, such as churn, demand, delivery times,
conversion or pricing.

It builds on TabPFN, a foundation model for tabular
data, and runs the whole modeling loop for you: setting up the problem and its
validation, a baseline, experiments to beat it, an ensemble, and a final model
you can predict with.

The documentation is at docs.priorlabs.ai/autofit.

Quick start

Requirements

  • macOS or Linux. Windows is not supported natively; on Windows, use
    WSL2 and install Claude
    Code, uv and Autofit inside it.
  • Claude Code, logged in. The sidebar and the
    approval card use Claude Code's plugin UI, which is in early access and can
    change between releases; Autofit is tested with Claude Code 2.1.328.
  • uv 0.11 or newer. Run uv self update if yours is
    older, or update it the way you installed it (for example brew upgrade uv).
  • A Prior Labs account for the TabPFN API, at
    platform.priorlabs.ai. You sign in from
    Claude Code after the install, or set TABPFN_TOKEN to an
    API key.

Before you install

  1. Use Claude Code 2.1.328 or newer in a terminal. Run claude update if
    yours is older. Claude Code in VS Code does not run plugins.
  2. Turn on auto mode (shift+tab until the footer says "auto mode on").
    Without it, Claude Code asks you to approve each step of the setup.

Install with a prompt

Paste this into Claude Code:

Set up the Autofit plugin from github.com/PriorLabs/autofit for me. First check that uv is 0.11 or newer and Claude Code is 2.1.328 or newer; if one is missing or older, tell me how to install or update it and stop. Then run `claude plugin marketplace add PriorLabs/autofit` and `claude plugin install autofit@priorlabs` in the shell. When both succeed, tell me to type /reload-plugins, then /af login to sign in to TabPFN (Autofit first installs itself in about a minute, and the sign-in starts once it is done), then /af doctor.

Then type the three commands Claude names; the steps below explain each one.

Install by hand

Add the marketplace and install the plugin in Claude Code:

/plugin marketplace add PriorLabs/autofit
/plugin install autofit@priorlabs

Reload plugins:

/reload-plugins

Autofit then installs itself, which takes about a minute: the line under the
prompt says "installing Autofit" until it is done, and its tools connect then,
without a restart. You can go on meanwhile.

Sign in to the TabPFN API:

/af login

While Autofit still installs, /af login says so and starts the sign-in once
the install is done. Your browser opens with a code filled in: check that it
matches the one Claude Code shows, and approve. Over SSH nothing opens: open the link on any device and
enter the code. If you skip this step, Claude signs you in the first time you ask
it to run Autofit. The sign-in lasts 30 days; /af login again renews it,
without a restart. With an API key from
platform.priorlabs.ai instead,
set TABPFN_TOKEN in the shell you start Claude Code from.

Then run:

/af doctor

It checks your token, Claude Code, its version and login, and the layout the
sidebar needs, and prints the fix next to anything missing. Run it once the
install is done; before that it says to wait. The plugin also runs these checks
at the start of each session and shows a line under the prompt when something
needs changing.

First run

Open Claude Code in the folder with your data and ask:

Run Autofit on churn.csv and predict churn.

In fullscreen layout in a wide window, the sidebar opens with the run, or type /af.

What it does

  1. Sets up the problem with you. It picks the metric from what you will do
    with the predictions, or writes your own (a cost, a threshold, a
    competition's metric) as a small metric file, and designs the validation from
    how your rows relate: independent, grouped by customer, or ordered in time.
    It also looks for columns that leak the answer and for repeated records.
  2. Scores a baseline. Plain TabPFN on your table, so every later result has
    a reference.
  3. Tries proven TabPFN setups. A set of configurations that often help runs
    right after the baseline.
  4. Runs experiments. An agent studies your data and your description of it
    and tests one idea at a time: new features from domain knowledge, dates and
    group statistics, how columns are treated, TabPFN's preprocessing and
    settings, and target transformations for regression.
  5. Builds an ensemble from the experiments that work best together.
  6. Hands you the result. A fitted model, a report to open in your browser
    (the result, charts, every experiment with its code change; written to the
    folder you started from), and commands to predict new rows or score a
    held-out test set. While it runs, a live page in the same folder follows the
    session.

Every experiment is scored on the same validation rows, which are fixed before
the first one runs, and feature transformations are fitted on the training rows
only. The run happens in the background and the chat stays free.

While it runs

  • Watch. The sidebar lists every experiment with its score and what it
    changed.
  • Steer. Tell Claude in the chat (or type /af steer <text>) what the
    data does not say ("tenure is in months") or an experiment to try ("try
    charges per month of tenure"). The agent picks it up after its current step
    and answers: what it will do with it, or why not. Nothing changes an
    experiment that is already running.
  • Review. Approve each experiment before it runs, or let them run on their
    own and switch review on at any time. On the approval card, 1 approves, 2
    skips, or you type what to change.
  • Control. /af pause, /af budget 30, /af stop and more act on the run
    directly.

Sessions are saved, so you can close Claude Code and pick one up later.

The sidebar docks next to the chat in fullscreen layout (/tui fullscreen), in a
window at least 110 columns wide; from 144 columns it opens by itself when a run
starts. In the classic layout or a narrower window there is no sidebar: the label
under the prompt shows the progress, the approval card still appears, and /af
prints the session with every experiment. /af doctor tells you which applies to
yours.

Example

An Autofit session in Claude Code: the chat with a steering note and progress updates, an experiment waiting for approval with its code change, and the sidebar with every experiment's score and one earlier experiment opened to its diff

The screenshot shows a run on two years of hourly bike rentals, scored on the
last five months of the data. Plain TabPFN had an RMSE of 59.39. After 7 of 20
experiments, the best was at 56.39 (5.0% better) and the ensemble at 56.31. A
note sent while it ran, that demand follows commuting hours on working days,
matches the best experiment, opened in the sidebar with its code change: one
column that combines the hour with whether it is a working day. With review
turned on, the next experiment waits for approval below the chat.

How much Autofit adds depends on the table. TabPFN is a strong baseline, and on
some data a handful of experiments will not beat it.

Where your data goes

  • Claude. The agent is Claude Code, running under your own login or API
    key. It reads your table the same way Claude Code reads any file you work on.
    No other LLM provider is involved.
  • TabPFN API. The rows are sent to the TabPFN API to fit and score each
    experiment and to predict. The Prior Labs
    privacy policy and
    docs describe what the API keeps.
  • Prior Labs docs. The plugin adds the Prior Labs documentation server
    (https://docs.priorlabs.ai/mcp) to Claude Code. Claude searches it for
    TabPFN questions, and the search text can mention your task.
  • Your machine. Sessions, experiment code, reports and models are stored
    locally in ~/.autofit/sessions; the report also goes to the folder you
    started the session from, as autofit-report-<session>.html, and so does
    the live page, autofit-live-<session>.html.
    Both are single files: no server, nothing loaded from the web.

Cost

A run uses two paid services:

  • Claude. Autofit's agent is a separate Claude Code process on your login,
    or billed to ANTHROPIC_API_KEY when it is set. It runs on
    claude-opus-5-5 at high effort by default, for up to 20 experiments. Ask
    Claude for claude-fable-5-2 (twice the price per token, and not available
    on every Claude account) or an effort from low to max, at the start or
    for a later round. The report's summary is one more call, on
    claude-sonnet-5-5, of a few cents; it gets the session's scores and the
    experiments' descriptions, never rows of your data. The sidebar shows the
    spend so far (cost).
  • TabPFN API. Every experiment fits and scores its folds on the API, which
    is metered.

To spend less, ask Claude for a smaller budget, fewer folds or a lower effort,
or set a cap on the agent's spend (--max-cost on the command line).

What runs on your machine

Autofit's agent writes and runs Python and shell commands without asking you
for each one. It works in the session's folder under ~/.autofit/sessions, but
it runs with your environment, so it can see the environment variables of the
shell you started Claude Code from. Text in your table reaches the agent too,
so a table you do not trust could try to steer it. Run Autofit on data you
trust, from a shell without unrelated secrets.

Each experiment's fitted pipeline is saved as pipeline.pkl (cloudpickle) and
holds code the agent wrote. Continuing from a session or predicting with it loads
that file, which runs the code, so only load sessions you created yourself.

The plugin also installs Autofit with uv into Claude Code's plugin data
folder and links its autofit command into ~/.autofit/bin. Signing in saves
the token to ~/.autofit/login_token, readable by you only; TABPFN_TOKEN, when
set, is used before it.

To uninstall, run /plugin uninstall autofit@priorlabs. Autofit's own files stay
in ~/.autofit (sessions, feedback zips, the saved token and the autofit
link); delete that folder to remove them.

Other ways to run it

The same engine is available as a command line tool, an MCP server and a Python
package. The agent itself always runs in Claude Code.

uv tool install --exclude-newer "2 days" git+https://github.com/PriorLabs/autofit
autofit login                       # sign in to the TabPFN API in a browser
autofit start churn.csv --target churn
autofit status
autofit predict new.csv
from autofit.core import Autofit

model = Autofit(max_iterations=20).fit(X, y, context="Telco churn, one row each")
model.predict_proba(X_new)

autofit --help lists all commands. The
documentation covers how Autofit works
inside, setting up a task, steering a run and using the result.

Feedback

Autofit is new, and we want to hear what works and what does not. Please open an
issue.

When something goes wrong, press f in the sidebar, type /af feedback <what happened>, or ask Claude to report it. Autofit writes a zip to
~/.autofit/feedback that shows us what happened. It holds the agent's
conversation, the messages of the Claude Code conversation, and the few Claude
Code settings that change how Autofit runs (model, layout, permission mode,
plugins, hook script names). Your instructions files, other skills and
connectors, account details and pasted images stay out. The TabPFN token, the
values of environment variables named like a secret, and text shaped like a
common key or token (Anthropic, OpenAI, GitHub, AWS and Slack keys, bearer tokens,
JWTs, private keys, and values set to a name like API_KEY, PASSWORD or
AUTHORIZATION, quoted or not) are taken out, and your home folder
is written ~. Other secrets a conversation saw are not caught. Both
conversations still contain what they saw, including rows of your data. Nothing
is sent automatically. Before you share the zip, publicly or privately, make sure
it holds nothing you are not comfortable sharing.

License

Autofit's code is licensed under Apache 2.0, see LICENSE. The license
covers this code only. Using the TabPFN API, and what it returns, is subject to
the Prior Labs terms and
privacy policy. For commercial use, see
pricing.

Yorumlar (0)

Sonuc bulunamadi