Skip to content
Back to skills

Autoresearch

ASecurity

Autonomous ML research agent inspired by Karpathy's autoresearch. Given a training codebase, the agent runs continuous experimentation loops: modify model code, train for 5 minutes, check if val_bpb improved, keep or discard changes. Use when the user mentions 'start autoresearch', 'auto experiment', 'train agent', 'autonomous research', '自动实验', '自动训练', '自动优化模型'.

  • 3 stars
  • 0 votes
  • 0 copies
  • 16 views
  • Added September 2, 2026
ai-agentspythongit

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add shengdabai/Tony-Claude-Code-Skills --skill autoresearch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Autoresearch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Autoresearch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shengdabai-autoresearch/badge)](https://www.skillsdirectory.com/skills/shengdabai-autoresearch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: autoresearch
description: "Autonomous ML research agent inspired by Karpathy's autoresearch. Given a training codebase, the agent runs continuous experimentation loops: modify model code, train for 5 minutes, check if val_bpb improved, keep or discard changes. Use when the user mentions 'start autoresearch', 'auto experiment', 'train agent', 'autonomous research', '自动实验', '自动训练', '自动优化模型'."
---

# Autoresearch — Autonomous ML Research Agent

## Overview

Karpathy's autoresearch gives an AI agent a small but real LLM training setup and lets it experiment autonomously. The agent modifies code, trains, checks results, keeps or discards changes, and repeats indefinitely.

## Files

- **`prepare.py`** — Fixed constants, data prep, tokenizer, dataloader, evaluation. Do NOT modify.
- **`train.py`** — The single file the agent edits. Model architecture, optimizer, training loop.
- **`program.md`** — Full agent instructions for the autonomous research loop (read this to understand how to run).

## How to Use

1. Read `program.md` for the complete autonomous research workflow
2. Set up the environment (NVIDIA GPU, Python 3.10+, uv)
3. Run `uv sync` and `uv run prepare.py` to prepare data
4. Start the autonomous loop — read `program.md` and follow the experiment loop instructions
5. Let it run — the agent should NEVER stop on its own

## Key Constraints

- Only modify `train.py` — never `prepare.py`
- Each experiment runs for exactly 5 minutes (fixed time budget)
- Log results to `results.tsv` (tab-separated)
- Keep only improvements (lower val_bpb), discard regressions
- Use git branches (`autoresearch/<tag>`) for experiment isolation

## Reference

See `program.md` for the complete workflow including setup, experimentation loop, output format, and logging.

Files in this skill

  • SKILL.md1.8 KB
  • prepare.py14.7 KB
  • program.md6.9 KB
  • train.py25.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.