How to Use the Karpathy Loop to Make AI Improve Itself
Want help applying this to your idea? Tell me what you are trying to build and where you are stuck.
Send an emailInstead of manually fixing AI mistakes in chat, wrap your agent in an automated evaluation loop with an objective score function so it iterates until every test passes.
The 3 Components of a Self-Improving Loop
1. A mutable artifact (code file, prompt, or copy draft). 2. An objective verifier script or rubric that outputs a numeric score. 3. A loop runner that keeps mutations that improve the score and reverts regressions.
Ready to build something useful?
Use this guide as a starting point, then test your setup on one real task. If you want help finding a use case or building an AI agent, send me your problem statement.