pi-autoresearch

Explainer

what is pi autoresearch

pi-autoresearch is an extension for pi, the coding agent that runs in your terminal. It gives the agent three tools and one skill so it can run an optimization loop on its own: change something, run your benchmark, log the number, keep the change if the metric improved, revert it if it did not, and go again.

So the short answer to "what is pi autoresearch": it is not a model, and it is not a hosted service. It is a workflow layer that turns a coding agent you already run into an experiment runner that does not need you to press Enter every round.

What the extension actually adds

Nothing in that list is specific to tests or to machine learning. The extension is domain-agnostic on purpose: the skill carries the domain knowledge, the tools carry the loop. That is why the same install can chase test runtime on Monday and validation loss on Tuesday.

What a session feels like

You start it with a sentence of plain English, for example /autoresearch optimize unit test runtime, monitor correctness. The agent creates a branch, writes the two session files, measures a baseline, and then works through ideas on its own. A dashboard widget above the editor keeps a table of commit, metric, status and description, so you can glance over and see whether the last few tries were kept or reverted.

The loop does not stop politely after each step. It runs until you interrupt it, hit the optional maxIterations cap in .auto/config.json, or the metric stops moving. You stay in charge through three things: Escape to interrupt and ask for a summary, the confidence score that tells you whether a win is bigger than the noise, and .auto/checks.sh, which blocks a keep when tests or types break.

What it is not

It is not a benchmark suite. You bring the command and the metric; if the measurement is noisy, the loop will happily chase noise. It is also not a replacement for review: the kept experiments land as commits on a branch, and the finalize step exists precisely because someone still has to read them.

Who gets value from it

Developers with a number they already measure and a suite that takes too long: test runtime, bundle size, build time, Lighthouse score, a training loss. If you cannot state the target as one command that prints METRIC name=number, this tool has nothing to optimize yet, and the honest first step is to write that command.

Back to pi-autoresearch: install, loop files and FAQ