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.
- The extension registers the three tools —
init_experiment,run_experiment,log_experiment— a/autoresearchcommand with subcommands, an optional set of keyboard shortcuts, and the widget that sits above the editor. Tools are global: once the package is installed they exist in every session. - The skill is the part that knows your domain.
autoresearch-createasks about the goal, the command, the metric and the files in scope, then writes.auto/prompt.mdand.auto/measure.shand runs a baseline before the first idea. - The widget shows the current metric, the confidence score and a table of runs with commit, metric, status and description, so you can read the session without asking the agent to summarise.
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
- The README, for install and the command list.
- The skill definition, to see exactly what the agent is told about writing a measurement command.
- The extension tools, to see what gets written to
.auto/log.jsonland 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.