lua2147/claude-toolkit-catalog/autoresearch
Claude Code and agent skill by lua2147/claude-toolkit-catalog
- community
Checking that the SKILL.md file is still in the repository.
Karpathy's autonomous research loop — an AI agent iteratively runs experiments, evaluates results, and keeps improvements. Use for optimization tasks like model training, A/B testing, parameter tuning, or any iterative experimentation workflow.
Install
npx vskill@latest install lua2147/claude-toolkit-catalog/autoresearchSKILL.md
The same SKILL.md was published earlier as lua2147/claude-toolkit-catalog/autoresearch.
Autoresearch
Andrej Karpathy's framework for AI-driven autonomous experimentation. An agent reads a research directive, modifies code, runs an experiment on a fixed time budget, evaluates results, and loops — keeping improvements, discarding failures.
Repo
Quick Start (LLM Training — Original Use Case)
Requires: Single NVIDIA GPU, Python 3.10+, uv
How the Loop Works
- ~12 experiments/hour, ~100 overnight
- Fixed time budget makes results directly comparable
- Agent handles hypothesis → code change → evaluation → decision
Core Files
| File | Role | Who edits | |
|---|---|---|---|
program.md | Research directive & constraints | Human | |
train.py | Model, optimizer, training loop (~630 lines) | Agent | |
prepare.py | Data download, tokenizer training | Nobody |
Key Design Principles
- Fixed time budget — every experiment runs exactly 5 minutes regardless of what changed
- Single modification target — only
train.pychanges, keeping scope tight - Self-contained — no distributed training, no external services
- Metric-driven —
val_bpb(bits per byte) is the single optimization target
Tuning Parameters
| Param | Default | Notes | |
|---|---|---|---|
DEPTH | 8 | Primary model complexity knob | |
MAX_SEQ_LEN | varies | Sequence length | |
DEVICE_BATCH_SIZE | varies | Per-device batch | |
TOTAL_BATCH_SIZE | varies | Global batch (powers of 2) | |
vocab_size | 8192 | Token vocabulary | |
WINDOW_PATTERN | "L"/"SSSL" | Attention pattern |
Adapting the Pattern for Kadenwood
The autoresearch loop pattern can be applied beyond LLM training:
Deal Scoring Optimization
Landing Page Conversion
Outreach Copy Optimization
Pipeline Signal Tuning
Running with Claude Code
The autoresearch pattern maps naturally to Claude Code's coding agent loops:
Or use the coding-agent-loops skill for persistent tmux-based execution.
Community Forks
- macOS fork available (no NVIDIA required)
- Windows fork available
- For smaller GPUs: use TinyStories dataset, reduce vocab_size, lower DEPTH
License
MIT
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/autoresearch/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lua2147/claude-toolkit-catalog/autoresearch)