Autonomous Iteration Loop

•
1
•

Automates code optimization through a continuous cycle of modification, mechanical measurement, and regression testing.

Inspired by Andrej Karpathy’s autoresearch concept, the Iterate skill empowers Claude to autonomously improve a codebase against a single, measurable metric. By defining a goal, a scope of files, and a shell-based verification command, the agent executes a loop of ideation, modification, and verification. It keeps changes that improve the metric, discards regressions, and uses Git as a persistent memory of its progress. This skill is particularly effective for high-volume, repetitive improvements like increasing test coverage, optimizing performance, or resolving complex linting debt without manual supervision.

주요 기능

01Smart Bisection: Automatically identifies and isolates specific changes within a batch that caused regressions.
021 GitHub stars
03Configurable Stop Conditions: Terminates automatically based on iteration caps, target values, or performance stagnation.
04Mechanical Verification: Uses shell commands to extract numerical metrics for objective success measurement.
05Detailed Audit Log: Generates a comprehensive results.tsv file tracking every iteration, metric, and status.
06Git-Based Memory: Maintains a clear history of experiments and updates an 'iterate/best' tag for easy recovery.

사용 사례

01Overnight test coverage improvement by systematically generating and verifying missing test cases.
02Iterative performance tuning to reduce execution time or memory footprint in specific modules.
03Large-scale codebase refactoring to resolve linting or type-checking errors across hundreds of files.