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…
Skill by lamm-mit
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/lamm-mit-autoresearch
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: ml, finance, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/autoresearch
What's inside
- Skill name
autoresearch- Description
- 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.
- License
- Apache-2.0
- Instructions
- 114 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Instructions call the network
Files (3)
- SKILL.md
- USAGE.md · scripts/
- autoresearch_client.py · scripts/
SKILL.md (first lines)
## 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](https://docs.astral.sh/uv/) project manager
## Installation
```bash
# 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
```
## How to run
**Manual single training experiment (~5 min):**
```bash
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:
1. Read `program.md` for instructions
2. Modify `train.py` (hyperparameters, architecture, optimizer, batch size, etc.)
3. Run training for exactly 5 minutes
4. Evaluate using `val_bpb` (validation bits per byte)
5. Keep or discard changes based on improvement
6. 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](https://huggingface.co/datasets/karpathy/tinystories-gpt4-clean))
- Decrease `vocab_size` (from 8192 to 4096, 2048, or 256 bytes)
- Lower `MAX_SEQ_LEN` (down to 256)
- Reduce `EVAL_TOKENS` for faster validation
- Lower `DEPTH` (default 8, try 4)
- Use `WINDOW_PATTERN: "L"` instead of `"SSSL"`
- Reduce `TOTAL_BATCH_SIZE` to `2**14` (~16K) or lower
Refer to [notable forks](https://github.com/karpathy/autoresearch#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
```bash
python3 scripts/autoresearch_client.py uv run train.py
```
### Example Output
```json
{"val_bpb": 1.234, "epoch": 1, "loss": 2.567}
```From lamm-mit/scienceclaw, Apache-2.0.
More from lamm-mit/scienceclaw
- 0.516score
fem-analysis
lamm-mit
Modal analysis of a membrane STL using Kirchhoff plate FEM (scipy eigensolver).
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
geometry-generator
lamm-mit
Generate parametric bioinspired ribbed membrane STL geometry via LLM-guided design.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
drugbank-database
lamm-mit
Access and analyze comprehensive drug information from the DrugBank database including drug properties, interactions, targets, pathways, chemical structures…
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
esm
lamm-mit
Comprehensive toolkit for protein language models including ESM3 (generative multimodal protein design across sequence, structure, and function) and ESM C…
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
disease-research
lamm-mit
Generate comprehensive disease research reports using 100+ ToolUniverse tools.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
generate-image
lamm-mit
Generate or edit images using AI models (FLUX, Gemini).
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
ase
lamm-mit
Atomic Simulation Environment (ASE) for computational materials science.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
askcos
lamm-mit
Retrosynthetic template relevance prediction using a locally deployed ASKCOS TorchServe service.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
pylabrobot
lamm-mit
Vendor-agnostic lab automation framework.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
drug-research
lamm-mit
Generates comprehensive drug research reports with compound disambiguation, evidence grading, and mandatory completeness sections.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
biorxiv-database
lamm-mit
Efficient database search tool for bioRxiv preprint server.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
jax-modal-analysis
lamm-mit
3D tetrahedral FEM modal analysis of a membrane STL.
SkillCFreshness: C★ 250Claude Code +9
Signals
- Stars
- 250
- Forks
- 47
- Open issues
- 1
- Last commit (this folder)
- Mar 25, 2026 (7 months ago)
- Last release
- Jun 23, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/lamm-mit/scienceclaw
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from lamm-mit
- 0.516score
disease-research
lamm-mit
Generate comprehensive disease research reports using 100+ ToolUniverse tools.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
biorxiv-database
lamm-mit
Efficient database search tool for bioRxiv preprint server.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
askcos
lamm-mit
Retrosynthetic template relevance prediction using a locally deployed ASKCOS TorchServe service.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
ase
lamm-mit
Atomic Simulation Environment (ASE) for computational materials science.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
pylabrobot
lamm-mit
Vendor-agnostic lab automation framework.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
drug-research
lamm-mit
Generates comprehensive drug research reports with compound disambiguation, evidence grading, and mandatory completeness sections.
SkillCFreshness: C★ 250Claude Code +9
Cite this page
autoresearch skill. Agent Mart. https://agentmart.dev/skills/lamm-mit-autoresearch (last updated 2026-10-24)