auto-researching
Skill0 starsChanged 8 months agoMITView on GitHub
Runs an autonomous experiment loop that modifies code, measures a target metric, keeps improvements, and discards failures. Operates indefinitely without human intervention. Triggers on "auto research", "run experiments", "optimize autonomously", "research loop", or "find improvements automatically".
- Deletes or force-pushes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- tylergibbs1/autoresearchskillword for word, first seen Mar 27, 2026
Other versions1 project uses a version of this.
Word for word · 1
- tylergibbs1/autoresearchskill★ 1100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- auto-refactoringSkill
- auto-testSkill
- fuzz-fixingSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
If research.json exists, skip to Setup Phase.
- Distinctive: line 36
Agent 2 — Metrics & Benchmarks: Search for existing benchmarks, test suites, evaluation scripts, and measurable metrics.
- Distinctive: line 41
Wait for both agents to return before proceeding.
- Very specific: line 68
Verify autoresearch/<tag> branch doesn't exist — if it does, append -2, -3, etc.
- Very specific: line 70
Read all readonly_files and modifiable_files for context
- Very specific: line 71
Run setup_check if configured.
- Very specific: line 72
Add results.tsv and run.log to .gitignore
- Very specific: line 74
Baseline run: run the experiment unmodified, log as keep | baseline
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Auto Research
Autonomous experiment loop: modify code, evaluate, measure metric, keep wins, discard losses. Inspired by Karpathy's autoresearch.
Works in any project with a measurable metric — ML training, compiler optimization, algorithm tuning, performance benchmarking.
Discovery Flow
If research.json exists, skip to Setup Phase.
Otherwise:
Explore the project with 2 parallel subagents — launch both simultaneously using the
Agenttool:Agent 1 — Structure & Stack: Scan directory tree, identify language/framework/ build system, read README and top-level config files (package.json, pyproject.toml, Cargo.toml, etc.), summarize the project's purpose and tech stack.
Agent 2 — Metrics & Benchmarks: Search for existing benchmarks, test suites, evaluation scripts, and measurable metrics. Look for files with "bench", "test", "eval", "metric" in the name. Read any that exist and report what metrics are already being measured and how they're run.
Wait for both agents to return before proceeding.
Present findings and ask one question (use
AskUserQuestionif available):I've explored your project. Here's what I found:
- [brief project summary from Agent 1]
- [existing benchmarks/metrics from Agent 2]
What do you want to optimize? e.g., a metric (latency, accuracy, bundle size), a general goal ("make it faster"), or a specific area of the code.
Infer everything else from the project exploration:
run_command: from build system / existing bench scripts found by Agent 2modifiable_files: from the user's answer + project structurereadonly_files: context files related to the modifiable onestimeout_seconds: 2x expected runtime, or 300metric_direction: infer from name (loss/latency/size → lower; speed/accuracy → higher)tag: today's date (e.g.,mar26)no_new_dependencies: true
- Write
research.json— see CONFIG.md for field reference. Show the user for confirmation, then proceed.
Setup Phase
- Parse and validate
research.json - Verify
autoresearch/<tag>branch doesn't exist — if it does, append-2,-3, etc. git checkout -b autoresearch/<tag>- Read all
readonly_filesandmodifiable_filesfor context - Run
setup_checkif configured; halt on failure - Add
results.tsvandrun.logto.gitignore - Initialize
results.tsvwith tab-separated header row - Baseline run: run the experiment unmodified, log as
keep | baseline - Tell user setup is complete. This is the last interaction. From here, fully autonomous.
The Experiment Loop
LOOP FOREVER. NEVER stop. NEVER ask permission to continue.
The user may be asleep. They expect you to run indefinitely until manually stopped.
1. Review results.tsv for trends. Re-read modifiable files for current state.
2. Form ONE hypothesis. Prefer changes that are:
- Informed by past results
- Meaningfully different from recent experiments
- Simple — tiny gain + ugly complexity = not worth it
3. Edit ONLY modifiable_files. No new dependencies unless config allows it.
4. Git commit with short description. Do NOT commit results.tsv or run.log.
5. Run experiment: redirect ALL output to run.log (NEVER flood context).
Kill if exceeds timeout_seconds.
6. Extract metric via grep. If empty → crashed.
7. Crashes: read last 50 lines of log. Trivial fix → retry (max 2-3 attempts).
Broken idea → log as crash, revert, move on.
8. Append tab-separated row to results.tsv (untracked, survives git resets).
9. Keep or discard:
- IMPROVED → keep commit, branch advances
- EQUAL or WORSE → git reset --hard HEAD~1
- Exception: equal metric + simpler code → keep
- Exception: tiny gain + lots of ugly code → discard
10. Every 10 experiments, print a progress summary.
11. GOTO 1Critical Rules
- Protect your context window — see CONTEXT.md. This is the #1 risk for long-running sessions. Always redirect output, use grep not read, only tail on crash.
- results.tsv is your memory — it survives git resets and contains full history. Re-read it when you need to review past experiments.
- One change per experiment — test one hypothesis at a time.
- When stuck — see STRATEGIES.md for research tactics.
Example results.tsv
commit val_bpb memory_gb status description
a1b2c3d 0.997900 44.0 keep baseline
b2c3d4e 0.993200 44.2 keep increase LR to 0.04
c3d4e5f 1.005000 44.0 discard switch to GeLU activation
d4e5f6g 0.000000 0.0 crash double model width (OOM)
e5f6g7h 0.990100 43.8 keep add weight decay scheduling
f6g7h8i 0.990100 43.5 keep simplify LR scheduler (equal metric, simpler code)Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

