CLAUDE.md and AGENTS.md checker

Paste your file to see how many tokens it loads at the start of every session, whether it fits the size limits Claude Code and Codex use, and which notes would do better outside it.

Checked in your browser. Your file is never uploaded or saved.

Paste a CLAUDE.md or AGENTS.md, open one, or try the example. The results show up here as you type.

What the checker looks at

  • Tokens loaded every session. Claude Code reads CLAUDE.md, and Codex reads AGENTS.md, in full before you type anything. The estimate uses about four characters per token, the usual rate for English text and Markdown.
  • Length. Anthropic's Claude Code documentation suggests keeping each CLAUDE.md under 200 lines. Codex stops adding AGENTS.md files once their combined size reaches 32 KiB, so the checker shows the line where Codex would stop reading.
  • Notes that change over time. Dated entries, past decisions, fixes, ticket ids and links to pull requests. They grow with the project and go stale, and every session pays for them whether the task needs them or not.
  • Repeated lines. The same rule written twice costs tokens twice and can drift out of step.
  • Long sections. A section of more than 60 lines is often a topic that only some tasks need.
  • Imports. In CLAUDE.md, a line such as @docs/style.md loads that file too, so its size counts as well.

How to make the file smaller

Keep the rules every task needs: build and test commands, code style, what never to do. Move notes that grow, such as past decisions and fixes, into something your agents search when a task calls for them. Keep CLAUDE.md short walks through it, and how to reduce Claude Code token usage covers the other places tokens go.

Using AGENTS.md with Codex? See what AGENTS.md is and how Codex reads it and how to check if Codex loaded your file.

Frequently asked questions

Is my file uploaded anywhere?

No. The checker runs in your browser. The text you paste or the file you pick is read on your device and never sent to a server, and nothing is saved.

How many tokens does my CLAUDE.md use?

Claude Code loads the whole file at the start of every session, so every line costs tokens each time. The checker estimates the count at about four characters per token, the usual rate for English text and Markdown. The exact number depends on the model's tokenizer.

How long should CLAUDE.md be?

Anthropic's Claude Code documentation suggests keeping each CLAUDE.md under 200 lines. Longer files use more context in every session and are followed less closely.

Is there a size limit for AGENTS.md in Codex?

Yes. Codex stops adding AGENTS.md files once their combined size reaches 32 KiB, the default value of project_doc_max_bytes in ~/.codex/config.toml. Instructions past that point are never read.

What should I move out of CLAUDE.md or AGENTS.md?

Notes that grow and change: past decisions, fixes, dated entries, ticket and pull request references. Keep the rules every task needs, such as build and test commands and code style, and move the rest into a memory your agents search when they need it.