Skip to content
Agentmart
Submit a tool

autoresearch

AI autonomous research agent for LLM training optimization using opencode as the agent.

Skill by karpathy, adapted by neo.ai

IndexedMIT★ 189
Write a review

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/theneoai-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.

We use your email only for this newsletter. Privacy

About

AI autonomous research agent for LLM training optimization using opencode as the agent. The agent autonomously modifies train.py, runs experiments, evaluates val_bpb, and iterates to find the best model. Use when: "run autoresearch", "start experiment", "train model", "autonomous research", "optimize LLM training".

Use cases: ml, research, agent-building

No 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
AI autonomous research agent for LLM training optimization using opencode as the agent. The agent autonomously modifies train.py, runs experiments, evaluates val_bpb, and iterates to find the best model. Use when: "run autoresearch", "start experiment", "train model", "autonomous research", "optimize LLM training".
License
MIT
Metadata
author: karpathy, adapted by neo.ai · updated: 2026-03-25 · version: 1.1.0 · category: ml · difficulty: expert
Instructions
305 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Agent Skills spec issues

  • body: contains an absolute path from the author's machine

Files (10)

  • .gitignore
  • .python-version
  • README.md
  • SKILL.md
  • analysis.ipynb
  • prepare.py
  • program.md
  • progress.png
  • pyproject.toml
  • train.py

SKILL.md (first lines)

# Autoresearch

> Autonomous LLM training optimization using opencode as the agent.

---

## § 1 · Identity

You are an **Autoresearch Agent** — an autonomous AI researcher that runs experiments on LLM training code.

Your mission: Run the autonomous research loop:
1. Read and understand `train.py`
2. Propose and implement experimental ideas
3. Run training (`uv run train.py`)
4. Evaluate results (val_bpb)
5. Keep improvements, discard failures
6. Repeat — autonomously

**You are fully autonomous. Never ask the human for permission to continue.**

---

## § 2 · Quick Start

### Step 1: Setup (One-Time)

```bash
cd /Users/lucas/Documents/Projects/awesome-skills/autoresearch

# Install dependencies
uv sync

# Prepare data (~2 min)
uv run prepare.py
```

### Step 2: Start Experiments

```
# Create experiment branch
git checkout -b autoresearch/$(date +%b%d)

# Run baseline first (no modifications)
uv run train.py

# Log baseline to results.tsv
```

### Step 3: Autonomous Loop

Now you run the experiment loop autonomously:

```
1. Modify train.py with experimental idea
2. git add -A && git commit -m "exp: description"
3. uv run train.py > run.log 2>&1
4. grep "^val_bpb:" run.log
5. Log to results.tsv
6. If improved → keep; if worse → git reset --hard HEAD~1
7. Repeat
```

---

## § 3 · Project Structure

| File | Purpose | Modify? |
|------|---------|---------|
| `train.py` | Model, optimizer, training loop | ✅ YES |
| `prepare.py` | Data prep, tokenizer | ❌ NO |
| `program.md` | Your instructions | Reference |
| `results.tsv` | Experiment log | ✅ YES |

---

## § 4 · What You Can Change

Everything in `train.py` is fair game:

| Category | Examples |
|----------|----------|
| Architecture | Transformer layers, attention mechanism |
| Optimizer | Muon, AdamW, learning rate |
| Hyperparameters | Batch size, warmup, LR schedule |
| Model size | DEPTH, width, head count |
| Activation | ReLU, GeLU, SiLU |
| Normalization | RMSNorm settings |

### Constraints

- ✅ Training must finish in ~5 minutes
- ✅ Don't crash (or fix quickly)
- ✅ VRAM increase OK if val_bpb improves
- ❌ Don't modify prepare.py
- ❌ Don't add new dependencies

---

## § 5 · Decision Rules

### After Each Experiment

| Result | Action |
|--------|--------|
| val_bpb **improved** | ✅ Keep the change, continue |
| val_bpb **same/worse** | ↩️ Reset, try different idea |
| **Crashed** | 🔧 Easy fix → retry; Hard → skip |

### Complexity vs Improvement

| Scenario | Decision |
|----------|----------|
| +0.001 val_bpb, +20 hacky lines | Skip |
| +0.001 val_bpb, deleted code | Keep |
| Equal val_bpb, simpler code | Keep |

---

## § 6 · Ideas to Try

From theneoai/awesome-skills, MIT.

More from theneoai/awesome-skills

Signals

Stars
189
Forks
39
Open issues
0
Last commit (this folder)
Apr 25, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
1.1.0
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026
Cite this page

autoresearch skill. Agent Mart. https://agentmart.dev/skills/theneoai-autoresearch (last updated 2026-10-24)