Release · v2.0.0

Simpler, Cheaper, Faster, Stronger.

In 1.x, the model had to measure, choose keep or discard, and remember to log it. In 2.0, one run_experiment call does all of it by a fixed rule — ~40% cheaper per experiment, ~30% faster, and zero forgotten logs.

Tested on Pi 1.7
1.x vs 2.0 — one experiment

      
Amber boxes depended on the model's memory; green boxes are handled by the tool. One fewer model turn on every experiment.

Same result in, same verdict out

log_experiment is gone. run_experiment runs your benchmark and checks, decides keep or discard by a fixed rule, commits or undoes the code, and saves .auto/ on every run so dead ends aren't lost. Pick a case to see what Pi returns:

run_experiment — keep code + .auto/ committed

        

Noisy benchmark? Because the rule is fixed, steady .auto/measure.sh first — warm up and print a median. Pass keep_on_tie when you simplify code for the exact same score.

~40% cheaper per experiment

Removing log_experiment doesn't just cut a turn — it keeps the conversation shorter, so every later turn reads fewer tokens too. We ran 1.9.0 and 2.0.0 side by side on the same 3-file optimization benchmark (Claude Sonnet 4.6, Pi 1.7):

Measured v1.9.0 v2.0.0 Change
Cost / experiment $0.197 $0.114 −42%
25-run session (matched pair) $4.70 $2.64 −44%
Model turns / experiment 3.6 2.4 −33%
Time / experiment 14.5s 9.9s −32%
Run-to-log mismatches 7 in 50 0 in 42 exact 1:1

Two interleaved trials per version on the same 3-file Node.js pipeline (medium thinking; 50 logged runs on 1.9 vs 42 on 2.0 because trial 2 of 2.0 stopped at 17, so averages are per experiment). A separate 3-trial 8-run test measured −35% cost. Savings are smaller when an experiment needs many edits before running.

Esc actually means pause

The old timers are gone — Pi 1.7 now handles pausing, continuing, and retries itself. Hit Esc, even mid-check, and the loop stops, leaves your edits alone, and stays paused across /reload until /autoresearch resume.

pi — try pressing Esc

      
Press Esc on your keyboard (or click the button) while this is on screen.

See where the time goes

Every run prints total loop time, benchmark time, checks time, and the single slowest step. Name stages inside .auto/measure.sh to see which part actually slows you down:

pi — loop timing (3 stages)

      
Every named span is saved in .auto/log.jsonl, and longest: points to the slowest stage instead of the whole script.

Built for long runs

When the conversation hits 70%, autoresearch swaps old chat history for a summary built from .auto/ — only right after a logged experiment, never mid-edit, with that last result still on screen. Reset your baseline mid-session and progress still tracks from the very first run.

Before you upgrade

Five breaking changes if you have an existing .auto/ setup:

Try 2.0

install
$ pi install npm:pi-autoresearch
# then, inside pi
/reload

Let the agent spend its tokens on better ideas. Let the rule decide what stays.