By tbelbek
Closed-loop empirical experiment runner for Claude Code. Edits one file, runs it, keeps changes that improve a scalar metric. Faithful port of Andrej Karpathy's autoresearch pattern (github.com/karpathy/autoresearch).
A Claude Code plugin that runs Andrej Karpathy's autoresearch pattern on any repo — autonomously edit one file, run it, keep changes that improve a scalar metric, reset the ones that don't. Git is the memory. A TSV is the audit trail.
Run the loop on your repo to make it better. Define a metric. Walk away. Review diffs when you come back.
You give it a program.md spec — editable file, frozen files, one shell command, one scalar metric, a budget. The skill then hill-climbs:
for N trials:
pick next hypothesis from program.md
edit the editable file
commit WIP
run the command (hard wall-clock kill)
parse metric + guards from run.log
if metric improved AND guards pass -> keep commit
else -> git reset --hard
append row to .autoresearch/results.tsv
One git branch per run (autoresearch/<tag>). One TSV row per trial. No LLM self-grading — the scalar metric decides.
Generic "AI coding agents" plan, implement, and declare victory. This runs code, reads a number, and either keeps the change or throws it out. Closer to stochastic optimization than to code-gen chat.
| Generic agent | karpathy-autoresearch | |
|---|---|---|
| Judge | LLM self-assessment | Ground-truth scalar metric |
| Memory | Chat context | Git branch + results.tsv |
| Action surface | Whole codebase | Exactly one file |
| Stop condition | "I think we're done" | Budget / no-improvement streak |
| Bias | Add features | Prefer code deletion |
claude plugin marketplace add tbelbek/karpathy-autoresearch
claude plugin install karpathy-autoresearch@karpathy-autoresearch-marketplace
cd into any repo you want to improve./karpathy-autoresearch. If no program.md exists, the skill offers to scaffold one from the template and stops so you can fill it in./karpathy-autoresearch again. It echoes the program back and asks for authorization..autoresearch/results.tsv and a git branch of experiments.program.md sectionstrain.py — only file the loop may modifyevaluate.py, pyproject.tomluv run train.py > run.log 2>&1val_bpb, direction min, parsed via regex on run.logFull template: skills/karpathy-autoresearch/references/program.template.md.
program.md — no silent defaultsgit reset --hard on every rejected trial — no creeping statePattern by Andrej Karpathy — https://github.com/karpathy/autoresearch. This plugin is an independent port to Claude Code; no code from Karpathy's repo is included.
MIT
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Claude + Obsidian knowledge companion. Sets up a persistent, compounding wiki vault (Karpathy's LLM Wiki pattern). v1.7 "Compound Vault" + v1.8 methodology modes close 5 of 5 priority gaps from the May 2026 compass artifact. Ships: substrate alignment with kepano/obsidian-skills, default Obsidian CLI transport, hybrid retrieval (contextual prefix + BM25 + cosine rerank per Anthropic's Sept 2024 research), per-file advisory locking for multi-writer safety, pre-commit verifier agent, AND methodology modes (LYT / PARA / Zettelkasten / Generic) for first-class organizational support no other Claude+Obsidian competitor offers. v1.7.x audit closure: every BLOCKER + HIGH + MEDIUM + LOW finding from the v1.7.0 audit is CLOSED or DEFERRED-with-rationale. Optional DragonScale Memory extension (log folds, deterministic addresses, semantic tiling lint, boundary-first autoresearch).
npx claudepluginhub tbelbek/karpathy-autoresearch --plugin karpathy-autoresearchAutonomous experiment loop — iteratively optimize any metric with git-tracked experiments, a Stop-hook loop engine, noise-floor keep/discard, and a locked eval harness
Autonomous experiment loop that edits code, runs benchmarks, measures metrics, and keeps improvements or reverts — repeating forever. Works for any optimization target: LLM training loss, test speed, bundle size, build time, Lighthouse scores, and more.
Autonomous experiment loop for any project type. Inspired by karpathy/autoresearch.
Autonomous experimentation skill — your AI coding agent designs experiments, tests hypotheses, discards failures, keeps wins. Runs overnight while you sleep.
Autonomous experiment loop that optimizes any file by a measurable metric. 5 slash commands, 8 evaluators, configurable loop intervals (10min to monthly).
ML research skills: topic, plan, judge, run, sweep, verify, fortify, retro