autoresearch
Skill1 starsChanged 15 days agoMITView on GitHub
Autonomous iterative experimentation loop for any programming task. Guides the user through defining goals, measurable metrics, and scope constraints, then runs an autonomous loop of code changes, testing, measuring, and keeping/discarding results. Inspired by Karpathy''s autoresearch. USE FOR: autonomous improvement, iterative optimization, experiment loop, auto research, performance tuning, automated experimentation, hill climbing, try things automatically, optimize code, run experiments, autonomous coding loop. DO NOT USE FOR: one-shot tasks, simple bug fixes, code review, or tasks without a measurable metric.
- Deletes or force-pushes
104 other projects use a version of this, 1 of them edited; 1 new project in the last 4 weeks, against 1 the 4 before.
Adopted by
Steady: 1 new project took it in the last 4 weeks, 1× the 4 weeks before.thin data
Most recently taken up by
- tboome33/obsidian-mcp-routertheir own version, first seen Nov 15, 2026
- AndyMelnykov/obsidian-claudetheir own version, first seen Nov 15, 2026
- thisis-romar/opendeck-factorytheir own version, first seen Nov 15, 2026
- arbrain-ai/arbraintheir own version, first seen Nov 15, 2026
- darkroomengineering/cc-settingstheir own version, first seen Nov 12, 2026
- Yeachan-Heo/oh-my-claudecodetheir own version, first seen Nov 9, 2026
Used with
Projects with it also use aeon-update, auto-workflow and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
aaronjmarsSkillaeon-update
Pull framework updates from the upstream Aeon repo into this instance - 3-way merges canon's new commits into a PR, never clobbering operator config.
Also in 4 projects that use this
aaronjmarsSkillauto-workflow
Two-mode aeon.yml workflow builder - analyze inspects URLs and emits a tiered, signal-verified skill-enablement plan plus an aeon.yml diff; enable flips slugs to enabled:true and opens a PR.
Also in 4 projects that use this
- +10 more from aaronjmars
Other versions104 projects use a version of this.
Word for word · 6
- github/awesome-copilot★ 41k100% same
- a-tokyo/aiworkspace★ 19100% same
- SebastienDegodez/skraft-plugin★ 15100% same
- asterixix/polish-academic-mcp★ 4100% same
- bmsuisse/pydeno★ 1100% same
- ReaperOAK/ForgeOS★ 0100% same
Edited · 1
- a-tokyo/agent-skills-harness★ 1136% same
Wrote their own version · 97
- Yeachan-Heo/oh-my-claudecode★ 41ksame name
- Yeachan-Heo/oh-my-claude-sisyphus★ 41ksame name
- Yeachan-Heo/oh-my-codex★ 34ksame name
- AgriciDaniel/claude-obsidian★ 16ksame name
- Orchestra-Research/AI-research-SKILLs★ 13ksame name
- zechenzhangAGI/AI-research-SKILLs★ 13ksame name
- Orchestra-Research/AI-Research-SKILLs★ 12ksame name
- getcompanion-ai/feynman★ 10ksame name
- advaitpaliwal/feynman★ 10ksame name
- companion-inc/feynman★ 10ksame name
87 more not listed
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 repository95 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- agent-architectureSkill
- agentic-evalSkill
- agent-owasp-complianceSkill
- agent-skill-stackSkill
- ai-readySkill
- ai-team-orchestrationSkill
- answer-me-with-htmlSkill
- anti-ui-slopSkill
- archifySkill
- batch-script-progressSkill
- cli-creatorSkill
- codebase-designSkill
- code-exemplars-blueprint-generatorSkill
- copilot-instructions-blueprint-generatorSkill
- create-agentsmdSkill
- create-architectural-decision-recordSkill
- create-github-action-workflow-specificationSkill
- create-github-issues-feature-from-implementation-planSkill
- create-readmeSkill
- create-specificationSkill
- create-technical-spikeSkill
- create-tldr-pageSkill
- docs-sync-auditSkill
- folder-structure-blueprint-generatorSkill
- gh-fix-ciSkill
- github-actions-hardeningSkill
- github-repo-careSkill
- impeccableSkill
- launchd-automationSkill
- mcp-security-auditSkill
- notion-cliSkill
- opencode-model-routerSkill
- playwright-cliSkill
- python-pypi-package-builderSkill
- refactorSkill
- simple-englishSkill
- swiftui-expert-skillSkill
- technical-documentationSkill
- workshop-driverSkill
- xerj-hubSkill
- xerjSkill
- anti-ui-slopSkill
- autoresearchSkill
- batch-script-progressSkill
- calling-frontend-from-tauri-rustSkill
- calling-rust-from-tauri-frontendSkill
- cli-creatorSkill
- codebase-designSkill
- code-exemplars-blueprint-generatorSkill
- configuring-tauri-appsSkill
- configuring-tauri-capabilitiesSkill
- configuring-tauri-cspSkill
- configuring-tauri-permissionsSkill
- configuring-tauri-scopesSkill
- copilot-instructions-blueprint-generatorSkill
- create-agentsmdSkill
- create-architectural-decision-recordSkill
- create-github-action-workflow-specificationSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. 0 are common, 19 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 94 edited versions we read keep these.
19
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
DO commit every experiment attempt before running it (so it can be reverted cleanly).
- Distinctive: line 24
DO keep a results log (TSV) tracking every experiment.
- Distinctive: line 26
DO run autonomously once the loop starts -- never pause to ask "should I continue?".
- Distinctive: line 29
DO NOT: keep changes that regress the metric unless the user explicitly allowed trade-offs.
- Distinctive: line 36
Before any experimentation begins, work with the user to establish these parameters.
- Distinctive: line 37
Ask the user directly for each item.
- Distinctive: line 136
Ask the user to confirm. Do not proceed until confirmed.
- Very specific: line 145
Create the branch: git checkout -b autoresearch/<tag>.
- Distinctive: line 147
Read in-scope files: Read all files that are in scope to build full context of the current state.
- Very specific: line 149
Initialize results.tsv: Create results.tsv in the repo root with the header row:
- Very specific: line 153
Add results.tsv and run.log to .git/info/exclude (append if not already present) so they stay untracked without modifying any tracked files.
- Distinctive: line 166
Run this loop continuously.
- Distinctive: line 213
When generating experiment ideas, follow this priority order:
- Distinctive: line 216
Informed by results: If a direction showed promise, explore further in that direction.
- Distinctive: line 217
Diversify after plateaus: If the last 3-5 experiments all failed, try a different approach entirely.
- Distinctive: line 218
Combine winners: If experiments A and B each improved independently, try combining them.
- Distinctive: line 220
Radical changes: After exhausting incremental ideas, try larger architectural changes.
- Distinctive: line 224
Time budget: If a run exceeds 2x the expected duration, kill it and treat as a crash.
- Distinctive: line 225
Existing tests: If constraints require tests to pass, run them before/after and revert if they break.
- Distinctive: line 232
When the loop ends (budget reached or user interrupts):
- Very specific: line 263
All experiments happen on the autoresearch/<tag> branch
- Distinctive: line 271
Measure everything: No experiment without a measurement.
- Distinctive: line 273
Stay autonomous: Never stop to ask. Think harder if stuck.
“Common” is measured: kept by at least 6 in 10 of the 94 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Autoresearch: Autonomous Iterative Experimentation
An autonomous experimentation loop for any programming task. You define the goal and how to measure it; the agent iterates autonomously -- modifying code, running experiments, measuring results, and keeping or discarding changes -- until interrupted.
This skill is inspired by Karpathy's autoresearch, generalized from ML training to any programming task with a measurable outcome.
Agent Behavior Rules
- DO guide the user through the Setup phase interactively before starting the loop.
- DO establish a baseline measurement before making any changes.
- DO commit every experiment attempt before running it (so it can be reverted cleanly).
- DO keep a results log (TSV) tracking every experiment.
- DO revert changes that do not improve the metric (git reset to last known good).
- DO run autonomously once the loop starts -- never pause to ask "should I continue?".
- DO NOT modify files the user marked as out-of-scope.
- DO NOT skip the measurement step -- every experiment must be measured.
- DO NOT keep changes that regress the metric unless the user explicitly allowed trade-offs.
- DO NOT install new dependencies or make environment changes unless the user approved it.
Phase 1: Setup (Interactive)
Before any experimentation begins, work with the user to establish these parameters. Ask the user directly for each item. Do not assume or skip any.
1.1 Define the Goal
Ask the user:
What are you trying to improve or optimize?
Examples: execution time, memory usage, binary size, test pass rate, code coverage, API response latency, throughput, error rate, benchmark score, build time, bundle size, lines of code, cyclomatic complexity, etc.
Record the user's answer as the goal.
1.2 Define the Metric
Ask the user:
How do we measure success? What exact command produces the metric?
I need:
- The command to run (e.g.,
dotnet test,npm run benchmark,time ./build.sh,pytest --tb=short)- How to extract the metric from the output (e.g., a regex pattern, a specific line, a JSON field)
- Direction: Is lower better or higher better?
Example: "Run
dotnet test --logger trx, count passing tests. Higher is better." Example: "Runhyperfine './my-program', extract mean time. Lower is better."
Record:
METRIC_COMMAND: the command to runMETRIC_EXTRACTION: how to extract the numeric metric from outputMETRIC_DIRECTION:lower_is_betterorhigher_is_better
1.3 Define the Scope
Ask the user:
Which files or directories am I allowed to modify?
And which files are OFF LIMITS (read-only)?
Record:
IN_SCOPE_FILES: files/dirs the agent may editOUT_OF_SCOPE_FILES: files/dirs that must not be modified
1.4 Define Constraints
Ask the user:
Are there any constraints I should respect?
Examples:
- Time budget per experiment (e.g., "each run should take < 2 minutes")
- No new dependencies
- Must keep all existing tests passing
- Must not change the public API
- Must maintain backward compatibility
- VRAM/memory limit
- Code complexity limits (prefer simpler solutions)
Record as CONSTRAINTS.
1.5 Define the Experiment Budget (Optional)
Ask the user:
How many experiments should I run, or should I just keep going until you stop me?
You can say a number (e.g., "try 20 experiments") or "unlimited" (I'll run until you interrupt).
Record as MAX_EXPERIMENTS (number or unlimited).
1.6 Simplicity Criterion
Inform the user of the default simplicity policy:
Simplicity policy (default): All else being equal, simpler is better. A small improvement that adds ugly complexity is not worth it. Removing code while maintaining or improving the metric is a great outcome. I'll weigh the complexity cost against the improvement magnitude. Does this policy work for you, or do you want to adjust it?
Record any adjustments as SIMPLICITY_POLICY.
1.7 Confirm Setup
Summarize all parameters back to the user in a clear table:
| Parameter | Value |
| Goal | ... |
| Metric command | ... |
| Metric extraction | ... |
| Direction | lower is better / higher ... |
| In-scope files | ... |
| Out-of-scope files | ... |
| Constraints | ... |
| Max experiments | ... |
| Simplicity policy | ... |
Ask the user to confirm. Do not proceed until confirmed.
Phase 2: Branch & Baseline
Once the user confirms:
- Create a branch: Propose a tag based on today's date (e.g.,
autoresearch/mar17). Create the branch:git checkout -b autoresearch/<tag>. - Read in-scope files: Read all files that are in scope to build full context of the current state.
- Initialize results.tsv: Create
results.tsvin the repo root with the header row:
Addexperiment commit metric status descriptionresults.tsvandrun.logto.git/info/exclude(append if not already present) so they stay untracked without modifying any tracked files. - Run the baseline: Execute the metric command on the current unmodified code.
Record the result as experiment
0with statusbaselineinresults.tsv. - Report baseline to the user:
Baseline established: [metric_name] = [value] Starting autonomous experimentation loop.
Phase 3: Experiment Loop
Run this loop continuously. Do not stop to ask the user. Run until:
MAX_EXPERIMENTSis reached, OR- The user manually interrupts
For each experiment:
LOOP:
1. THINK - Analyze previous results and the current code.
Generate an experiment hypothesis.
Consider: what worked, what didn't, what hasn't been tried.
2. EDIT - Modify the in-scope file(s) to implement the idea.
Keep changes focused and minimal per experiment.
3. COMMIT - git add + git commit with a short descriptive message.
Format: "experiment: <short description of what changed>"
4. RUN - Execute the metric command.
Redirect output to run.log so it does not flood the context window.
Use shell-appropriate redirection:
- Bash/Zsh: `<command> > run.log 2>&1`
- PowerShell: `<command> *> run.log`
5. MEASURE - Extract the metric from run.log.
If extraction fails (crash/error), read the last 50 lines
of run.log for the error.
6. DECIDE - Compare metric to the current best:
- IMPROVED: Keep the commit. Update the "best" baseline.
Log status = "keep".
- SAME OR WORSE: Revert. `git reset --hard HEAD~1`.
Log status = "discard".
- CRASH: Attempt a quick fix (typo, import, simple error).
Amend the experiment commit (`git commit --amend`) with the fix
and rerun. The experiment keeps its original number.
If unfixable after 2 attempts, revert the entire experiment
(`git reset --hard HEAD~1`) and log status = "crash".
7. LOG - Append a row to results.tsv:
experiment_number commit_hash metric_value status description
8. CONTINUE - Go to step 1.Experiment Strategy
When generating experiment ideas, follow this priority order:
- Low-hanging fruit first: Simple parameter tweaks, obvious inefficiencies.
- Informed by results: If a direction showed promise, explore further in that direction.
- Diversify after plateaus: If the last 3-5 experiments all failed, try a different approach entirely.
- Combine winners: If experiments A and B each improved independently, try combining them.
- Simplification passes: Periodically try removing code/complexity to see if the metric holds.
- Radical changes: After exhausting incremental ideas, try larger architectural changes.
Handling Constraints
- Time budget: If a run exceeds 2x the expected duration, kill it and treat as a crash.
- Existing tests: If constraints require tests to pass, run them before/after and revert if they break.
- Memory/resources: Monitor and revert if resource usage exceeds stated limits.
Phase 4: Reporting
When the loop ends (budget reached or user interrupts):
- Print the full results.tsv as a formatted table.
- Summarize:
- Total experiments run
- Experiments kept / discarded / crashed
- Starting metric (baseline) vs. final metric
- Improvement percentage
- Top 3 most impactful changes
- Show the cumulative git log of kept experiments:
git log --oneline <start_commit>..HEAD - Recommend next steps: Based on the results, suggest what a human researcher might try next (ideas that were too risky/complex for automated experimentation).
Quick Reference
Results TSV Format
Tab-separated, 5 columns:
experiment commit metric status description
0 a1b2c3d 0.997900 baseline unmodified code
1 b2c3d4e 0.993200 keep increase learning rate to 0.04
2 c3d4e5f 1.005000 discard switch to GeLU activation
3 d4e5f6g 0.000000 crash double model width (OOM)Git Workflow
- All experiments happen on the
autoresearch/<tag>branch - Each experiment is committed before running
- Failed experiments are reverted with
git reset --hard HEAD~1 - Successful experiments advance the branch
results.tsvandrun.logstay untracked (added to.git/info/exclude)
Key Principles
- Measure everything: No experiment without a measurement.
- Revert failures: The branch only advances on improvements.
- Stay autonomous: Never stop to ask. Think harder if stuck.
- Keep it simple: Complexity is a cost. Weigh it against gains.
- Log everything: The TSV is the research journal.
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.

