Autoresearch Experiment Loop
Automates the iterative cycle of code experimentation, performance tuning, and optimization based on measurable metrics.
This skill transforms Claude into an autonomous research agent capable of performing hill-climbing optimizations on any codebase. By defining a specific goal, a measurement command, and a numeric metric, the agent enters a continuous loop of generating hypotheses, applying code changes, running benchmarks, and committing only the improvements. It is ideal for tasks where iterative trial-and-error is required—such as reducing execution time, minimizing binary sizes, or improving test pass rates—all while maintaining a clean git history and a detailed results log.
Key Features
01Detailed experiment tracking via a results.tsv log including commit hashes and status
02Flexible metric extraction supporting any shell command and numeric output
03Built-in simplicity policy to balance performance gains against code complexity
04Autonomous hill-climbing optimization loop for code improvement
0515 GitHub stars
06Automated git workflow with pre-commit experiments and automatic reverts for regressions
Use Cases
01Optimization of build artifacts such as binary sizes, bundle sizes, or asset minification
02Performance tuning to reduce execution latency, memory usage, or CPU overhead
03Incremental improvement of test coverage or fixing complex test suites