agentleFS
andyridsandyrids/icm-spec/skills/init/templates/AGENTS.md

icm-spec / templates

AGENTS.md2 starsChanged 4 months agoApache-2.0View on GitHub

[Replace this paragraph. State what the project is, who it serves, and the one or two constraints an agent must never violate. This block is the only project-specific part of the file.] This project follows Interpretable Context Methodology (ICM): agent workflows orchestrated through workspaces of folder structure, markdown and scripts, each a pipeline of stages with a defined input, process and output. Review gates MUST be respected - they are where a human inspects the work and hands it back.

  • 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 repository10 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Start at CONTEXT.md in the repository root.

    line 18
  2. Very specific:

    Every file above carries context-hierarchy, context-hierarchy-role and immutable as tabled, plus recommended-context-tokens where a target …

    line 38

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

[Project name]

[Replace this paragraph. State what the project is, who it serves, and the one or two constraints an agent must never violate. This block is the only project-specific part of the file.]

This project follows Interpretable Context Methodology (ICM): agent workflows orchestrated through workspaces of folder structure, markdown and scripts, each a pipeline of stages with a defined input, process and output. Review gates MUST be respected - they are where a human inspects the work and hands it back.

Start at CONTEXT.md in the repository root; it routes to the workspace that owns the work.

Context hierarchy

Five layers. Layers 0 to 2 route; layers 3 and 4 carry content. Load a layer only when the work has reached it - reading ahead is how a stage acquires context it was designed not to have.

LayerRolePathimmutableBudget
0Global identityAGENTS.mdfalse900
1Workspace routingCONTEXT.mdfalse300
2Stage routingICM/*/CONTEXT.mdfalse500
2Stage contractICM/*/stages/**/CONTEXT.mdfalse500
3Reference materialICM/_config/reference-*.md, both READMEstrue2500
3Reference materialspecs/**/*.mdfalse-
4Working artifactplans/*.mdfalse-
4Working artifactICM/*/stages/**/output/*.mdfalse-

Frontmatter

Every file above carries context-hierarchy, context-hierarchy-role and immutable as tabled, plus recommended-context-tokens where a target is given. Beyond those:

  • Budgets are a signal, not an enforced limit. A file that outgrows one is worth a look - it may have started doing another layer's job. Specs are unbudgeted - a spec is as long as the behaviour it declares.
  • Layer 3 carries tags: [keyword, ...]. immutable: true marks the factory configuration, amended deliberately, not in passing. Specs are not part of it: the pipeline exists to amend them, and stage 01 owns every change.
  • plans/*.md carries status - planned | in-progress | done | blocked | cancelled - plus the query fields depends, specs, authors, issues and pr, contracted in plans/README.md. Every coverage and ripple check reads them.
  • ICM/*/stages/**/output/*.md carries status: in-progress | in-review | done. It is ephemeral scratch, gitignored.

Design principles

  1. One stage, one job - each stage handles a single step of a workflow.
  2. Plain text as the interface - stages communicate through plain text.
  3. Layered context loading - agents load only what the current stage needs.
  4. Output is an edit surface - stage output can be opened, read, edited and saved.
  5. Configure the factory, not the product - new deliverables reuse the same configuration.

Stage contracts

Each stage defines a contract in three parts - what it reads, what it does, what it writes - stated in its own ICM/*/stages/**/CONTEXT.md, which is the authority for that stage.

A contract cites the rules it depends on rather than restating them. Where a stage and a reference disagree, the reference wins and the contract is what needs fixing.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.