omitClaudeMd: true cuts Claude Code subagent context by 88% in developer test
daniel_mac8 · x · 2026-09-18
Developer Pavel Rabtsevich found a simple way to stretch Claude Code limits: Claude Code injects your project CLAUDE.md into every subagent, even when unneeded.
- Testing 10 identical subagents, adding omitClaudeMd: true to the YAML frontmatter dropped input/context by 88%
- Daniel Mac8 shared a ready-to-use prompt that scans .claude/agents/subagents and adds the flag only to agents that don't rely on 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