autoresearch
Skill4 starsChanged 6 months agoMITView on GitHub
Autonomous ML research - agent modifies GPT training code, runs 5-min experiments, keeps improvements
- Deletes or force-pushes
100 other projects use a version of this.
Adopted by
Most recently taken up by
- thistleknot/skillstheir own version, first seen Nov 8, 2026
- WdBlink/autoresearch-papertheir own version, first seen Nov 8, 2026
- OpenLAIR/dr-clawtheir own version, first seen Nov 8, 2026
- taixuann/development-spacetheir own version, first seen Nov 8, 2026
- TidalPaladin/skillstheir own version, first seen Nov 8, 2026
- usecompai/compound-operations-modeltheir own version, first seen Nov 8, 2026
Used with
Projects with it also use aeon-update, auto-workflow and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
aaronjmarsSkillaeon-update
Pull framework updates from the upstream Aeon repo into this instance - 3-way merges canon's new commits into a PR, never clobbering operator config.
Also in 4 projects that use this
aaronjmarsSkillauto-workflow
Two-mode aeon.yml workflow builder - analyze inspects URLs and emits a tiered, signal-verified skill-enablement plan plus an aeon.yml diff; enable flips slugs to enabled:true and opens a PR.
Also in 4 projects that use this
- +10 more from aaronjmars
Other versions100 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 100
- github/awesome-copilot★ 41ksame name
- Yeachan-Heo/oh-my-claude-sisyphus★ 41ksame name
- Yeachan-Heo/oh-my-claudecode★ 41ksame name
- Yeachan-Heo/oh-my-codex★ 34ksame name
- AgriciDaniel/claude-obsidian★ 16ksame name
- Orchestra-Research/AI-research-SKILLs★ 13ksame name
- zechenzhangAGI/AI-research-SKILLs★ 13ksame name
- Orchestra-Research/AI-Research-SKILLs★ 12ksame name
- advaitpaliwal/feynman★ 10ksame name
- companion-inc/feynman★ 10ksame name
90 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository79 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- 21st-magicSkill
- alpacaSkill
- ask-mattSkill
- auto-stage-commitSkill
- browser-harnessSkill
- codebase-designSkill
- codeburnSkill
- codex-reviewSkill
- compact-memorySkill
- connect-recommendSkill
- connect-required-verification-informationSkill
- decision-mappingSkill
- delegate-taskSkill
- design-an-interfaceSkill
- design-mdSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- edit-articleSkill
- extract-designSkill
- ffmpegSkill
- find-skillsSkill
- firecrawlSkill
- generateSkill
- git-guardrails-claude-codeSkill
- grillingSkill
- grill-me-codexSkill
- grill-meSkill
- grill-with-docs-codexSkill
- grill-with-docsSkill
- gwSkill
- handoffSkill
- implementSkill
- improve-codebase-architectureSkill
- kie-aiSkill
- lightragSkill
- llmfitSkill
- loop-meSkill
- migrate-to-shoehornSkill
- notebooklmSkill
- obsidian-vaultSkill
- openspaceSkill
- playwrightSkill
- prototypeSkill
- qaSkill
- request-refactor-planSkill
- resolving-merge-conflictsSkill
- reviewSkill
- roastSkill
- scaffold-exercisesSkill
- session-handoffSkill
- setup-matt-pocock-skillsSkill
- setup-pre-commitSkill
- site-teardownSkill
- skill-discoverySkill
- skilluiSkill
- spline-3dSkill
- stripe-appsSkill
- stripe-best-practicesSkill
- stripe-directorySkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 10 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 96 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
When user says to start autoresearch, verify setup first:
- Distinctive: line 44
Before starting the autonomous loop, work with the user to:
- Distinctive: line 74
Confirm with user: before starting the autonomous loop
- Distinctive: line 82
Review state: Check current branch/commit
- Very specific: line 99
If grep output is empty → run crashed → read tail -n 50 run.log for stack trace
- Distinctive: line 100
If trivial fix (typo, missing import) → fix and re-run
- Distinctive: line 101
If fundamental issue → skip, log as "crash", move on
- Very specific: line 112
If val_bpb improved (lower) → keep commit, advance branch
- Very specific: line 113
If val_bpb equal or worse → discard via git reset --hard HEAD~1
- Distinctive: line 118
If run exceeds 10 minutes, kill it and treat as failure (discard)
- Distinctive: line 121
All else being equal, simpler is better:
- Distinctive: line 145
Don't blow it up dramatically
- Distinctive: line 146
If OOM crash → log as "crash" and try something smaller
- Very specific: line 237
Read prepare.py, train.py, program.md, README.md
- Very specific: line 238
Check if data exists: ls ~/.cache/autoresearch/
- Very specific: line 250
Always log: every experiment to results.tsv
“Common” is measured: kept by at least 6 in 10 of the 96 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AutoResearch - Autonomous ML Research Agent
Use when: User wants to run autonomous machine learning experiments, optimize neural network training, or conduct overnight research runs.
Source: karpathy/autoresearch (33K+ stars)
What This Does
AutoResearch enables autonomous AI-driven machine learning research. You (the agent) modify GPT training code, run 5-minute experiments on a GPU, evaluate improvements, and iterate without human intervention. The human can leave you running overnight for ~100 experiments while they sleep.
Core Concept
- You modify:
train.py(model architecture, optimizer, hyperparameters, training loop) - You don't touch:
prepare.py(data prep, tokenizer, evaluation — read-only) - You edit for human:
program.md(your instructions — human can update to guide research direction) - Metric:
val_bpb(validation bits per byte) — lower is better - Fixed time budget: 5 minutes per experiment (wall clock, excluding startup)
Quick Start (First Time)
When user says to start autoresearch, verify setup first:
# 1. Navigate to autoresearch directory
cd tools/autoresearch
# 2. Check if data exists
ls ~/.cache/autoresearch/
# If missing, run data prep (one-time, ~2 min):
uv run prepare.py
# 3. Test baseline run (~5 min)
uv run train.pyExperiment Setup
Before starting the autonomous loop, work with the user to:
- Agree on a run tag based on today's date (e.g.,
may3,may3-gpu0)- Branch name:
autoresearch/<tag> - Branch must NOT already exist (this is a fresh run)
- Branch name:
- Create the branch:
git checkout -b autoresearch/<tag> - Read in-scope files for full context:
README.md(repo overview)prepare.py(fixed constants, evaluation harness)train.py(what you'll modify)program.md(your instructions)
- Initialize results log:
echo -e "commit\tval_bpb\tmemory_gb\tstatus\tdescription" > results.tsv - Run baseline (unchanged
train.py):uv run train.py > run.log 2>&1 grep "^val_bpb:\|^peak_vram_mb:" run.log - Log baseline to results.tsv
- Confirm with user before starting the autonomous loop
The Autonomous Loop
CRITICAL: Once the loop starts, NEVER STOP unless the user manually interrupts you. Do NOT ask "should I continue?" — the user might be asleep. You run indefinitely.
Loop Steps (Repeat Forever)
- Review state: Check current branch/commit
- Ideate: Pick an experimental idea (architecture change, optimizer tweak, hyperparameter adjustment, etc.)
- Modify: Edit
train.py - Commit:
git add train.py git commit -m "experiment: [short description]" - Run experiment:
uv run train.py > run.log 2>&1 - Extract results:
grep "^val_bpb:\|^peak_vram_mb:" run.log - Check status:
- If grep output is empty → run crashed → read
tail -n 50 run.logfor stack trace - If trivial fix (typo, missing import) → fix and re-run
- If fundamental issue → skip, log as "crash", move on
- If grep output is empty → run crashed → read
- Log to results.tsv:
[commit_hash] [val_bpb] [memory_gb] [status] [description]commit: 7-char short hashval_bpb: 6 decimal places (e.g., 0.997900), or 0.000000 for crashesmemory_gb: peak VRAM in GB, rounded to .1f (dividepeak_vram_mbby 1024), or 0.0 for crashesstatus:keep,discard, orcrashdescription: short text (NO COMMAS — tab-separated format)
- Decide:
- If
val_bpbimproved (lower) → keep commit, advance branch - If
val_bpbequal or worse → discard viagit reset --hard HEAD~1
- If
- Repeat from step 1
Timeout Handling
- Each run should take ~5 minutes + overhead (~6-7 min total)
- If run exceeds 10 minutes, kill it and treat as failure (discard)
Simplicity Criterion
All else being equal, simpler is better:
- A 0.001 val_bpb improvement that adds 20 lines of hacky code? Probably not worth it.
- A 0.001 val_bpb improvement from deleting code? Definitely keep.
- Improvement of ~0 but much simpler code? Keep (simplification win).
What You CAN Modify
In train.py, everything is fair game:
- Model architecture (depth, width, attention patterns)
- Optimizer (Muon, AdamW, learning rate, warmup, decay)
- Hyperparameters (batch size, gradient accumulation)
- Training loop (mixed precision, gradient clipping, etc.)
What You CANNOT Do
- Modify
prepare.py(it's read-only) - Install new packages or change dependencies
- Modify the evaluation harness (
evaluate_bpbfunction) - Change the 5-minute time budget
VRAM Constraint
VRAM is a soft constraint:
- Some increase is acceptable for meaningful val_bpb gains
- Don't blow it up dramatically
- If OOM crash → log as "crash" and try something smaller
Expected Throughput
- ~12 experiments per hour (~5 min each)
- ~100 experiments over 8 hours of sleep
- User wakes up to a full log of results and (hopefully) a better model
Results Format
Example output from a run:
---
val_bpb: 0.997900
training_seconds: 300.1
total_seconds: 325.9
peak_vram_mb: 45060.2
mfu_percent: 39.80
total_tokens_M: 499.6
num_steps: 953
num_params_M: 50.3
depth: 8Example results.tsv:
commit val_bpb memory_gb status description
a1b2c3d 0.997900 44.0 keep baseline
b2c3d4e 0.993200 44.2 keep increase LR to 0.04
c3d4e5f 1.005000 44.0 discard switch to GeLU activation
d4e5f6g 0.000000 0.0 crash double model width (OOM)Platform Support
Default: Single NVIDIA GPU (tested on H100)
Other platforms: See community forks in tools/autoresearch/README.md:
- MacOS: miolini/autoresearch-macos, trevin-creator/autoresearch-mlx
- Windows: jsegov/autoresearch-win-rtx
- AMD: andyluo7/autoresearch
Smaller compute tuning: See tools/autoresearch/README.md for hyperparameter recommendations (TinyStories dataset, lower vocab_size, MAX_SEQ_LEN, DEPTH, etc.)
Key Commands
# Navigate to autoresearch
cd tools/autoresearch
# Install dependencies (first time)
uv sync
# Data prep (one-time)
uv run prepare.py
# Run single experiment
uv run train.py
# Run with log capture
uv run train.py > run.log 2>&1
# Extract results
grep "^val_bpb:\|^peak_vram_mb:" run.log
# Read error trace
tail -n 50 run.log
# Check git state
git log --oneline -n 10
# Discard failed experiment
git reset --hard HEAD~1Integration Notes
- Location:
tools/autoresearch/directory - Setup: Auto-installed via
setup.shstep 13 - Permissions:
Bash(uv *)andPowerShell(uv *)insettings.json - Files tracked:
prepare.py,train.py,program.md,pyproject.toml,uv.lock - Files git-ignored:
results.tsv, data cache (~/.cache/autoresearch/)
Usage Example
User: "Run autoresearch overnight on the baseline GPT model"
You:
cd tools/autoresearch- "Let's set up a new run. I propose the tag
may3. Creating branchautoresearch/may3..." git checkout -b autoresearch/may3- Read
prepare.py,train.py,program.md,README.md - Check if data exists:
ls ~/.cache/autoresearch/ - If missing:
uv run prepare.py - Initialize
results.tsvwith header - Run baseline:
uv run train.py > run.log 2>&1 - Extract results and log to
results.tsv - "Baseline is logged. Starting autonomous research loop. I'll run experiments until you stop me."
- LOOP FOREVER: ideate → modify → commit → run → evaluate → keep/discard → repeat
Remember
- Never stop unless manually interrupted
- Never ask "should I continue?" mid-loop
- Always log every experiment to
results.tsv - Simplicity matters — don't add complexity for tiny gains
- VRAM is soft — some increase OK, but don't blow it up
- Fixed 5-min budget — experiments are always comparable
- Lower val_bpb = better — that's the only metric that matters
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

