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

Why Your Claude Code UI Output Drifts and How a Structured Spec Fixes It
A developer explains that inconsistent UI output from Claude Code isn't a prompt problem — it's a format problem. Providing exact hex codes, font weights, spacing, screen states, and transitions eliminates drift. They also open-sourced an MCP server that converts screen recordings into structured specs.

nah: A context-aware permission guard for Claude Code
nah is a PreToolUse hook that intercepts every tool call in Claude Code, classifying commands by action type like filesystem_read or git_history_rewrite and applying policies based on context. It runs a deterministic classifier in milliseconds with optional LLM escalation for ambiguous cases.

Super Claude browser extension makes Claude.ai UI fully customizable
A developer built a browser extension that lets users customize every aspect of Claude.ai's interface — colors, fonts, layout, plus usage tracking and token counting. The extension works on Chrome and Firefox and was developed using Claude itself.

Comparing Local vs. Cloud AI Agents: OpenClaw and Twin.so
OpenClaw is an open-source local AI agent that runs on your machine with full data control, while Twin.so is a cloud-based platform with 200,000+ community-built agents for 24/7 automation.