// summary
pi-autoresearch is an extension for the pi AI coding agent that enables autonomous optimization loops by testing, benchmarking, and refining code changes. It supports various optimization targets such as test speed, bundle size, and LLM training metrics through a persistent session workflow. The tool includes a live dashboard, confidence scoring to filter out noise, and the ability to finalize experiments into clean, reviewable branches.
// technical analysis
pi-autoresearch is an extension for the pi AI coding agent that facilitates autonomous optimization loops by iteratively testing, benchmarking, and refining code based on specific performance metrics. Its architecture separates domain-agnostic infrastructure from domain-specific skills, allowing the agent to maintain state across restarts via persistent log files and session documentation. This design solves the problem of manual, repetitive benchmarking by automating the 'try-measure-keep' cycle, though it requires careful management of API token usage and benchmark noise to ensure reliable results.
// key highlights
// use cases
// getting started
To begin, install the extension by running 'pi install https://github.com/davebcn87/pi-autoresearch' in your terminal. Once installed, initiate a session by running the '/skill:autoresearch-create' command, which will guide you through configuring your optimization goal, metrics, and target files. You can then monitor the autonomous loop via the provided dashboard or by using the '/autoresearch' command set.