Glossary · AGENTS.md

AGENTS.md.

One instruction file every agent reads.

The short answer

AGENTS.md is the cross-tool standard for repo-wide agent instructions (donated to the Linux Foundation's Agentic AI Foundation, Dec 2025): conventions, stack, test/build commands, architectural invariants, read by Cursor, Codex, OpenCode, Anvaya, and more.

Read the full answer

Measured impact: ~29% lower median runtime and ~17% fewer output tokens on PR-sized tasks. Rules: only what the agent can't infer from code, short, versioned in PRs, pruned ruthlessly; nested files merge with specific-wins.

AGENTS.md, working

Session 1 asks. Session 47 already knows.

The same request twice: first the agent explores, later the Mind serves what earlier sessions settled.

anv · session replayillustrative
  1. add a --json flag to `ledger export`
  2. grep "export" src/: ok, 14 matches
  3. read_file src/main.rs: ok, 212 lines
  4. read_file src/cli/mod.rs: ok, 148 lines
  5. read_file src/export/csv.rs: ok, 96 lines
  6. Formats implement Render. Adding a Json renderer beside csv.
  7. rewrite_file src/export/json.rs: ok, +38
  8. edit_file src/cli/mod.rs: ok, +6
  9. run_command cargo test -p ledger: failed, E0432 unresolved import serde_json
  10. serde_json is optional in Cargo.toml, behind the json feature.
  11. run_command cargo test -p ledger --features json: ok, 42 passed
  12. done · 8 tool calls · 1 failed run
Illustrative transcript; each recalled weight uses its kind's shipped decay rate at the age shown.

In Anvaya

How we implement it.

AGENTS.mdAnvaya reads AGENTS.md as standing Write-layer context and handles everything it can't: accumulated why, bug history, and patterns that would bloat a hand file.

Questions

Asked about AGENTS.md.

AGENTS.md vs CLAUDE.md?

AGENTS.md is the cross-tool standard; CLAUDE.md is Claude Code's equivalent. Keep both thin or converge on AGENTS.md with tool-specific files for extras.

What belongs in it?

Stack + versions, test/lint/build commands, non-obvious conventions, hard constraints. Not: codebase tours the agent can read itself.

Monorepo strategy?

Nested files: root holds universal truths, packages hold specifics, specific-wins merging. Scope rules by glob so agents load only their package.

Run agents that fit on your laptop.

23.4 MB median own-process memory, measured across 1030 runs (994 verified) and fourteen harnesses. One command installs the harness and the Mind together. Nothing leaves your machine on the Ollama path.

Developer beta. macOS on Apple Silicon and Linux on x86_64 or arm64. Memory figure: --no-mind, macOS/ARM, n=3 per cell. Pre-1.0, pricing not set.