haoran-ni / ralph-loop-optimizer
PublicRalph Loop Optimizer: an AI-driven framework that turns any evaluatable codebase into a self-improving optimization loop for strategies, models, prompts, and workflows
An open-source framework that orchestrates AI-driven iterative improvements to code in a local Git repository using a user-provided evaluation command and goal.
How It Works
You hear about a helpful tool that lets AI automatically improve your project by trying changes and learning from tests.
You create a simple folder with your code and a test script that measures how well it works.
You tell the tool your goal, like 'make the score higher', and how to run the test, so it knows what success looks like.
The tool creates a clear plan of what files to touch and rules to follow; you read it over and make it perfect.
You launch it, and the AI makes one smart change at a time, tests it, learns the lesson, and saves the better version.
You peek at the updates, see scores improving, and stop when you're happy or the limit is reached.
Your project is now smarter and better performing, all thanks to the AI's helpful iterations.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.