What problem does it solve?
This Skill automates the process of optimizing code and prompts, allowing users to conduct experiments on a codebase and fine-tune prompts without manual intervention.
Core Features & Use Cases
- Autonomous Experiment Loop: Automatically mutate files, run benchmark scripts, and check metrics, keeping or discarding changes based on the results.
- Three Modes: Supports code optimization, prompt/template optimization, and outreach A/B testing.
- Customizable Benchmarks: Run custom scripts to evaluate metrics based on specific criteria.
- Integration with Claude Code CLI: Leverages Claude Code CLI for code mutation and prompt generation.
- Use Case: Optimize code performance by running the autodev mode and watching the codebase evolve automatically. Similarly, fine-tune prompt templates by running the autoprompt mode.
Quick Start
Initialize the experiment by running: python autodev.py init --mode autodev --target train.py --metric "val_bpb" --direction lower. To run the experiment loop, execute: python autodev.py run --max-iterations 100.