ワンクリックで
autoresearch
Autonomous ML research - agent modifies GPT training code, runs 5-min experiments, keeps improvements
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Autonomous ML research - agent modifies GPT training code, runs 5-min experiments, keeps improvements
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Ask which skill or flow fits your situation. A router over the user-invoked skills in this repo.
Stages all changes and generates a lean Conventional Commits message via caveman-commit — user reviews and commits manually. Triggers on any commit intent: "commit", "stage my changes", "ready to push", "let's commit", "make a commit", "commit this", "push changes", "squash and commit", or any variation. Use whenever the user signals they're done with changes and ready to commit, even if they don't mention "message" or "caveman". Does NOT run git commit — outputs a ready-to-run command for the user to execute after review.
Always use browser-harness for any web interaction: automation, scraping, testing, or site/app work.
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
AI spend analytics — see where your token budget goes by task, model, tool, and project across 31 AI coding tools including Claude Code. Use when the user asks about AI costs, token usage, spend breakdown, or wants to optimize their AI budget.
A standalone adversarial PLAN-review loop where Claude Code (builder) and OpenAI Codex (read-only critic) tag-team an implementation plan before any code is written. Use this when you ALREADY have a plan or a clear idea and just want the cross-model stress-test — no requirements interview first. Claude drafts/loads the plan into PLAN.md, Codex reviews it in a read-only sandbox and returns VERDICT:APPROVED or VERDICT:REVISE, Claude revises and re-submits to the SAME Codex session (context preserved) until APPROVED or a configurable MAX_ROUNDS cap is hit. Human approves the converged plan before code. Use when the user says "/codex-review", "codex review my plan", "have Codex review my plan", "argue this plan with Codex", "adversarial plan review", "make Claude and Codex argue/fight over the plan", or is about to build something high-stakes (auth, schema, concurrency, migrations, payments) and wants a second-model sanity check on the PLAN before implementation. For a guided requirements interview BEFORE the rev
| name | autoresearch |
| description | Autonomous ML research - agent modifies GPT training code, runs 5-min experiments, keeps improvements |
Use when: User wants to run autonomous machine learning experiments, optimize neural network training, or conduct overnight research runs.
Source: karpathy/autoresearch (33K+ stars)
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.
train.py (model architecture, optimizer, hyperparameters, training loop)prepare.py (data prep, tokenizer, evaluation — read-only)program.md (your instructions — human can update to guide research direction)val_bpb (validation bits per byte) — lower is betterWhen 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.py
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)
autoresearch/<tag>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
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.
train.pygit add train.py
git commit -m "experiment: [short description]"
uv run train.py > run.log 2>&1
grep "^val_bpb:\|^peak_vram_mb:" run.log
tail -n 50 run.log for stack trace[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 (divide peak_vram_mb by 1024), or 0.0 for crashesstatus: keep, discard, or crashdescription: short text (NO COMMAS — tab-separated format)val_bpb improved (lower) → keep commit, advance branchval_bpb equal or worse → discard via git reset --hard HEAD~1All else being equal, simpler is better:
In train.py, everything is fair game:
prepare.py (it's read-only)evaluate_bpb function)VRAM is a soft constraint:
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: 8
Example 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)
Default: Single NVIDIA GPU (tested on H100)
Other platforms: See community forks in tools/autoresearch/README.md:
Smaller compute tuning: See tools/autoresearch/README.md for hyperparameter recommendations (TinyStories dataset, lower vocab_size, MAX_SEQ_LEN, DEPTH, etc.)
# 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~1
tools/autoresearch/ directorysetup.sh step 13Bash(uv *) and PowerShell(uv *) in settings.jsonprepare.py, train.py, program.md, pyproject.toml, uv.lockresults.tsv, data cache (~/.cache/autoresearch/)User: "Run autoresearch overnight on the baseline GPT model"
You:
cd tools/autoresearchmay3. Creating branch autoresearch/may3..."git checkout -b autoresearch/may3prepare.py, train.py, program.md, README.mdls ~/.cache/autoresearch/uv run prepare.pyresults.tsv with headeruv run train.py > run.log 2>&1results.tsvresults.tsv