Autonomous research loop
An agent edits a bounded training file, runs fixed-budget experiments, and keeps changes that improve an objective metric.
Based on Andrej Karpathy's public content. Not affiliated with or endorsed by Andrej Karpathy.
Steps
- Restrict the agent to editing a single file
- Write human-authored Markdown instructions for the agent
- Run each experiment for a fixed wall-clock budget
- Evaluate on val_bpb and keep or discard the change
Covered in
GitHub · autoresearch: AI agents running research on single-GPU nanochat training automatically
Karpathy presents a compact system in which an AI agent autonomously modifies an LLM training program, runs fixed-duration experiments, evaluates them, and keeps or discards changes. He teaches that tightly constrained, comparable experiments—and human-written agent instructions—can turn a single-GPU repository into a lightweight autonomous research setup.
Skill Issue: Andrej Karpathy on Code Agents, AutoResearch, and the Loopy Era of AI
Karpathy teaches that the highest-leverage use of AI agents comes from restructuring work so multiple persistent agents can operate autonomously, in parallel, and against objective metrics without waiting for a human. He also argues that agents will reshape software, research, education, and digital work first, while physical-world applications will follow more slowly through sensors, actuators, and information markets.
Andrej Karpathy on Code Agents (No Priors, 2023) | Transcript
Karpathy argues that agentic coding has flipped software work from typing code to delegating "macro actions" to multiple parallel agents, making the human and token throughput the binding constraint. He extends this to home automation, autonomous research loops (auto research) for anything with objective metrics, distributed untrusted-compute research swarms, model speciation, and education written for agents rather than humans.