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.
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:
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.
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:
.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:
- Print the score
.auto/measure.shmust printMETRIC <name>=<number>matchinginit_experiment(letters, digits,_,., orµ). - Verdicts are automaticStrictly better wins; equal or worse is undone. Use
keep_on_tiefor exact ties. - Crashes roll backFailed benchmarks and failed checks are logged and undone in the same call.
offandclearpauseWith.auto/prompt.mdpresent, both pause. Use/autoresearch finalizeor delete.auto/to stop.- Retries live in PiExhausted retries pause instead of re-prompting. Raise
retry.maxRetriesin Pi's settings for overnight runs (tune compaction in.auto/config.json).
Try 2.0
$ pi install npm:pi-autoresearch # then, inside pi /reload
Let the agent spend its tokens on better ideas. Let the rule decide what stays.