autoresearch
FreeRuns bundled scriptsNot checkedRun Karpathy-style autonomous ML search on a real training repo: choose the right mode (setup, program.md, bounded loop, results interpretation, or…
by akillness★ 63 GitHub starsAbout this skill
autoresearch
Autoresearch is a closed-loop ML experimentation workflow:
- human writes
program.md - agent edits
train.py prepare.pystays fixed- every run gets the same 300-second budget
- lower
val_bpbwins - regressions get reverted
This skill should behave like a routing-first front door, not a giant tutorial. Pick the user's mode, enforce the immutable-harness rules, then hand them to the smallest useful script or reference.
When to use this skill
- Set up
karpathy/autoresearchon a real GPU machine - Write or refine
program.mdbefore a session - Run a bounded overnight
train.pysearch loop - Interpret
results.tsvafter a session - Adapt the workflow to tighter VRAM constraints without invalidating comparisons
- Explain the ML-specific boundary between
autoresearchand nearby eval tooling
Do not use this skill when
- The user wants to optimize a
SKILL.md, prompt, or repo-local workflow with frozen prompts/evals — useskill-autoresearch - The user wants app-level tracing, dataset-backed LLM evals, feedback review, or observability — use LangSmith, Braintrust, Weave, Promptfoo, or similar tools
- The job does not involve a real training repo,
program.md,train.py, fixed runtime budget, andval_bpbkeep/revert ratcheting - The user is really asking for a paper survey, general benchmark scan, or literature review with no intention to run the training loop
Core boundary
| Concern | autoresearch owns |
Route elsewhere |
|---|---|---|
| Mutable target | train.py in a real training repo |
prompts, app configs, SKILL.md, product behavior |
| Fixed evaluator | prepare.py, validation shard, TIME_BUDGET=300, chosen MAX_SEQ_LEN / EVAL_TOKENS for the session |
prompt/eval datasets, app scorecards, observability dashboards |
| Acceptance rule | keep only lower val_bpb; revert ties/regressions |
human review queues, app-level release gates |
| Main artifacts | program.md, results.tsv, kept/discarded commits |
prompt suites, traces, feedback datasets |
If that boundary does not fit, do not stretch this skill.
Required intake packet
Before acting, identify:
- Mode — setup,
program.md, run loop, results interpretation, or constrained hardware - Repository state — cloned or not, dependencies installed or not
- Hardware state — GPU / VRAM / CUDA / MLX / Windows path
- Session state — first baseline, active loop, or completed run
- Constraint state — target VRAM ceiling, whether
prepare.pyhas already been frozen for this session
Instructions
Step 1: Pick exactly one operating mode
Choose the smallest mode that answers the request:
Setup readiness
- install
uv - clone repo
- sync dependencies
- verify GPU/CUDA/uv with
scripts/check-hardware.sh - run the first baseline experiment
- install
program.mdauthoring- write or refine the human research charter
- record current baseline
val_bpb - prioritize hypotheses
- list what has already been tried
- freeze constraints before the loop starts
Bounded run loop
- confirm the evaluator is already fixed
- use
train.pyas the only mutable search surface - run the loop with keep/revert discipline
- log every experiment to
results.tsv
Results interpretation
- summarize best kept runs
- identify repeated failures or crash patterns
- extract what belongs in the next
program.md - distinguish genuine gains from one-off anomalies
Constrained-hardware adaptation
- set
MAX_SEQ_LENandEVAL_TOKENSbefore the session - keep them unchanged once the session starts
- adjust model/search strategy instead of cheating the evaluator mid-run
- route to community forks when CUDA assumptions do not hold
- set
Do not answer all five modes at once unless the user explicitly asked for a full end-to-end walkthrough.
Step 2: Re-state the immutable harness
Every mode must preserve these rules:
program.mdis human-authored and read-only during a sessiontrain.pyis the main mutable search surfaceprepare.pyis read-only once the session startsTIME_BUDGET=300stays fixedval_bpbis the main keep/revert metricresults.tsvis append-only- dependency set in
pyproject.tomlstays locked
If the user wants to change the evaluator, start a new comparison track, not the current session.
Step 3: Execute the chosen mode
Mode A — Setup readiness
Use this path when the repo is not yet runnable.
# Prerequisite: uv installed (e.g. `brew install uv` or `python3 -m pip install --user uv`)
git clone https://github.com/karpathy/autoresearch
cd autoresearch
uv sync
bash scripts/check-hardware.sh
uv run prepare.py
uv run train.py > run.log 2>&1
grep "^val_bpb:\|^peak_vram_mb:" run.log
Success condition: one baseline run completes and prints both val_bpb and peak_vram_mb.
Mode B — `program.m
Install autoresearch in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
BashReadWriteEditGlobGrepWebFetchBundled files
FAQ
What does the autoresearch skill do?
Run Karpathy-style autonomous ML search on a real training repo: choose the right mode (setup, program.md, bounded loop, results interpretation, or constrained-hardware adaptation), preserve the immutable prepare.py / 300-second / val_bpb contract, and route prompt/skill eval work away to LangSmith, Promptfoo, Braintrust, or skill-autoresearch.
How do I install the autoresearch skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the autoresearch skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic