experiment-loop
Skill99 starsChanged 5 months agoMITView on GitHub
Autonomous benchmark-driven experiment loop: propose a change, measure the metric, keep what improves it, revert what doesn't, repeat. Git is the ledger — every kept improvement is a commit. Every discarded attempt is a clean revert. Before iterating, call init_experiment to configure the session: - metric_name: the scalar to optimize (e.g. test_duration_ms, accuracy_pct, bundle_size_kb) - metric_direction: "minimize" or "maximize" - objective: plain-English goal (e.g. "Reduce test suite wall-clock time below 10s") - benchmark_command: shell command that must print METRIC <name>=<number>…
2 other projects use a version of this.
Adopted by
Most recently taken up by
- wookat/ai-research-skillstheir own version, first seen Jul 15, 2026
- qyinm/agent-skills-archivetheir own version, first seen Mar 31, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- wookat/ai-research-skills★ 2same name
- qyinm/agent-skills-archive★ 1same name
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 repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- autonomous-researcherSkill
- blogwatcherSkill
- board-opsSkill
- code-dispatchSkill
- council-facilitatorSkill
- crew-lifecycleSkill
- document-ingestion-operatorSkill
- document-intelligenceSkill
- google-workspace-opsSkill
- incident-triageSkill
- nano-pdfSkill
- notionSkill
- obsidianSkill
- ops-governanceSkill
- proactive-memorySkill
- release-managerSkill
- summarizeSkill
- team-coordinationSkill
- team-plan-reviewSkill
- weatherSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
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 7
Before iterating, call init_experiment to configure the session:
- Very specific: line 16
Propose: read autoresearch.ideas.md for queued ideas.
- Very specific: line 18
Measure: call run_experiment with a description of what was tried
- Very specific: line 19
Decide: call log_experiment with:
- Very specific: line 38
Call init_experiment again mid-session to start a new baseline segment — useful when pivoting to a different optimization goal.
- Very specific: line 42
When context resets, re-read autoresearch.md (current state) and autoresearch.ideas.md (deferred ideas) to resume exactly where you left …
- Distinctive: line 55
Use Autonomous Researcher to identify the problem, review literature, and form a hypothesis
- Distinctive: line 56
Use Experiment Loop to validate the hypothesis empirically (implement → measure → keep/discard)
- Distinctive: line 57
Use council to evaluate competing hypothesis directions before committing to a loop direction
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Experiment Loop (Metric-Driven Optimization)
Autonomous benchmark-driven experiment loop: propose a change, measure the metric, keep what improves it, revert what doesn't, repeat. Git is the ledger — every kept improvement is a commit. Every discarded attempt is a clean revert.
Setup
Before iterating, call init_experiment to configure the session:
metric_name: the scalar to optimize (e.g.test_duration_ms,accuracy_pct,bundle_size_kb)metric_direction:"minimize"or"maximize"objective: plain-English goal (e.g. "Reduce test suite wall-clock time below 10s")benchmark_command: shell command that must printMETRIC <name>=<number>to stdoutchecks_command(optional): correctness guard (e.g.npm testorpython -m pytest) — a failed check blocks a keep even if the metric improved (Goodhart's Law prevention)
Loop
- Propose: read
autoresearch.ideas.mdfor queued ideas; pick the most promising and describe the change - Implement: make the code change using
write_fileorbash_exec - Measure: call
run_experimentwith a description of what was tried - Decide: call
log_experimentwith:decision="keep"if metric improved AND checks passed → git commitdecision="discard"if metric regressed or was flat → git revertdecision="checks_failed"if metric improved but correctness check failed → revertdecision="crash"if the benchmark itself crashed → revert
- Record ideas: append promising-but-deferred ideas to
autoresearch.ideas.md - Repeat
Benchmark Contract
The benchmark command MUST print at least one METRIC name=number line to stdout:
METRIC test_duration_ms=4231
METRIC memory_mb=128Secondary metrics are captured automatically. The primary metric is whatever metric_name was set to in init_experiment.
Segment-Aware Baselines
Call init_experiment again mid-session to start a new baseline segment — useful when pivoting to a different optimization goal. Old results are preserved in autoresearch.jsonl with their original segment index.
Auto-Resume
When context resets, re-read autoresearch.md (current state) and autoresearch.ideas.md (deferred ideas) to resume exactly where you left off. Never lose progress.
Files
| File | Purpose |
autoresearch.jsonl | Append-only JSONL run log (one entry per experiment) |
autoresearch.md | Living session doc: objective, metric, attempt history |
autoresearch.ideas.md | Backlog of promising-but-deferred ideas |
Integration with Research Pipeline
Combine with the Autonomous Researcher skill:
- Use Autonomous Researcher to identify the problem, review literature, and form a hypothesis
- Use Experiment Loop to validate the hypothesis empirically (implement → measure → keep/discard)
- Use council to evaluate competing hypothesis directions before committing to a loop direction
Example
{ "tool": "init_experiment", "metric_name": "test_duration_ms", "metric_unit": "ms", "metric_direction": "minimize", "objective": "Cut test suite time below 8000ms", "benchmark_command": "npm test 2>&1 | tail -1 | awk '{print \"METRIC test_duration_ms=\" $NF}'" }
{ "tool": "run_experiment", "description": "Parallelize independent test suites with --runInBand=false" }
{ "tool": "log_experiment", "decision": "keep", "metric_value": 5400, "description": "Parallelize independent test suites" }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.

