# agent-md-bench - AGENTS.md / CLAUDE.md linter

Canonical URL: https://bernstein.run/tools/agent-md-bench

100% client-side browser utility (no login, nothing leaves the page) that counts tokens and bytes, checks per-agent context budgets, and flags parser quirks across CLI coding agents:

- **claude code**: 200-line soft cap; YAML frontmatter is ignored and burns tokens; subdirectory `CLAUDE.md` requires `--add-dir`.
- **cursor**: `.mdc` requires YAML frontmatter; legacy `.cursorrules` is undocumented; <= 500 lines per `.mdc`.
- **codex (openai)**: reads `AGENTS.md` only; dense bullet lists parse cleaner than prose walls.
- **aider**: reads `CONVENTIONS.md` only when listed in `.aider.conf.yml` (ignores `AGENTS.md` / `CLAUDE.md`).
- **gemini cli**: reads `GEMINI.md` (case-sensitive on Linux).
- **opencode**: reads `AGENTS.md` by convention.
- **cross-cutting**: non-standard `max-tool-budget` directive, HTML comments burning tokens, prompt-cache penalty above 16 KB, missing `## Build & test` section.

Adapter implementations: https://github.com/sipyourdrink-ltd/bernstein/tree/main/src/bernstein/adapters
