AutoResearch

Stale
GitHub Python No License

Description

AI research automation agent by Andrej Karpathy that automatically runs nanochat training research experiments on a single GPU.

Key Features

  • Autonomous experiment loop - AI agent modifies training code, runs 5-min experiments, evaluates results, and keeps or discards changes
  • Single-file agent editing - Agent only modifies train.py (model, optimizer, training loop) while humans edit program.md instructions
  • Fixed time budget - Each experiment runs exactly 5 minutes wall clock, making val_bpb comparable across architectural changes
  • Nanochat-based training - Simplified single-GPU GPT training with Muon + AdamW optimizer, self-contained with minimal dependencies
  • Markdown-driven research programming - Define agent behavior via program.md, iterating on research strategy like coding a research org
  • Extensible multi-agent - Starts with a single agent baseline, architecturally supports adding more agents to accelerate research

Use Cases

💡 Run LLM training experiments overnight autonomously and review results in the morning
💡 Automate hyperparameter search for GPT architectures to find optimal configs for specific GPUs
💡 Research AI agent capabilities for autonomous scientific discovery by iterating on program.md
💡 Rapidly prototype and validate LLM training ideas in a single-GPU environment
💡 Educational tool for learning LLM training workflows, model architecture, and optimizer mechanics

Strengths & Limitations

Strengths

  • High community interest (95.1k stars)
  • Responsive to issues, low backlog

⚠️ Limitations

  • No clear open-source license

Quick Start

# Install uv package manager
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install dependencies
uv sync

# Download data and train tokenizer (one-time, ~2 min)
uv run prepare.py

# Manually run a single training experiment (~5 min)
uv run train.py

# Start autonomous research: point Claude/Codex at this repo and prompt "look at program.md and let's kick off a new experiment"

Related Projects

AI Agents for Beginners

73.8k · Jupyter Notebook
Active A+

12 Lessons to Get Started Building AI Agents by Microsoft. Hands-on curriculum covering core agent concepts, tool use, and multi-agent collaboration.

agentframeworkpython +1
  • · 12 structured lessons - Covers AI agent fundamentals, tool use, and multi-agent collaboration in a progressive curriculum
  • · Microsoft Agent Framework - Hands-on code samples built on Azure AI Foundry Agent Service V2
  • · Multi-language support - Auto-translated via GitHub Action with 50+ language versions available

Hermes Agent

240.1k · Python
Active A

An autonomous AI agent framework from NousResearch that supports multiple LLM backends and grows with user needs.

agent-frameworkautonomous-agentllm +1
  • · Self-improving learning loop - Auto-creates skills from experience, self-improves during use, cross-session recall
  • · Multi-platform messaging gateway - Single process supports Telegram, Discord, Slack, WhatsApp, Signal, and CLI
  • · Six terminal backends - Local, Docker, SSH, Singularity, Modal, and Daytona with serverless hibernation

AI DevKit

1.6k · TypeScript
Active A

A local-first control plane for AI coding agents. Unifies configuration across Claude Code, Codex CLI, Gemini CLI with local memory and cross-agent communication.

coding-agentcontrol-planeclaude-code +2
  • · One config for every agent - same .ai-devkit.json shared across Claude Code, Codex CLI, Gemini CLI, etc.
  • · Local memory retrieval - SQLite stores decisions, conventions, fixes, search on demand to avoid context bloat
  • · Cross-agent communication - agent send command routes messages between multiple running agents