# CLAUDE.md and token cost: what it is and what it costs you

Source: https://quotaplug.com/guides/claude-md-best-practices
Updated: 2026-12-02

> CLAUDE.md is a project instruction file that Claude Code loads into context at the start of every session, so it is re-sent on every step. It is a real but modest part of your usage. The bigger drains are usually long sessions, background agents and noisy tool output, which QuotaPlug handles automatically.

CLAUDE.md is the one file Claude Code reads on every single session. That makes it the most re-read text in your repo, and one piece of a much bigger picture.

## Why CLAUDE.md matters to cost

CLAUDE.md is loaded into context at the start of each session. Context is re-sent on every step. So a CLAUDE.md is never a one-time cost: over a long session it is re-read at the cache rate on every single request, in every project, in every conversation you start. A small file is a rounding error. A very large one adds a fixed tax to everything you do.

Anthropic's own `/usage` recommendations show this pattern: a row naming a specific CLAUDE.md that adds tokens to every request is what a bloated file looks like. Size also affects behavior. Anthropic's memory docs note that longer files consume more context and reduce adherence.

## What CLAUDE.md is for

It is where you tell Claude facts it should hold in *every* session: how to build and test your project, how the code is laid out, conventions Claude cannot infer. Run `/init` to generate a starting file from your codebase. If one exists, `/init` suggests improvements instead of overwriting.

Claude Code also supports other places for instructions, each with its own loading behavior. Anthropic documents them in its memory docs.

## The bigger picture

It is tempting to treat CLAUDE.md as the lever on token usage, because it is the one thing you fully control and can read in a minute. In practice it is a fixed overhead, and fixed overhead is usually not where a plan goes. The drains that decide whether a week survives are the ones that grow while you are not looking.

- **Long sessions.** A conversation that keeps growing is re-read on every step, so what it carries matters more than any single file in it.

- **Background agents.** They run their own requests, outside your main conversation.

- **Noisy output.** A single log can be re-read for the rest of a session.

In the founder's heaviest November 2026 week, 62% of the spend was re-reading oversized conversations, and on his Max plan 81% of one week went to subagents. A tidy instruction file does not touch either of those.

Quota audit, no account: `npx quotaplug audit` shows where your Claude plan goes. [How the audit works](https://quotaplug.com/audit).

## What QuotaPlug does and does not do

QuotaPlug does not rewrite your CLAUDE.md, and you do not need to change it to use QuotaPlug. It works on the other side: the usage that builds up around your instructions while you work. A lean file is no help if it sits under a conversation that has grown out of control, and a long file is a modest cost next to waste you never see.

Whatever you keep in CLAUDE.md is your call. Treat the file like code: review it when something goes wrong, delete lines that no longer earn their place, and keep it correct. Beyond that, the bigger gains are elsewhere.

## Why QuotaPlug handles the rest

Instruction files grow one line at a time. Every bug becomes a rule, every rule becomes a paragraph, and months later nobody dares to cut it. Meanwhile the waste outside the file keeps growing too.

**QuotaPlug is a usage optimizer for Claude Code that makes a Claude Pro, Max or Ultra plan last 2 to 4 times longer. Same model, same effort level, same quality, and no changes to how you prompt. It installs in one command and runs locally.**

See where your own tokens went:

```bash
npx quotaplug audit
```

Local, no account needed. [Pricing](https://quotaplug.com/pricing).

## Frequently asked questions

### Does CLAUDE.md cost tokens on every message?

It loads at the start of each session and stays in the conversation, so it is re-sent with every request at the cache rate.

### What is CLAUDE.md for?

It holds instructions Claude should have in every session, such as build and test commands, project layout and conventions. Run `/init` to generate a starting file.

### Is a .claudeignore file supported?

No, it has no effect. Anthropic's docs describe the supported ways to keep Claude away from files.

### Is CLAUDE.md the main reason my plan runs out?

Rarely. It is a fixed overhead. Long sessions, background agents and noisy output usually cost much more over a week.

### Does QuotaPlug change my CLAUDE.md?

No. QuotaPlug leaves your instruction files alone and works on the waste around them, automatically.

## Keep reading

[Claude Code context window: size and costSettings and setup](https://quotaplug.com/guides/claude-code-context-window)[How to reduce Claude Code token usageCost and savings](https://quotaplug.com/guides/reduce-claude-code-token-usage)[Claude Code auto compact: what it does and why timing costs youSettings and setup](https://quotaplug.com/guides/claude-code-auto-compact)[Claude Code hooks and token usage: why noisy output is costlySettings and setup](https://quotaplug.com/guides/claude-code-hooks-to-save-tokens)[Why is Claude Code so expensive?Cost and savings](https://quotaplug.com/guides/why-is-claude-code-so-expensive)
