agentleFS
alloevilalloevil/agents-with-receipts/llms-full.txt

agents-with-receipts

llms.txt1 starsChanged 3 months agoMITView on GitHub

Agents with Receipts answers two questions about a repository. Can an agent understand it — AGENTS.md, conditional rules, hooks, skills, permissions? And can an agent verify its own work in it — one command that runs every check, determinism, failure evidence, hard constraints? Four zero-dependency Node CLIs report on both, and every claim in the handbook links to official vendor documentation. Two questions, one rule. The questions: understand — can an agent read this repository and know how to work…

The file

We split this llms-full.txt into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check one memory file:

    line 56
  2. Distinctive:

    Check a whole repository's agent infrastructure — your own, from this clone:

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt 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
llms-full.txt
# Agents with Receipts

Agents with Receipts answers two questions about a repository. Can an agent **understand** it — AGENTS.md, conditional rules, hooks, skills, permissions? And can an agent **verify** its own work in it — one command that runs every check, determinism, failure evidence, hard constraints? Four zero-dependency Node CLIs report on both, and every claim in the handbook links to official vendor documentation.

## What it is

Two questions, one rule. The questions: **understand** — can an agent read this repository and know how to work in it — and **verify** — can an agent check its own work here without a human waving it through. The rule: every claim must answer "where's the source?" with a link to official vendor documentation, and stale entries get deleted rather than accumulated.

Four artefacts carry it:

- **`rosetta/`** — a cross-tool comparison of Claude Code, OpenAI Codex, Cursor and GitHub Copilot across ten concepts (project-level memory, user-level memory, conditional/path rules, skills, hooks, sub-agents, OS-level sandbox, approval modes, MCP configuration, headless/CI). Every one of the 40 cells is itself a link to the vendor page that proves it, re-verified 2026-09-11.
- **`practices/`** — a thirteen-chapter handbook where each practice unfolds as scenario → approach with copy-pasteable examples → evidence as official links → boundaries. Chapters 01–08 and 12 sit on the *understand* axis — 12 asks the four questions that build a mental model of unfamiliar code (`/how` runtime, `/why` motivation from git history, `/teach` trade-offs, `/recall` bringing context back) and ships them as a commit-able skill; 09–11 carry *verify* — a single verification command, determinism, failure artefacts, module boundaries, escape-hatch ratchets, flaky quarantine, pushing team rules down from prose into mechanical failure, and verification skills: screenshots, video and traces as receipts for UI work.
- **`tools/`** — the practices turned into executable checks: `agentsmd-lint` grades a single memory file, `agents-doctor` grades a whole repository's agent setup, `agents-init` generates an AGENTS.md pre-filled with commands it actually detected, and `verify-doctor` grades the repository's verification loop across six stages (0, one command runs everything → 5, prerequisites for auto-merge).
- **`templates/`** — AGENTS.md and RULES.md skeletons built to pass the linter.

The published site renders the same repository Markdown, so the docs and the shipped content cannot drift apart. The repository dogfoods the whole set: CI runs the lint gate, the doctor checkup and the verify-doctor pass, and the root AGENTS.md was generated by `agents-init` and then refined by hand.

## Structure map: axis · chapter · check

Numbering is the order chapters were added, not the order to read them — the axis is the grouping, and each chapter's footer continues in axis order. This table is the only alignment you need between the three parts: the question on the left, the machine-checkable id that answers whether you got it right on the right (`id` in `--json` output). The four chapters marked "none" are exactly the ones whose rules stop at the prose layer — see [10](practices/10-hard-constraints.md) — not an oversight.

| Axis | Chapter | What it answers | Machine-checkable id (`--json`) |
|---|---|---|---|
| understand | [00 Get a repo agent-ready (follow-along)](practices/00-agent-ready-walkthrough.md) | The whole route from no infrastructure to a lint gate in CI | `agentsmd-lint`'s 5 rules · `agents-doctor`'s `ci-gate` · `agents-init` to generate a starting point |
| understand | [01 Memory files](practices/01-memory-files.md) | What to write, cut and maintain in AGENTS.md / CLAUDE.md — and how to audit Claude's auto memory | `agentsmd-lint`'s `max-lines` · `placeholder` · `vague` · `dead-script` · `empty-section`; `agents-doctor`'s `agents-md` · `claude-md` |
| understand | [02 Mechanism selection](practices/02-mechanism-selection.md) | Whether a fact belongs in memory, a rule, a skill, a hook or a subagent | `agents-doctor`'s `rules` · `hooks` · `skills` |
| understand | [03 Task framing and planning](practices/03-task-framing.md) | How to write a task an agent can execute and self-check | none — task wording has no mechanical check |
| understand | [04 Verification loops](practices/04-verification.md) | agent-TDD, independent review, diff reconciliation | `verify-doctor`'s `evidence-template` |
| understand | [05 Permissions and sandboxing](practices/05-permissions-sandbox.md) | Which autonomy tier, and how to fence network and secrets | none — the vendors enforce these tiers, the repo cannot |
| understand | [06 Context management](practices/06-context-management.md) | /clear discipline, isolated exploration, plans on disk, budget | none — context discipline leaves no artefact in the repo |
| understand | [07 Parallelism and orchestration](practices/07-parallel-orchestration.md) | What may run in parallel, file ownership, git worktree | none — orchestration discipline leaves no artefact in the repo |
| understand | [08 Security and team governance](practices/08-security-governance.md) | Untrusted input, secrets kept out of context, config checked in | `agents-doctor`'s `secrets` |
| understand | [12 Codebase mental model](practices/12-codebase-mental-model.md) | Asking the runtime, mining history for motivation, demanding trade-offs | `agents-doctor`'s `skills` · `adr` |
| verify | [09 Verifiable repositories](practices/09-verifiable-repo.md) | One command for everything, determinism, failure evidence, flaky quarantine | `verify-doctor`'s `verify-command` · `determinism` · `failure-artifacts` · `flaky-quarantine` |
| verify | [10 Pushing rules into hard constraints](practices/10-hard-constraints.md) | Moving rules from prose into structure, types and mechanical gates | `verify-doctor`'s `module-boundary` · `type-strict` · `lint-hardness` · `escape-ratchet` |
| verify | [13 Checkable claims](practices/13-checkable-claims.md) | Every published number gets the command that produces it, the six failure modes, and the manual escape hatch | `verify-claims`' `claims.json` |
| verify | [11 Verification skills](practices/11-verification-skills.md) | Failure traces and screenshots, driving the real app, visual evidence in PRs | `verify-doctor`'s `ui-evidence` |

## Install

Node ≥ 20. There are no dependencies to install — the four CLIs are single-file Node ESM scripts using only the standard library.

```bash
git clone https://github.com/alloevil/agents-with-receipts.git
cd agents-with-receipts
```

The tools are also declared as `bin` entries (`agentsmd-lint`, `agents-doctor`, `agents-init`, `verify-doctor`), so a local link works if you prefer named commands:

```bash
npm link
```

## Quickstart

Check one memory file:

```bash
node tools/agentsmd-lint/index.mjs AGENTS.md
node tools/agentsmd-lint/index.mjs --max-lines 150 AGENTS.md CLAUDE.md
```

Check a whole repository's agent infrastructure — your own, from this clone:

```bash
node tools/agents-doctor/index.mjs ../your-repo
```

Generate a starting point for a repo that has no AGENTS.md yet, and symlink CLAUDE.md to it:

```bash
node tools/agents-init/index.mjs ../your-repo --link
```

Grade whether an agent can verify its own work in a repository, stage by stage:

```bash
node tools/verify-doctor/index.mjs ../your-repo
node tools/verify-doctor/index.mjs ../your-repo --baseline   # freeze today's escape-hatch counts, then only allow them to fall
```

All four exit with code 1 on any error-level finding, so they drop into CI unchanged; `verify-doctor` reports missing stages as warnings unless you pass `--strict`, so it can be adopted before the gaps are closed. The single most useful takeaway from `rosetta/` needs no tooling at all: make a root-level `AGENTS.md` the single source of truth (the agents.md open standard, which Cursor and Copilot read natively) and symlink the vendor-specific name to it:

```bash
ln -s AGENTS.md CLAUDE.md
```

## Agent interface

Half the readers here are agents, so the four CLIs are not prose-only. Each one accepts `--help` (always exit 0, listing usage, every flag and what each exit code means) and `--json`. Under `--json`, stdout carries exactly one JSON object — no human lines, no ANSI — and the exit code is identical to human mode: only an `error`-level result exits 1, so a JSON run drops into CI the same way.

One schema for all four, so an agent learns it once:

```json
{
  "tool": "verify-doctor",
  "target": "/abs/path/to/repo",
  "summary": { "ok": 2, "warn": 5, "error": 0, "info": 2 },
  "results": [
    { "id": "verify-command", "level": "warn", "message": "...", "advice": "...", "stage": 0 }
  ]
}
```

- `level` is one of `ok`, `warn`, `error`, `info` — there is no fifth value, and only `error` moves the exit code.
- `advice` is optional. A field with nothing to say is omitted, never emitted as `null`.
- `stage` (integer 0–5) appears only on `verify-doctor` results, matching the stage headings of its human output. `line` appears on file-level findings — `agentsmd-lint`, and `agents-init`'s self-lint of the file it just wrote — and is omitted when a finding has no line number.
- `agentsmd-lint` reports on files rather than on a repository, so its `target` is always an array of absolute paths and every result carries its own `file` key; a multi-file run is still one JSON object.
- `results` maps one-to-one onto the human output lines, so a clean file yields an `ok` entry rather than an empty array, and `summary.ok` stays meaningful.
- Branch on `summary` and on `results[].id`, which are the stable parts. `message` and `advice` are prose for humans and may be reworded.
- Each `tools/<name>/README.md` carries the tool's own field table and id list under 「机器可读输出」.

```bash
node tools/agents-doctor/index.mjs ../your-repo --json | jq '.summary'
node tools/verify-doctor/index.mjs ../your-repo --json | jq '[.results[] | select(.level == "warn") | {id, stage, advice}]'
```

## Verifiable claims

Machine-readable copy with reproduction commands: https://alloevil.github.io/agents-with-receipts/claims.json

| Claim | Value | How measured | Repro | Evidence |
|---|---|---|---|---|
| Every cell of the cross-tool table is an official-doc link | 40/40 | 10 concept rows × 4 tool columns = 40 cells; counting external Markdown links inside those rows gives 40 | count cells and links in `rosetta/README.md` (see `claims.json`) | `rosetta/README.md` |
| Runtime plus development dependencies | 0 | `package.json` declares neither `dependencies` nor `devDependencies` | `node -e "const p=require('./package.json');console.log(Object.keys(p.dependencies||{}).length+Object.keys(p.devDependencies||{}).length)"` | `package.json` |
| Executable CLI tools shipped | 4 | `bin` entries in `package.json`, each pointing at an existing `tools/<name>/index.mjs` | `node -e "console.log(Object.keys(require('./package.json').bin).length)"` | `tools/` |
| Rules enforced by `agentsmd-lint` | 5 | `max-lines`, `placeholder`, `vague`, `dead-script`, `empty-section` present in both implementation and documented rule table | see `agentsmd-lint-rule-count` in `claims.json`; behaviour covered by `node --test tools/agentsmd-lint/test/lint.test.mjs` | `tools/agentsmd-lint/README.md` |
| Checks run by `agents-doctor` | 8 | `agents-md`, `claude-md`, `rules`, `hooks`, `skills`, `adr`, `secrets`, `ci-gate` present in both implementation and documented check table | see `agents-doctor-check-count` in `claims.json`; behaviour covered by `node --test tools/agents-doctor/test/doctor.test.mjs` | `tools/agents-doctor/README.md` |
| Checks run by `verify-doctor` | 10 | `verify-command`, `determinism`, `failure-artifacts`, `ui-evidence`, `module-boundary`, `type-strict`, `lint-hardness`, `escape-ratchet`, `flaky-quarantine`, `evidence-template` present in both implementation and documented check table | see `verify-doctor-check-count` in `claims.json`; behaviour covered by `node --test tools/verify-doctor/test/verify-doctor.test.mjs` | `tools/verify-doctor/README.md` |
| Chapters that state their position and the checks they feed | 14/14 | every chapter footer names its axis neighbours and the tool check ids its method feeds; every id named there exists in `tools/*/index.mjs` | `chapter-tool-map` in `claims.json` | `practices/README.md` |
| Practice chapters, excluding the index | 14 | files under `practices/` other than `README.md`: the 00 walkthrough plus chapters 01–12 | `ls practices/*.md \| grep -v README \| wc -l` | `practices/` |

Two things deliberately have **no** number attached. Cell correctness in `rosetta/` is dated (2026-09-11, first pass 2026-08) rather than scored, because it is a human verification against pages that change. And the handbook makes no claim that following it improves any measurable outcome — there is no benchmark here, and inventing one would violate the repository's own rule.

## When to use it

- You are setting up agent infrastructure for a repository for the first time and want a route where every step is verifiable: chapter 00 walks AGENTS.md → conditional rules → hooks → lint in CI.
- You are switching between, or simultaneously using, Claude Code / Codex / Cursor / Copilot and need to know what each calls the same concept, where the file lives, and how their "nearest wins" semantics differ in a monorepo — the four differ in ways that bite.
- You already have an AGENTS.md and want to know whether it is any good: run the linter, which catches placeholders left in from a template, references to npm scripts that do not exist, vague wording an agent cannot act on, empty heading sections, and excessive length.
- You want a repo-level checkup before onboarding a team onto agents: `agents-doctor` reports memory-file quality, CLAUDE.md symlink drift, which vendors' rules/hooks/skills directories exist, whether secret files are gitignored, and whether CI has a lint gate.
- You are writing team standards and need each rule to carry a citation your colleagues can click.

## When NOT to use it

- **You want performance or productivity numbers.** There are none, by design. The repository measures its own artefacts (cells, rules, checks, chapters) and nothing else. It does not claim any practice makes an agent faster or more accurate, because it has not measured that.
- **You need vendor facts guaranteed current.** The comparison table is dated 2026-09-11. This field moves in months; the repository's own second principle is half-life awareness. Click through to the vendor page — every cell is a link precisely so you can re-verify — before betting on a specific cell.
- **You want the tools to fix your files.** All four are read-only reporters except `agents-init`, which writes a new AGENTS.md and refuses to overwrite an existing one without `--force`. `verify-doctor` is a detector, not a fixer: it names the stage and the missing evidence, never edits your tests, config or CI, and bundles no dependency-cruiser or betterer of its own — zero dependencies is a rule here, so it only detects whether you have already adopted such a tool. Nothing rewrites your prose.
- **You are on Node < 20,** or want a dependency-free binary. The tools require Node ≥ 20 and are distributed as source in the repository, not as a published package.
- **You want opinions on models, prompts, or which agent is best.** The scope is the repository side of two axes — can an agent understand this repo (memory files, rules, skills, hooks, sandboxing, approvals, MCP, headless) and can an agent verify its own work in it (verification command, determinism, failure artefacts, module boundaries, escape-hatch ratchets, flaky quarantine) — not model selection or prompt engineering.
- **You want a quick bullet list to skim.** Chapters are deliberately long-form: scenario, approach, evidence, boundaries. If you only have ten minutes, read the "convergence landscape" and "proximity-rule differences" sections of `rosetta/` and run the linter once.

## Compared to Claude Code, OpenAI Codex, Cursor and GitHub Copilot

These four are not competitors of this project — they are its subject. The comparison table exists because the same concept has a different name and a different location in each, and the repository refuses to summarise that from memory: each of the 40 cells links to the vendor page it came from. Three findings are worth stating outright, because they contradict the common "the ecosystem is hopelessly fragmented" framing.

First, convergence is further along than expected. Cursor and Copilot both read `AGENTS.md` natively (Copilot also reads `CLAUDE.md`), so a root-level `AGENTS.md` as single source of truth is a stronger strategy than it was a year ago. All four base skills on the agentskills.io convention, and Cursor, Copilot and Codex recognise each other's skill directories, making `.agents/skills/` the largest common denominator — Claude Code still reads only `.claude/skills/`. All four now ship deterministic pre-tool-use interception (hooks) and all four ship OS-level sandboxing: Seatbelt on macOS, bubblewrap or Landlock+seccomp on Linux.

Second, the differences that actually break things are subtle. "Nearest file wins" means four different things: Claude Code collects every `CLAUDE.md` from cwd upward and concatenates all of them; Codex walks from the project root down to cwd taking one file per directory and keys off **cwd rather than the file being edited**, so editing `services/x.ts` will not load `services/AGENTS.md` unless you started the agent there; Cursor merges nested `AGENTS.md` with "more specific wins" and its CLI additionally reads a root `CLAUDE.md`; Copilot's editor uses "closest wins" while its CLI explicitly declines to define a precedence order and only performs discovery and deduplication. In a monorepo those four behaviours produce four different effective prompts from identical files.

Third, hooks and approvals differ in file location and event names but not in capability, so a policy written for one can usually be ported — which is exactly the kind of statement that needs a citation next to it, and has one in the table.

## FAQ

**What is the difference between agentsmd-lint, agents-doctor, agents-init and verify-doctor?**
They operate at four different scopes. `agentsmd-lint` takes one or more memory files and grades their content: too many lines (every line costs context budget in every session), unfilled template placeholders like TODO or `<project name>`, vague wording an agent cannot act on, references to npm scripts that do not exist in the sibling package.json, and empty heading sections. `agents-doctor` takes a repository path and grades the infrastructure around those files: does a root AGENTS.md exist and pass lint, is CLAUDE.md a symlink to it or a copy that has drifted, which of the four vendors' rules/hooks/skills directories are configured, are secret files gitignored, does CI have a lint gate. `agents-init` takes a repository with no AGENTS.md and writes one, filling in only commands it actually detected from package.json, Cargo.toml, pyproject.toml or go.mod, then runs the linter on its own output. `verify-doctor` switches axis: it takes a repository path and grades whether an agent can check its own work there — is there one command that runs every check, is that command deterministic (pinned seeds, clock, ports), do failures leave structured output and artefacts, are module boundaries and type strictness mechanically enforced, are lint escape hatches ratcheted downward, is there a flaky quarantine policy, and does the PR flow demand evidence — reporting each finding under the stage it belongs to, 0 through 5.

**Why does agents-init only write commands it detected?**
Because a generic template's commands are invented, and an invented command in a memory file is worse than no memory file: the agent runs it, it fails, and the file has taught the agent something false. `agents-init` reads package.json scripts, Cargo.toml, pyproject.toml and go.mod, emits only the test/build/lint/dev entries that exist (switching the prefix when `packageManager` names pnpm or yarn), and for pyproject without pytest traces it writes a comment rather than guessing a command. It then runs `agentsmd-lint` on what it produced and exits non-zero if that fails, so a bad generation cannot ship quietly.

**Should CLAUDE.md be a symlink to AGENTS.md?**
That is the repository's recommendation, and `ln -s AGENTS.md CLAUDE.md` is the whole implementation. The reasoning: `AGENTS.md` is an open standard that Cursor and Copilot read natively, so making it the single source of truth means one file to maintain instead of one per vendor. `agents-doctor` grades the result on a three-level scale — a symlink is ok, a separate file with identical content is info (it works, but it will drift), and content that has already drifted or is missing is a warning. Note the trade-off: a symlink means every tool sees exactly the same instructions, which is what you want for shared conventions but not if you need genuinely vendor-specific guidance.

**How current is the cross-tool comparison, and what happens when a vendor changes something?**
It was verified cell by cell in 2026-09 (first pass 2026-08), and that date is stated on the table rather than implied. The design decision that makes staleness survivable is that every cell's text *is* the link to the vendor page, so a reader can re-verify any single cell in one click instead of trusting the table wholesale. Corrections are accepted as pull requests that include the official link, and the stated policy is that outdated entries get deleted rather than left in place with a caveat.

**What is the licence, and can I reuse the content in internal documentation?**
The code is MIT. The documentation content is additionally available under CC BY 4.0, so you can copy chapters or table rows into internal docs with attribution. If you cite a specific claim, cite the page that carries it — for example `https://alloevil.github.io/agents-with-receipts/practices/05-permissions-sandbox.html` — rather than the site root, and keep the vendor link that backs it so your readers inherit the receipt.

## Source

- Site: https://alloevil.github.io/agents-with-receipts/
- Repository: https://github.com/alloevil/agents-with-receipts
- Claims with repro commands: https://alloevil.github.io/agents-with-receipts/claims.json
- Licence: MIT (code), CC BY 4.0 (documentation content)

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.