Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

autoresearch自动研究

Agent Skill

autoresearch 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

188

周安装

8

GitHub Stars

1

下载量

66
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:autoresearch(自动研究)
来源仓库:https://github.com/akillness/oh-my-unity3d
仓库路径:skills/autoresearch
安装命令:
npx skills add https://github.com/akillness/oh-my-unity3d --skill autoresearch
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/akillness/oh-my-unity3d --skill autoresearch

简介

用于自动化机器学习实验,通过迭代修改训练脚本并运行短时 GPU 任务优化模型。

  • 适合夜间无人值守调参,以验证损失值为指标持续改进模型效果。
  • 使用时需预先配置 GPU 环境和 git 提交规则,确保每次改进可追溯。
  • 安装命令:npx skills add https://github.com/akillness/oh-my-unity3d --skill autoresearch
  • 实验日志和模型版本必须通过 git 管理,避免丢失中间结果或产生混乱提交历史。

SKILL.md

autoresearch

*"The researcher's job shifts from writing Python to writing Markdown."* — Andrej Karpathy

Autoresearch is an autonomous ML experimentation framework. An AI agent iteratively modifies train.py, runs fixed 5-minute GPU experiments, evaluates with a single metric (val_bpb), and commits only improvements via git ratcheting. The result: wake up to 100+ experiments logged and a monotonically better model.

When to use this skill

  • Setting up autoresearch on a GPU machine for the first time
  • Writing or refining program.md research directives for the agent
  • Launching an overnight autonomous experiment loop
  • Interpreting results.tsv to understand what the agent found
  • Configuring the system for constrained hardware (limited VRAM)
  • Understanding the ratcheting mechanism and git workflow
  • Porting to Apple Silicon (MLX) or Windows RTX

Core Architecture

Human authors program.md
       │
       ▼
Agent reads program.md + train.py
       │
       ▼
Agent modifies train.py → git commit
       │
       ▼
uv run train.py  (exactly 300 seconds)
       │
       ▼
Extract val_bpb + peak_vram_mb
       │
  ┌────┴────┐
improved?   no improvement
  │              │
keep commit   git reset HEAD~1
  │              │
  └──────┬───────┘
         │
   log to results.tsv
         │
         ▼
    repeat ∞

Mutable vs. Immutable Files

FileAgent accessPurpose
train.pyRead + WriteModel, optimizer, training loop (~630 lines)
program.mdRead-onlyHuman research directives
prepare.pyRead-onlyData pipeline + evaluate_bpb() harness
constants.pyRead-onlyTIME_BUDGET=300, MAX_SEQ_LEN, EVAL_TOKENS
pyproject.tomlRead-onlyLocked dependencies (no new packages)
results.tsvAppendAll experiments: kept and discarded

Instructions

Step 1: Install Prerequisites

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

# Clone the repository
git clone https://github.com/karpathy/autoresearch
cd autoresearch

# Install locked dependencies
uv sync

Step 2: Prepare Data (One-Time, ~2 Minutes)

# Downloads FineWeb-Edu parquet shards, trains BPE tokenizer
# Last shard is reserved for validation — never seen during training
uv run prepare.py

For constrained hardware, edit prepare.py before running:

# Lower MAX_SEQ_LEN for GPUs with limited VRAM
MAX_SEQ_LEN = 256   # default: 2048

Step 3: Run a Baseline Experiment

# Single 5-minute experiment to verify setup
uv run train.py > run.log 2>&1

# Extract key metrics
grep "^val_bpb:\|^peak_vram_mb:" run.log

Expected output:

val_bpb: 0.9979
peak_vram_mb: 38420

Step 4: Author program.md

program.md is the human-written research charter the agent reads at the start of every loop iteration. Write it as precise Markdown instructions:

# Research Program

## Goal
Minimize val_bpb on the FineWeb-Edu validation set within the 300-second budget.

## Current Baseline
val_bpb: 0.9979 (depth-12 GPT, Muon + AdamW optimizer)

## Directions to Explore
1. Attention variants: MLA, GQA, sliding window, local-global hybrid
2. Layer types: MoE FFN layers, SwiGLU activations
3. Optimizer tuning: Muon momentum, AdamW β values, learning rate schedule
4. Architectural depth/width tradeoffs within VRAM budget

## Constraints
- Must complete within 300 seconds
- Peak VRAM must stay under 39GB
- No new packages (use only what is in pyproject.toml)
- Do not modify prepare.py or constants.py

## Notes from Previous Runs
- Depth-12 improvements transfer to depth-24 (scale-invariant gains)
- RoPE positional encoding outperformed learned embeddings (+0.008 val_bpb)

Effective program.md principles:

  • Be specific about what to explore — vague directives waste experiments
  • Record what has already been tried (prevents redundant experiments)
  • Note hardware constraints explicitly
  • Use the current best val_bpb as a reference point

Step 5: Run the Autonomous Agent Loop

Point your AI agent (Claude Code, Codex, etc.) at the repository with program.md as its research context. The agent will:

  1. Read program.md + current train.py
  2. Hypothesize an improvement
  3. Modify train.py + commit
  4. Execute uv run train.py (300 seconds)
  5. Extract val_bpb; keep or revert via git
  6. Append to results.tsv
  7. Repeat

With Claude Code (OMC):

# From inside autoresearch/
# Give Claude the context: "Run the autoresearch loop following program.md"

With Claude Code CLI directly:

claude "Follow program.md. Run autonomous research loop on train.py.
Execute: uv run train.py, extract val_bpb, keep improvements, revert failures.
Log everything to results.tsv. Do not stop until I say so."

Step 6: Monitor Results

# Live monitoring during a run
watch -n 30 "tail -20 results.tsv"

# Count kept vs. discarded
awk -F'\t' '{print $4}' results.tsv | sort | uniq -c

# Find the best experiment
sort -t$'\t' -k2 -n results.tsv | head -5

# Check current best val_bpb
git log --oneline -5

Step 7: Interpret results.tsv

commit    val_bpb    memory_gb    status     description
a3f2c91   0.9697     37.2         keep       SwiGLU activation + depth-12
b8e1d04   0.9821     38.1         discard    MoE 4-expert: marginal gain
c1a5f30   crash      —            crash      OOM: sequence length 4096
StatusMeaning
keepval_bpb improved; commit retained on branch
discardNo improvement; git reset HEAD~1 applied
crashOOM, syntax error, or timeout; always reverted

Examples

Example 1: Overnight Run Summary

Session summary: 126 experiments, 18 improvements
Best val_bpb: 0.9697 (started: 0.9979)
Top improvements:
- SwiGLU activation: -0.012 val_bpb
- GQA with 4 KV heads: -0.009 val_bpb
- Muon momentum 0.92→0.95: -0.006 val_bpb

Example 2: Low-VRAM Configuration (6GB GPU)

# In prepare.py — edit before uv run prepare.py
MAX_SEQ_LEN = 256       # was 2048
EVAL_TOKENS = 2_097_152  # was 20_971_520 (scale down proportionally)

Example 3: Extract Experiments by Category

# Find all attention-related experiments
grep -i "attention\|GQA\|MLA\|MHA" results.tsv

# List only improvements sorted by gain
awk -F'\t' '$4=="keep"' results.tsv | sort -t$'\t' -k2 -n

Available scripts

Run from inside the autoresearch repository directory:

ScriptPurposeUsage
setup.shOne-time environment setupbash scripts/setup.sh [--seq-len 512]
run-experiment.shSingle 5-min experiment + metric extractionbash scripts/run-experiment.sh
run-loop.shAutonomous loop: run → keep/revert → repeatbash scripts/run-loop.sh [--max 20]
show-results.shHuman-readable results.tsv reportbash scripts/show-results.sh [--top 10]
check-hardware.shGPU/CUDA/uv availability check (JSON output)bash scripts/check-hardware.sh
# Typical overnight session
bash scripts/check-hardware.sh
bash scripts/setup.sh --seq-len 512     # adjust for your VRAM
# Edit program.md with your research directives
bash scripts/run-loop.sh --max 100 --desc "session-1"
bash scripts/show-results.sh --kept-only

References

Detailed documentation in references/:

FileContents
references/architecture.mdSystem design, immutability contract, git ratcheting, key design decisions
references/program-md-guide.mdHow to write effective program.md directives; full template + principles
references/hardware-config.mdVRAM settings by GPU, memory optimization techniques, troubleshooting

Best practices

  1. Write program.md before running — the agent is only as good as its directives; vague programs waste compute
  2. Start with the baseline first — always uv run train.py manually before launching the loop to confirm the setup works
  3. Keep MAX_SEQ_LEN in prepare.py consistent — changing it mid-run invalidates val_bpb comparisons
  4. Never modify prepare.py or constants.py — the evaluation harness must stay fixed for results to be meaningful
  5. Scale improvements before committing — test that a depth-12 improvement also holds at depth-24 before treating it as a fundamental gain
  6. Commit program.md updates — version-control your research directives alongside results.tsv for reproducibility
  7. Monitor VRAM — add peak_vram_mb constraints in program.md for your GPU's headroom
  8. No new dependencies — the agent cannot pip install; it can only use what is in pyproject.toml

Hardware Requirements

HardwareStatusNotes
H100 80GBRecommendedDefault config, full MAX_SEQ_LEN=2048
A100 40GBSupportedLower MAX_SEQ_LEN if needed
RTX 4090 24GBCommunityReduce MAX_SEQ_LEN to 512
GTX 1660 Ti 6GBCommunity forkMAX_SEQ_LEN=256, reduced EVAL_TOKENS
Apple Silicon (M-series)MLX portCommunity fork; different optimizer API
Windows RTXCommunityWSL2 + CUDA recommended

Key Metrics Reference

MetricDirectionDescription
val_bpbLower = betterValidation bits-per-byte; vocabulary-size-independent
peak_vram_mbLower = more headroomPeak GPU memory during the training run
Experiments/hourHigher = faster search~12 at TIME_BUDGET=300

References

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.62%
按下载量换算24

Claude

28.1%
按下载量换算19

Cursor

18.07%
按下载量换算12

Gemini CLI

9%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills