Claude Code documentation includes excessive React components inflating token counts

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
👀 See Also

n8n-mcp-lite: MCP server reduces token usage by 80% for Claude with n8n workflows
A new open-source Model Context Protocol server called n8n-mcp-lite helps Claude reason about n8n automation workflows while reducing token usage by approximately 80%. The tool addresses the token-heavy nature of visual node automations by providing targeted workflow scanning and surgical updates.

Pokemon Showdown AI Agents Built with Free LLM APIs and Tool-Calling
A system that uses Llama 3, Qwen, Gemma via free API tiers to autonomously play Pokemon Showdown battles with structured tool calls, supporting human vs AI and AI vs AI modes.

OpenClawDreams: A Dream Simulator Extension for OpenClaw Agents
OpenClawDreams is an extension that adds a background reflection process and nightly dream cycle to OpenClaw agents. It captures encrypted conversation summaries to a local SQLite database, processes them during background cycles, and generates consolidated insights that get pushed into the agent's persistent memory.
Terry Tao Ports 24 Java Applets to JavaScript with LLM Agent — Finds Bugs in Original Code
Terence Tao used an LLM coding agent to port his 1999 Java applets to JavaScript in hours. The agent found two bugs in the original code and introduced only one minor drag-handling issue.