research-loop / templates
AGENTS.md0 starsChanged 3 months agoMITView on GitHub
This repository uses RESEARCH_PROTOCOL.md and research_runs_history/ as the research workflow and source of truth. When asked to run the latest experiment: A successful, approved execution path may commit and push automatically. Human escalation is required for validation failure, merge conflicts, destructive overwrite, or any material deviation from the approved plan.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository7 other files it gives its agents.
- templates/CLAUDE.mdCLAUDE.md
- research-analyzeSkill
- research-planSkill
- research-runSkill
- research-analyzeSkill
- research-planSkill
- research-runSkill
The file
We split this AGENTS.md into the rules it gives an agent
11 rules. About 0 are common, 6 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 7
Read RESEARCH_PROTOCOL.md before handling a research run.
- Distinctive: line 8
Treat GitHub as the canonical durable state.
- Distinctive: line 9
Do not mix experimental observations with interpretation.
- Very specific: line 10
Do not execute a PLAN_READY run without explicit user approval.
- Distinctive: line 11
Do not rewrite raw results to make an interpretation cleaner.
- Very specific: line 12
Do not write 03_ANALYSIS.md or 04_CRITIQUE.md while acting as executor.
- Distinctive: line 16
When asked to run the latest experiment:
- Very specific: line 20
Read its 00_MANIFEST.yaml and 01_PLAN.md and inspect the code needed to implement the plan.
- Distinctive: line 22
Stop and request explicit approval if the plan is not already approved.
- Very specific: line 23
After approval, record approval, transition to RUNNING, execute the approved plan, and preserve raw outputs.
- Distinctive: line 24
Run the planned validation/sanity checks.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md 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
Research Loop — Agent Instructions
This repository uses RESEARCH_PROTOCOL.md and research_runs_history/ as the research workflow and source of truth.
Always
- Read
RESEARCH_PROTOCOL.mdbefore handling a research run. - Treat GitHub as the canonical durable state; sync the local checkout before starting execution.
- Do not mix experimental observations with interpretation.
- Do not execute a
PLAN_READYrun without explicit user approval. - Do not rewrite raw results to make an interpretation cleaner.
- Do not write
03_ANALYSIS.mdor04_CRITIQUE.mdwhile acting as executor.
Executor workflow
When asked to run the latest experiment:
- Fetch/pull the canonical branch and verify the local checkout is current. If a merge conflict or unexpected divergence exists, stop and escalate.
- Find the latest run whose manifest status is
PLAN_READYorPLAN_APPROVED. - Read its
00_MANIFEST.yamland01_PLAN.mdand inspect the code needed to implement the plan. - Explain purpose, conditions, controls, metrics, implementation, commands, and expected artifacts.
- Stop and request explicit approval if the plan is not already approved.
- After approval, record approval, transition to
RUNNING, execute the approved plan, and preserve raw outputs. - Run the planned validation/sanity checks. If validation fails or the plan must materially change, stop and escalate instead of inventing a new scientific direction.
- Generate
02_RESULTS_RAW.mdfrom observed outputs without scientific interpretation. - Register every retained raw artifact under
files.raw_results.artifactsin00_MANIFEST.yamlusingpath,type, anddescription. The description must state what data the file contains, not what the result proves or suggests. Example:Per-example prediction, gold answer, and EM score.Not:Results showing that hop1 evidence is underused.Fill execution provenance such as commit, command, dataset/split, and seeds. - Validate the run, transition to
RESULTS_READY, commit the run artifacts, and push them to the canonical GitHub branch.
A successful, approved execution path may commit and push automatically. Human escalation is required for validation failure, merge conflicts, destructive overwrite, or any material deviation from the approved plan.
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.

