# Keep instruction files short

> Instruction files such as CLAUDE.md and Cursor rules load into every session, so every line is paid for on every run. Keep them short, move detail into skills or docs the agent opens when needed, and check what loads at the start of a session.

Last checked: 30 Nov 2026, against the vendor's own pages.

Family: Load fewer tools.

## Where it fits
- **Building my own agent**: partly. Keep the system prompt short.
- **Using a coding agent**: fits. CLAUDE.md under 200 lines; Cursor rules under 500.
- **Using an enterprise assistant**: partly. Keep agent instructions short.
- **Using a workflow tool**: partly. Keep the agent prompt short.

## The setting in each harness
- [Claude Code](https://usefewertokens.com/harnesses/claude-code/): Keep CLAUDE.md under 200 lines; move detail into skills ([source](https://code.claude.com/docs/en/memory), read 30 Nov 2026)
- [Cursor](https://usefewertokens.com/harnesses/cursor/): Keep each rule under 500 lines ([source](https://cursor.com/docs/rules), read 30 Nov 2026)
- [Codex](https://usefewertokens.com/harnesses/codex/): project_doc_max_bytes ([source](https://learn.chatgpt.com/docs/config-file/config-reference), read 30 Nov 2026)

## Read more
- [How Claude Code loads CLAUDE.md](https://code.claude.com/docs/en/memory)
- [Rules in Cursor](https://cursor.com/docs/rules)
