Karpathy's 630-Line Agent Self-Loop Experiment
FinanceYF5 · x · 2026-07-07
In March 2026, Karpathy released a 630-line project: the Agent modifies code itself, trains for 5 minutes, and keeps the changes if metrics improve, or rolls back otherwise. Over two days, it ran 700 experiments and found 20 optimizations that he hadn't manually discovered in 20 years. Shopify's CEO ran it overnight, achieving a 19% quality improvement while halving the model size.
Related event: The Karpathy Loop: Building Autonomous AI Agent Workflows(9 posts)→
More from coding & agent
- Give AI a clean personal-data-free machine with full control: agents running 24/7 teach you more than any course — EXM7777 · 2026-10-27
- 20 papers across 6 areas to master production-grade agentic AI engineering — MaryamMiradi · 2026-10-27
- LangChain SF meetup to compare decision model Jev vs LLM judges for agent evals — LangChain · 2026-10-27
- How Clang recognizes your popcount loop and swaps it for a single CPU instruction — jimmykoppel · 2026-10-27
- Claude spots broken physics in AI videos, fixes them with CFD and finite-element verification — OfirPress · 2026-10-27
- One prompt: Claude Opus 5.5 adds drone flight mode to RV travel game — ezshine · 2026-10-27