pi-autoresearch

Repository

pi-autoresearch GitHub repo

The repository is davebcn87/pi-autoresearch on GitHub, described there as an autonomous experiment loop extension for pi. It is the source of the npm package pi-autoresearch, and the README is the place to look when this site and a release disagree — the release wins.

The repo at a glance

Repository davebcn87/pi-autoresearch
What it is A pi extension plus a skill, not a standalone app
Install pi install npm:pi-autoresearch
License MIT
Popularity roughly 8.3k stars and 471 forks at the time of writing

What is inside

The repo ships one extension and one skill, and the split is worth understanding before you read the source.

That is why the extension is short and the skill is long: the loop does not change when the target changes, so everything domain-specific is pushed into a Markdown file you can read and edit.

Reading the source in the right order

  1. The README, for install and the command list.
  2. The skill definition, to see exactly what the agent is told about writing a measurement command.
  3. The extension tools, to see what gets written to .auto/log.jsonl and when a commit happens.

If you only have ten minutes, read the skill. Most surprises people hit — a metric that is not parsed, a change that touches files outside the scope, a benchmark that fails on the first run — are visible in the skill's instructions before they are visible in the code.

Watching the project

The repo is active enough that the extension gains subcommands between releases. If you run long unattended sessions, watch the repo rather than pinning a version forever, and read the changelog before upgrading mid-session: .auto/prompt.md is designed to survive a resume, but a changed log format is not something you want to discover at 3am.

Forks worth knowing

The most visible fork is pi-autoresearch-harness, which runs each session in its own git worktree and can stop when the metric reaches a target value. If you are optimizing a repo you are also editing, that isolation is the difference between a clean working tree and a branch archaeology session the next morning.

The loop itself — the .auto/ files, the confidence score, the finalize step — is explained on the pi-autoresearch home page, and the comparison with the training-focused original is on the karpathy page.

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