lamm-mit/scienceclaw/autoresearch
Claude Code and agent skill by lamm-mit/scienceclaw
- community
Checking that the SKILL.md file is still in the repository.
Autonomous AI agent that modifies and iteratively improves a GPT language model training setup, running experiments within a 5-minute time budget to optimize validation bits-per-byte.
Install
npx vskill@latest install lamm-mit/scienceclaw/autoresearchSKILL.md
The same SKILL.md was published earlier as lamm-mit/scienceclaw/autoresearch.
autoresearch
Autonomous AI agent that modifies and iteratively improves a GPT language model training setup, running experiments within a 5-minute time budget to optimize validation bits-per-byte.
Code repository
<https://github.com/karpathy/autoresearch>
Use this as the implementation source: clone the repo and follow its README for install, dependencies, and how to run code or experiments. The generated client prints JSON with a suggested `git clone` command.
Primary resource (landing page)
<https://github.com/karpathy/nanochat>
This is the paper or artifact home from DOI/registry metadata — not a JSON API. If this URL is arXiv, the generated client can still fetch live Atom metadata (title, abstract, authors) without a `BASE_URL. For other hosts, the client uses stub mode until you set a real BASE_URL` for a REST service.
What “running” this client does
The *_client.py script prints JSON that combines a GitHub repository (clone URL + suggested `git clone`) with optional paper context from arXiv (live Atom metadata when reference_url is arXiv). Run the real code by cloning the repo and following its README — the skill is your agent-facing entrypoint, not a substitute for the repo’s install steps.
To call a REST API instead, set `BASE_URL in scripts/autoresearch_client.py or wrap the upstream CLI with subprocess` after clone.
How to run the method (from the source)
Extracted for operators and agents. Confirm against the upstream repository or paper before relying on it in production.
Prerequisites
- Single NVIDIA GPU (tested on H100)
- Python 3.10+
- uv project manager
Installation
How to run
Manual single training experiment (~5 min):
Autonomous agent mode:
Point your AI agent (Claude, Codex, etc.) to the program.md file and prompt:
The agent will autonomously:
- Read
program.mdfor instructions - Modify
train.py(hyperparameters, architecture, optimizer, batch size, etc.) - Run training for exactly 5 minutes
- Evaluate using
val_bpb(validation bits per byte) - Keep or discard changes based on improvement
- Repeat autonomously
Configuration
Key files to understand:
- `prepare.py` — Fixed constants, one-time data prep (downloads training data, trains BPE tokenizer), runtime utilities. Do not modify.
- `train.py` — Single file edited by the agent. Contains GPT model, optimizer (Muon + AdamW), training loop. Fair game: architecture, hyperparameters, batch size, optimizer settings.
- `program.md` — Baseline instructions for agents. Edit this to customize agent behavior and research setup.
Training constraints:
- Fixed 5-minute time budget (wall clock, excluding startup/compilation) regardless of compute platform
- Metric:
val_bpb(validation bits per byte, lower is better, vocab-size-independent) - Expected frequency: ~12 experiments/hour, ~100 experiments overnight
For smaller compute platforms (MacBook, etc.), tune in prepare.py and train.py:
- Use smaller dataset (e.g., TinyStories)
- Decrease
vocab_size(from 8192 to 4096, 2048, or 256 bytes) - Lower
MAX_SEQ_LEN(down to 256) - Reduce
EVAL_TOKENSfor faster validation - Lower
DEPTH(default 8, try 4) - Use
WINDOW_PATTERN: "L"instead of"SSSL" - Reduce
TOTAL_BATCH_SIZEto2**14(~16K) or lower
Refer to notable forks for CPU/MacOS/Windows/AMD variants.
The same text lives in `scripts/USAGE.md *for tools that prefer reading files under* scripts/`.
Parameters
--time-budget (int) [optional, default=5] Fixed wall-clock training duration in minutes (default: 5) --metric (str) [optional, default=val_bpb] Optimization metric: val_bpb (validation bits per byte, lower is better)
Usage
Example Output
Security
- Security scanPassed, 95 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
- Repository stars
- 241
- Repository forks
- 41
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 21 Aug 2026, 3 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (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/lamm-mit/scienceclaw/autoresearch)