Claude Code documentation includes excessive React components inflating token counts

✍️ OpenClawRadar📅 Published: April 6, 2026🔗 Source
Claude Code documentation includes excessive React components inflating token counts
Ad

A developer building a PDF and Dash docset tool for Claude Code documentation discovered significant token inefficiency in the official documentation files.

Key Findings

The analysis revealed that the .md files linked from llms.txt are actually MDX files containing substantial React component code alongside documentation content.

Specific examples from the source:

  • The context-window.md page contains 18,501 tokens total
  • Only 551 tokens of that total represent actual documentation content
  • The remaining tokens consist of animation engines, a fullscreen toggle handler, and other React components
  • The quickstart.md page includes A/B testing infrastructure with GDPR consent detection

The developer verified these token counts against Anthropic's own API, confirming the measurements.

This discovery was made while building a documentation tool that processes these files, highlighting how embedded React components in MDX files can dramatically increase token counts without adding documentation value.

📖 Read the full source: r/ClaudeAI

Ad

👀 See Also