AutoResearch
Let coding agents autonomously improve nanochat training on a single NVIDIA GPU.
- Source repo
- karpathy/autoresearch
- Stars
- ★ 101k
- Last updated
- 8mo ago
- FARS reviewed
- Nov 08, 2026
- Primary language
- Python
- FA score
- 48/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformCodex · Claude Code
- Cost
- Free software; you pay for model usage
- Setup effort
- High · needs real infrastructure
- You'll need
- Typical use
- An ML researcher with one NVIDIA GPU who wants a coding agent to run roughly a hundred short experiments overnight.
- Not a fit if
- Users without a single NVIDIA GPU
- Teams on macOS, Windows, or AMD hardware
- Anyone comparing results across different hardware
- Maintenance
- No commits for 6+ monthslast commit 2026-03-26+48.1 ★/day over 7 days
- Source review
- 48/100 · Major gaps
What does this agent do, and when should you use it?
AutoResearch is an autonomous experimentation framework built around a small but real LLM training workload derived from nanochat. Its three central components are prepare.py for fixed data and evaluation utilities, train.py for the agent-editable model and training loop, and program.md for human-authored agent instructions. Every experiment receives a fixed five-minute wall-clock training budget and is judged using val_bpb, where lower is better. An agent can repeatedly change the architecture, hyperparameters, optimizer, and batch size, then keep or discard each result and leave a log of the experiments. It is a self-hosted research workflow requiring local file and shell access, networked data preparation, and one NVIDIA GPU—not a hosted service or a general-purpose training platform.
The workflow begins with uv run prepare.py, which downloads training data, trains a BPE tokenizer, and provides the dataloader and evaluation utilities. Claude Code, Codex, or another coding agent then reads program.md and edits only train.py, which contains the complete GPT model, Muon + AdamW optimizer, and training loop. Each candidate is trained with uv run train.py for a fixed five-minute budget and evaluated through val_bpb. The agent keeps an improvement, discards a regression, and repeats while recording an experiment log. Humans change program.md to refine the research strategy; prepare.py is intentionally fixed.
- An ML researcher with one NVIDIA GPU who wants a coding agent to run roughly a hundred short experiments overnight.
- An agent-workflow developer comparing different program.md instructions to see which research strategy produces faster progress.
- A nanochat user searching architectures, optimizers, batch sizes, or training hyperparameters under a fixed compute-time budget.
- An individual researcher who wants reviewable experiment diffs by restricting automated edits to one train.py file.
- An engineer building a Mac, Windows, or AMD-oriented fork from a deliberately compact single-GPU training baseline.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
curl -LsSf https://astral.sh/uv/install.sh | sh
- Runtime
- Python 3.10+
How do you install or deploy this agent?
The documented runtime requires Python 3.10+, uv, and one NVIDIA GPU; testing is reported on an H100. Install and prepare the project with:
curl -LsSf https://astral.sh/uv/install.sh | sh
uv sync
uv run prepare.pyprepare.py downloads the dataset and trains the tokenizer; the one-time preparation is described as taking about two minutes. No API key or other credential is documented.
How do you use this agent?
First verify a manual experiment with:
uv run train.pyA run takes approximately five minutes. For autonomous mode, launch Claude Code, Codex, or another coding agent inside the repository and direct it to program.md. The provided starter prompt is:
Hi have a look at program.md and let's kick off a new experiment! let's do the setup first.
The agent should repeatedly edit train.py, run training, inspect val_bpb, and keep or discard each change. Humans refine the research behavior by editing program.md rather than directly conducting the usual Python-editing workflow.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- Automated changes are concentrated in train.py, keeping model, optimizer, and training-loop diffs relatively easy to review.
- A fixed five-minute budget makes architectures, model sizes, and batch choices comparable on the same hardware.
- The vocabulary-size-independent val_bpb metric supports fairer comparisons when experiments alter the vocabulary or architecture.
- The system is intentionally compact, centered on prepare.py, train.py, and program.md without distributed training or complex configuration.
- The current implementation explicitly requires one NVIDIA GPU and has only been tested on H100; CPU, MPS, AMD, and other environments need a fork or code changes.
- Results are not directly comparable across different hardware because the fixed-time design optimizes for each machine's throughput.
- Dataset preparation and repeated training require network access, filesystem writes, and sustained GPU compute.
- The default program.md is a bare-bones baseline; stronger research policies and multi-agent organizations must be designed by the adopter.
- The source provides no estimate of operating cost, documented recovery mechanism, or guarantee that autonomous experiments will improve the model.
How does this agent compare with similar options?
Compared with the full nanochat project, AutoResearch uses a simplified single-GPU implementation and frames research as agent edits to train.py followed by fixed-time val_bpb comparisons. nanochat offers broader platform techniques such as generic device support, autodetection, and a Flash Attention 3 fallback, while AutoResearch intentionally avoids that added complexity. The README also names community forks for macOS, MLX, Windows RTX, and AMD hardware.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| AutoResearch This agent | 48 · Major gaps | CLIFree + model costs | ★ 101k | 8mo ago | Python | Codex · Claude Code |
| Deep Researcher Agent | 47 · Major gaps | Agent plugin / skillFree + model costs | ★ 1.1k | 6mo ago | Python | Claude Code · OpenAI API · Claude API |
| AgileRL | 62 · Some gaps | Library / SDKFreemium | ★ 974 | 2d ago | Python | — |
| RecursiveMAS | 51 · Major gaps | CLIFree + model costs | ★ 992 | 2mo ago | Python | — |
How does FollowAgents rate this agent?
Why each dimension lost points
The README limits the stated edit scope to train.py and describes prepare.py as fixed. Its launch example nevertheless recommends disabling all permissions, and the materials provide no per-action confirmation, data protection, or side-effect controls, so least privilege, confirmation, and external-effects handling receive only partial credit. The README describes data downloads, tokenizer training, single-GPU training, and the val_bpb metric, making the main data flow fairly clear. A fixed five-minute run and keeping or discarding experiments offer some recoverability. It references nanochat and links related material, but gives no clear maintainer or update path.
The README's descriptions of the fixed five-minute budget, lower-is-better val_bpb, single-GPU setup, and file roles are broadly consistent. pyproject.toml specifies an exact Torch version, lower bounds for other dependencies, and a CUDA 12.8 index, but no lock file or availability guarantee is shown. The supplied material shows no error handling or user-facing failure diagnostics, so that criterion scores zero.
The README describes a single NVIDIA GPU target, the intended workflow, and tuning suggestions for smaller systems, while stating that other platforms are not currently supported. program.md and source code are absent, so finer trigger boundaries cannot be assessed; the README still gives some useful scenario and limitation guidance. Environment support is explicit but narrow, and H100 is identified as the tested device.
The README organizes content into operation, quick start, structure, design choices, platform support, and licensing. Installation steps, commands, and tuning suggestions are concrete. File names and roles are stable, examples are enough to start an experiment, and platform limitations are listed. The README declares MIT, but the license text is not included in this packet. A version is present, no changelog is supplied, and maintenance responsibility is only indirectly addressed through a statement about whether the author will take on broader platform support.
The purpose is clear: have an agent modify training code, run repeated fixed-budget experiments, and select by a validation metric, which could reduce manual experiment cycles. The README defines no standard agent report format or human review process. Continuous single-GPU runs cost about five minutes per iteration, and the cost-benefit depends on hardware and model changes; no benefit is quantified in the supplied materials.
The main workflow and metric are traceable to the README, while dependencies and version information are traceable to pyproject.toml; the two files broadly agree on the product name and Python dependencies. The core program, program.md, locked dependencies, and run artifacts are not included, limiting cross-checks. The README distinguishes design descriptions from platform limits, but some benefits remain expectations rather than demonstrated results.
- The README recommends disabling all permissions when launching the agent; the materials show no fine-grained permission plan or per-action confirmation.
- Only README and pyproject.toml are supplied; the training code and program.md are unavailable, so the agent's exact instructions, data handling, and recovery implementation cannot be checked.
- The project targets a single NVIDIA GPU; the README says other platform support is limited, and data preparation downloads data over the network.
FAQ
Is an H100 mandatory?
Will it run directly on Mac, CPU, AMD, or Windows?
Which files can the agent modify?
How does it decide whether an experiment succeeded?
What license and credentials does it require?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.