Claude Code tip: omitClaudeMd: true stops subagents from burning tokens on CLAUDE.md

daniel_mac8 · x · 2026-09-18

Picked as the top agent tip from 1,000 X posts: in Claude Code, subagents don't need your project's CLAUDE.md, yet it gets loaded and burns usage. Fix: check .claude/agents/ and add omitClaudeMd: true to the YAML frontmatter of any subagent that can work without project instructions; leave agents that rely on CLAUDE.md untouched. Prompt you can send Claude: 'Check my .claude/agents/subagents. For each agent that can work without my project instructions, add omitClaudeMd: true to its YAML frontmatter. Don't change agents that rely on CLAUDE.md or project rules.'

Related event: omitClaudeMd Trick Cuts Claude Code Subagent Context 88%(3 posts)→

Original post →

More from coding & agent

coding & agent channel →