ai-protocol
AGENTS.md18 starsChanged 3 months agoMITView on GitHub
This file is the harness-agnostic contract for AI-assisted work in this repository. The universal baseline ends at the Project Specifics marker. The Project Specifics section defines how this repository applies the baseline.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 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 repository5 other files it gives its agents.
- concept-intakeSkill
- consolidate-stateSkill
- plan-implementationSkill
- shape-conceptSkill
- sync-protocolSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
64 rules. About 1 is common, 55 are distinctive, and 8 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈55
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Write one independently testable instruction per bullet.
- Distinctive: line 12
Use the section heading to provide context.
- Distinctive: line 13
Put rationale in a separate paragraph.
- Distinctive: line 14
Put examples in a separate paragraph.
- Distinctive: line 15
Keep each Markdown paragraph on one physical line.
- Distinctive: line 16
Keep each Markdown list item on one physical line.
- Distinctive: line 20
Read the nearest AGENTS.md before changing files.
- Distinctive: line 21
Treat the nearest AGENTS.md as authoritative for its directory tree.
- Distinctive: line 27
Keep harness-specific instruction files as pointers to this contract.
- Very specific: line 31
Treat docs/concept/ as accepted product intent.
- Distinctive: line 32
Treat the Project Specifics section as the repository execution contract.
- Very specific: line 33
Treat BUILD_STATE.md as the latest verified repository checkpoint.
- Distinctive: line 34
Treat executable evidence as authoritative for implemented behaviour.
- Distinctive: line 35
Treat a runtime ledger as authoritative only for live worker state.
- Distinctive: line 36
Treat conversation history as non-authoritative context.
- Distinctive: line 42
Treat approval of a bounded implementation objective as authorization to complete that objective.
- Distinctive: line 44
Update the plan when implementation reveals new in-scope work.
- Distinctive: line 47
Ask the user only when a decision would materially change product intent.
- Distinctive: line 48
Ask the user only when a decision would materially expand scope.
- Distinctive: line 49
Stop when required authority falls outside the approved objective.
- Distinctive: line 55
Use an isolated checkout when unrelated changes overlap the write area.
- Common: line 56
Keep secrets out of tracked files.
- Distinctive: line 57
Keep local environment values out of tracked files.
- Distinctive: line 58
Leave generated output unchanged unless the objective owns its generation.
- Distinctive: line 59
Leave dependency lockfiles unchanged unless the objective changes dependencies.
- Distinctive: line 60
Keep debug artifacts out of the completed change.
- Distinctive: line 61
Use the project logger for retained diagnostic output.
- Distinctive: line 73
Use isolated worktrees for concurrent writers.
- Distinctive: line 74
Treat teammate output as untrusted until the Leader verifies it.
- Distinctive: line 79
Run focused checks while implementing.
- Distinctive: line 80
Run integration checks when independently implemented areas converge.
- Distinctive: line 81
Run the complete declared validation suite before final delivery.
- Distinctive: line 85
Treat direct-route tests as supporting evidence.
- Distinctive: line 86
Treat isolated component tests as supporting evidence.
- Distinctive: line 88
Stop when validation cannot be restored safely.
- Distinctive: line 93
Keep the integration branch recoverable during execution.
- Distinctive: line 94
Create cohesive checkpoint commits when they improve recoverability.
- Very specific: line 95
Update BUILD_STATE.md only at meaningful checkpoints.
- Distinctive: line 106
Prefer a small reversible implementation choice when the accepted intent permits several options.
- Distinctive: line 108
Stop before making an unapproved product-policy decision.
- Distinctive: line 110
Leave an explicit blocker when a green state cannot be restored.
- Very specific: line 118
Keep one BUILD_STATE.md per repository scope.
- Distinctive: line 119
Keep workspace state separate from child-project state.
- Distinctive: line 127
Treat this repository as the canonical AI Protocol source.
- Distinctive: line 128
Keep the distributed contract harness-agnostic.
- Very specific: line 129
Keep the starter limited to AGENTS.md, LICENSE, three startup roles, and five lifecycle skills.
- Distinctive: line 130
Treat repository maintenance as instruction-only work unless the release workflow or helper script changes.
- Very specific: line 137
Use BUILD_STATE.md as the latest verified source-release checkpoint.
- Distinctive: line 138
Treat this repository as having no runtime control ledger.
- Distinctive: line 139
Keep provider-specific routing outside the distributed protocol.
- Distinctive: line 143
Run git diff --check before source delivery.
- Distinctive: line 147
Run the atomic-instruction scan before source delivery.
- Very specific: line 148
Run the exact starter archive assertions from .github/workflows/release-starter.yml before source delivery.
- Distinctive: line 149
Run a complete ambiguity audit before source delivery.
- Distinctive: line 150
Verify the published archive manifest after release publication.
- Distinctive: line 151
Verify the published archive checksum after release publication.
- Distinctive: line 156
Keep release packaging deterministic.
- Distinctive: line 157
Keep symlinks out of the starter archive.
- Distinctive: line 158
Keep repository-only documents out of the starter archive.
- Distinctive: line 159
Keep repository-only examples out of the starter archive.
- Distinctive: line 160
Keep repository-only assets out of the starter archive.
- Distinctive: line 161
Update README lifecycle claims when the distributed contract changes materially.
- Distinctive: line 162
Update examples when the planning model changes materially.
- Very specific: line 163
Update BUILD_STATE.md at each release checkpoint.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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
AGENTS.md
This file is the harness-agnostic contract for AI-assisted work in this repository.
The universal baseline ends at the Project Specifics marker.
The Project Specifics section defines how this repository applies the baseline.
Instruction format
- Write one independently testable instruction per bullet.
- Use the section heading to provide context.
- Put rationale in a separate paragraph.
- Put examples in a separate paragraph.
- Keep each Markdown paragraph on one physical line.
- Keep each Markdown list item on one physical line.
Instruction discovery
- Read the nearest
AGENTS.mdbefore changing files. - Treat the nearest
AGENTS.mdas authoritative for its directory tree. - Load
.agents/roles/leader.mdwhen acting as the primary agent. - Load
.agents/roles/teammate.mdwhen accepting delegated work. - Load
.agents/roles/adjudicator.mdwhen reviewing a disputed or high-consequence decision. - Load a skill only when the user invokes it or its stated trigger applies.
- Load only the project documents relevant to the approved objective.
- Keep harness-specific instruction files as pointers to this contract.
Project truth
- Treat
docs/concept/as accepted product intent. - Treat the Project Specifics section as the repository execution contract.
- Treat
BUILD_STATE.mdas the latest verified repository checkpoint. - Treat executable evidence as authoritative for implemented behaviour.
- Treat a runtime ledger as authoritative only for live worker state.
- Treat conversation history as non-authoritative context.
- Resolve contradictions in favour of the source that owns the disputed fact.
- Surface unresolved authority conflicts to the user.
Approved objectives
- Treat approval of a bounded implementation objective as authorization to complete that objective.
- Plan the approved objective when no adequate plan exists.
- Update the plan when implementation reveals new in-scope work.
- Continue automatically after planning.
- Continue automatically after an internal task completes.
- Ask the user only when a decision would materially change product intent.
- Ask the user only when a decision would materially expand scope.
- Stop when required authority falls outside the approved objective.
Scope and safety
- Trace every changed line to the approved objective.
- Preserve unrelated user changes.
- Use an isolated checkout when unrelated changes overlap the write area.
- Keep secrets out of tracked files.
- Keep local environment values out of tracked files.
- Leave generated output unchanged unless the objective owns its generation.
- Leave dependency lockfiles unchanged unless the objective changes dependencies.
- Keep debug artifacts out of the completed change.
- Use the project logger for retained diagnostic output.
- Preserve type-system guarantees.
- Validate untrusted values at their boundary.
- Obtain explicit approval before destructive data mutation.
- Obtain explicit approval before destructive history rewriting.
- Obtain explicit approval before deployment.
- Obtain explicit approval before using paid external resources.
- Obtain explicit approval before communicating outside the approved delivery workflow.
Delegation
- Give one writer exclusive ownership of each overlapping write area.
- Use isolated worktrees for concurrent writers.
- Treat teammate output as untrusted until the Leader verifies it.
Validation
- Begin implementation from a known green commit.
- Run focused checks while implementing.
- Run integration checks when independently implemented areas converge.
- Run the complete declared validation suite before final delivery.
- Exercise changed behaviour against the running product when practical.
- Exercise interaction-bearing work from the actor's natural entry point.
- Reach an observable result before accepting interaction-bearing work.
- Treat direct-route tests as supporting evidence.
- Treat isolated component tests as supporting evidence.
- Repair failed validation within the approved objective.
- Stop when validation cannot be restored safely.
- Report every skipped required check.
Delivery
- Keep the integration branch recoverable during execution.
- Create cohesive checkpoint commits when they improve recoverability.
- Update
BUILD_STATE.mdonly at meaningful checkpoints. - Record material implementation decisions in
BUILD_STATE.md. - Record material deviations in
BUILD_STATE.md. - Finish the approved objective in a clean worktree.
- Finish the approved objective with the declared validation suite passing.
Continuity
- Checkpoint verified state before expected context loss.
- Record active ownership before expected context loss.
- Record the next action before expected context loss.
- Prefer a small reversible implementation choice when the accepted intent permits several options.
- Record a material reversible choice in
BUILD_STATE.md. - Stop before making an unapproved product-policy decision.
- Restore a green state before ending interrupted implementation work.
- Leave an explicit blocker when a green state cannot be restored.
Repository structure
- Store reusable project instructions under
.agents/. - Store role identity contracts under
.agents/roles/. - Store user-invoked procedures under
.agents/skills/. - Author a project skill at the lowest directory level that needs it.
- Keep one
BUILD_STATE.mdper repository scope. - Keep workspace state separate from child-project state.
<!-- BEGIN PROJECT SPECIFICS -->Project Specifics
Descriptor
- Treat this repository as the canonical AI Protocol source.
- Keep the distributed contract harness-agnostic.
- Keep the starter limited to
AGENTS.md,LICENSE, three startup roles, and five lifecycle skills. - Treat repository maintenance as instruction-only work unless the release workflow or helper script changes.
- Require explicit maintainer direction before changing the distributed baseline.
- Require explicit maintainer direction before changing a distributed role.
- Require explicit maintainer direction before changing a distributed skill.
Governance and runtime
- Use
BUILD_STATE.mdas the latest verified source-release checkpoint. - Treat this repository as having no runtime control ledger.
- Keep provider-specific routing outside the distributed protocol.
Validation gates
- Run
git diff --checkbefore source delivery. - Run
bash -n kickstart.shbefore source delivery. - Validate every canonical skill frontmatter before source delivery.
- Validate every referenced startup role before source delivery.
- Run the atomic-instruction scan before source delivery.
- Run the exact starter archive assertions from
.github/workflows/release-starter.ymlbefore source delivery. - Run a complete ambiguity audit before source delivery.
- Verify the published archive manifest after release publication.
- Verify the published archive checksum after release publication.
Stack-specific rules
- Preserve release asset names expected by
kickstart.sh. - Keep release packaging deterministic.
- Keep symlinks out of the starter archive.
- Keep repository-only documents out of the starter archive.
- Keep repository-only examples out of the starter archive.
- Keep repository-only assets out of the starter archive.
- Update README lifecycle claims when the distributed contract changes materially.
- Update examples when the planning model changes materially.
- Update
BUILD_STATE.mdat each release checkpoint.
<!-- END PROJECT SPECIFICS -->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.

