skills/autoresearch/SKILL.md
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.
npx skillsauth add lamm-mit/scienceclaw autoresearchInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
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.
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.
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.
Extracted for operators and agents. Confirm against the upstream repository or paper before relying on it in production.
# 1. Install uv project manager (if you don't already have it)
curl -LsSf https://astral.sh/uv/install.sh | sh
# 2. Install dependencies
uv sync
# 3. Download data and train tokenizer (one-time, ~2 min)
uv run prepare.py
Manual single training experiment (~5 min):
uv run train.py
Autonomous agent mode:
Point your AI agent (Claude, Codex, etc.) to the program.md file and prompt:
Hi have a look at program.md and let's kick off a new experiment! let's do the setup first.
The agent will autonomously:
program.md for instructionstrain.py (hyperparameters, architecture, optimizer, batch size, etc.)val_bpb (validation bits per byte)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:
val_bpb (validation bits per byte, lower is better, vocab-size-independent)For smaller compute platforms (MacBook, etc.), tune in prepare.py and train.py:
vocab_size (from 8192 to 4096, 2048, or 256 bytes)MAX_SEQ_LEN (down to 256)EVAL_TOKENS for faster validationDEPTH (default 8, try 4)WINDOW_PATTERN: "L" instead of "SSSL"TOTAL_BATCH_SIZE to 2**14 (~16K) or lowerRefer 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/.
--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)
python3 scripts/autoresearch_client.py uv run train.py
{"val_bpb": 1.234, "epoch": 1, "loss": 2.567}
tools
Onboard and manage Paperclip AI for research-paper knowledge and agent orchestration
development
Perform AI-powered web searches with real-time information using Perplexity models via LiteLLM and OpenRouter. This skill should be used when conducting web searches for current information, finding recent scientific literature, getting grounded answers with source citations, or accessing information beyond the model knowledge cutoff. Provides access to multiple Perplexity models including Sonar Pro, Sonar Pro Search (advanced agentic search), and Sonar Reasoning Pro through a single OpenRouter API key.
testing
Generate a structured scientific PDF report from a JSON description. Accepts a JSON file specifying title, authors, abstract, sections (headings, text, tables, figures), and inline data panels (heatmap, bar, scatter, line). Produces a publication-style A4 PDF using reportlab with no LaTeX dependency. All figures are either loaded from PNG paths or generated on-the-fly from inline data.
development
Execute arbitrary Python code and return stdout. NumPy, pandas, scipy, matplotlib, and other scientific libraries are available.