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)→
More from coding & agent
- GitHub Actions has a lesser-known ubuntu-slim runner: 1 CPU, 5GB RAM, cheaper CI — DanielLockyer · 2026-11-02
- Before automating a workflow with AI, ask if anyone understands it end to end — djgoel123 · 2026-11-02
- One stale date silently broke a WhatsApp reply agent: 19 messages unanswered — petrusenko_max · 2026-11-02
- The 10X engineer is now just a SKILLS.md: 6 workflow rules for AI coding agents — mdancho84 · 2026-11-02
- Auditing my MCP credential broker: the worst hole was the config file — Relevant_Mousse_9117 · 2026-11-02
- AWS's open-source Strands Harness claims 45% cheaper than Claude Code, reigniting harness debate — blaizedsouza · 2026-11-02