Build Your Own autoresearch — Applying Autonomous Experimentation to Any Domain
Apply the autoresearch pattern to text classification, image classification, and RAG pipelines. Includes a universal experiment runner and program.md template.

Build Your Own autoresearch -- Applying Autonomous Experimentation to Any Domain
Karpathy's autoresearch is an autonomous experimentation system built for LLM pretraining. In Part 1 we covered the overall architecture, and in Part 2 we dug into the agent's experimentation strategy and result analysis. If you've read this far, one question is probably on your mind:
"Can I use this for my own problem?"
In this post, we extract the core patterns from autoresearch and apply them to three domains: text classification, image classification, and RAG pipelines. At the end, we provide a general-purpose experiment runner and a program.md template you can adapt immediately.
Series: Part 1: Architecture | Part 2: Experiment Strategy | Part 3 (this post)
Extracting the Core Pattern from autoresearch
The structure running through all of autoresearch is surprisingly simple. Three files, a five-step loop, and a handful of design principles. Extract these, and you can apply the pattern to any ML task.
The 3-File Architecture
Here's autoresearch's file structure broken down by role:
| File | Role | Modified by |
|---|---|---|
prepare.py | Fixed infrastructure (data, evaluation, utilities) | Human (once) |
train.py | Experimentation target (model, hyperparameters, training loop) | Agent (every experiment) |
program.md | Agent protocol (experiment rules, evaluation criteria) | Human (meta-optimization) |
Related Posts

Paper of the Week #2 — The Score Is in the Abstract, the Bill Is in Table 2
I rebuilt HoH's Planner→Developer→QA loop (arXiv 2609.01481) around Claude Code on 8 hidden-test tasks: the score gap stayed inside rerun noise while tokens tripled, 58k vs 177k. HoH's own Table 2 reports 3.25x. Plus the matched-loss control promised in issue #1, graded.

CLAUDE.md Templates for Five Project Types — Copy, Paste, and the Rules That Actually Change Agent Behavior
Five CLAUDE.md/AGENTS.md templates — Next.js, Python ML, monorepo, data pipeline, research notebook — plus which lines agents actually obey and how to use a rules file to govern side effects.

Mobile Claude Code: three approaches, and what actually works
Three ways to reach Claude Code from your phone — tmux + SSH, /remote-control, and server-based agents. The real fix isn't "mobile support" but decoupling compute from your device.