Hysen Labs
Open-source project
karpathy/autoresearch avatar
karpathy

autoresearch

GitHub describes it as AI agents running research on single-GPU nanochat training automatically. The repository metadata lists Python as its primary language. This article stays within the project description and details documented in the GitHub repository README.

93,784 stars13,300 forksPythonLicense varies
01
DEEP OPEN-SOURCE ANALYSIS

karpathy/autoresearch: autoresearch

GitHub describes it as AI agents running research on single-GPU nanochat training automatically. The repository metadata lists Python as its primary language. This article stays within the project description and details documented in the GitHub repository README.

02
DEEP OPEN-SOURCE ANALYSIS

Repository scope

GitHub describes it as AI agents running research on single-GPU nanochat training automatically. The repository metadata lists Python as its primary language. The README describes the project this way: One day, frontier AI research used to be done by meat computers in between eating, sleeping, having other fun, and synchronizing once in a while using sound wave interconnect in the ritual of "group meeting". That era is long gone. Research is now entirely the domain of autonomous swarms of AI agents running across compute cluster megastructures in the skies. The agents claim that we are now in the 10,205th generation of the code base, in any case no one could tell if that's right or wrong as the "code" is now a self-modifying binary that has grown beyond human comprehension. This repo is the story of how it all began. -@karpathy, March 2026 .

03
DEEP OPEN-SOURCE ANALYSIS

autoresearch

The README section "autoresearch" states: The idea: give an AI agent a small but real LLM training setup and let it experiment autonomously overnight. It modifies the code, trains for 5 minutes, checks if the result improved, keeps or discards, and repeats. You wake up in the morning to a log of experiments and (hopefully) a better model. The training code here is a simplified single-GPU implementation of nanochat. The core idea is that you're not touching any of the Python files like you normally would as a researcher. Instead, you are programming the program.md Markdown files that provide context to the AI agents and set up your autonomous research org. The default program.md in this repo is intentionally kept as a bare bones baseline, though it's obvious how one would iterate on it over time to find the "research org code" that achieves the fastest research progress, how you'd add more agents to the mix, etc. A bit more context on this project is here in this tweet and this tweet.

04
DEEP OPEN-SOURCE ANALYSIS

How it works

The README section "How it works" states: - prepare.py , fixed constants, one-time data prep (downloads training data, trains a BPE tokenizer), and runtime utilities (dataloader, evaluation). Not modified. - train.py , the single file the agent edits. Contains the full GPT model, optimizer (Muon + AdamW), and training loop. Everything is fair game: architecture, hyperparameters, optimizer, batch size, etc. This file is edited and iterated on by the agent . - program.md , baseline instructions for one agent. Point your agent here and let it go. This file is edited and iterated on by the human .

05
DEEP OPEN-SOURCE ANALYSIS

How it works

The README section "How it works" states: By design, training runs for a fixed 5-minute time budget (wall clock, excluding startup/compilation), regardless of the details of your compute. The metric is val bpb (validation bits per byte) , lower is better, and vocab-size-independent so architectural changes are fairly compared.

06
DEEP OPEN-SOURCE ANALYSIS

Editorial conclusion

The repository README is the source for this review. It does not replace a local installation or an independent test.

07
DEEP OPEN-SOURCE ANALYSIS

Official sources

08
Community notes

Community notes