lua2147/claude-toolkit-catalog/autoresearch

Claude Code and agent skill by lua2147/claude-toolkit-catalog

Trust tier 3
  • community
Source check pending

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/autoresearch

SKILL.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

https://github.com/karpathy/autoresearch

Quick Start (LLM Training — Original Use Case)

bash
git clone https://github.com/karpathy/autoresearch.git
cd autoresearch
# Install uv if needed
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install deps + prepare data (~2 min)
uv sync
uv run prepare.py
# Test a single training run (~5 min)
uv run train.py

Requires: Single NVIDIA GPU, Python 3.10+, uv

How the Loop Works

┌─────────────────────────────────────────┐
│ 1. Agent reads program.md (directive) │
│ 2. Agent modifies train.py │
│ 3. Run experiment (fixed 5-min budget) │
│ 4. Evaluate val_bpb metric │
│ 5. Keep improvement or revert │
│ 6. Loop → go to 1 │
└─────────────────────────────────────────┘
  • ~12 experiments/hour, ~100 overnight
  • Fixed time budget makes results directly comparable
  • Agent handles hypothesis → code change → evaluation → decision

Core Files

FileRoleWho edits
program.mdResearch directive & constraintsHuman
train.pyModel, optimizer, training loop (~630 lines)Agent
prepare.pyData download, tokenizer trainingNobody

Key Design Principles

  1. Fixed time budget — every experiment runs exactly 5 minutes regardless of what changed
  2. Single modification target — only train.py changes, keeping scope tight
  3. Self-contained — no distributed training, no external services
  4. Metric-driven — val_bpb (bits per byte) is the single optimization target

Tuning Parameters

ParamDefaultNotes
DEPTH8Primary model complexity knob
MAX_SEQ_LENvariesSequence length
DEVICE_BATCH_SIZEvariesPer-device batch
TOTAL_BATCH_SIZEvariesGlobal batch (powers of 2)
vocab_size8192Token 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
program.md: "Improve deal scoring accuracy. Modify scoring_model.py.
Metric: precision@10 on validation set. 5-min budget per run."
Landing Page Conversion
program.md: "Find higher converting landing page copy. Modify variants.json.
Metric: simulated CTR from A/B test framework. 5-min budget per run."
Outreach Copy Optimization
program.md: "Optimize InMail response rates. Modify templates.yaml.
Metric: response_rate on holdout set. 5-min budget per run."
Pipeline Signal Tuning
program.md: "Improve deal intent signal precision. Modify signal_weights.py.
Metric: F1 score on labeled signals. 5-min budget per run."

Running with Claude Code

The autoresearch pattern maps naturally to Claude Code's coding agent loops:

bash
# In a tmux session, point Claude at the research loop
claude --dangerously-skip-permissions -p "
Read program.md for your research directive.
Run experiments by modifying train.py, then run 'uv run train.py'.
After each run, evaluate val_bpb. Keep improvements, revert failures.
Continue iterating autonomously.
"

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/lua2147/claude-toolkit-catalog/autoresearch/badge)](https://verified-skill.com/skills/lua2147/claude-toolkit-catalog/autoresearch)

Something wrong with this skill or its page? Tell us.