Optimize your agent

Load fewer tools

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.

Checked on the vendor's pages 30 Nov 2026

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

Read on each vendor's own page, linked next to the setting.

HarnessSetting
Claude Code

Keep CLAUDE.md under 200 lines; move detail into skills

code.claude.com, read 30 Nov 2026
Cursor

Keep each rule under 500 lines

cursor.com, read 30 Nov 2026
Codex