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

Six open-source tools that address OpenClaw's security, cost, and complexity issues
Tools

Six open-source tools that address OpenClaw's security, cost, and complexity issues

A developer tested six community tools to solve OpenClaw's security gaps flagged by Cisco, spiraling costs, and complex setup. ClawSec provides security scanning and integrity verification, Antfarm enables deterministic multi-agent workflows, and LanceDB Pro improves memory retrieval with hybrid vector search.

OpenClawRadar
MCP Server Directory Lists 1000+ Servers Across 20 Categories
Tools

MCP Server Directory Lists 1000+ Servers Across 20 Categories

A curated directory provides install commands and config snippets for over 1000 MCP servers across categories including databases, developer tools, browser automation, AI/ML, and cloud/devops. The directory is free to browse and submit to.

OpenClawRadar
Open-Source Tool Measures AI Coding Agent Autonomy with Local Data Analysis
Tools

Open-Source Tool Measures AI Coding Agent Autonomy with Local Data Analysis

Codelens-AI is an open-source CLI tool that analyzes Claude Code session files alongside git history to calculate autonomy metrics like Autopilot Ratio and Self-Heal Score. The tool runs locally with zero setup using npx claude-roi and keeps all data on your machine.

OpenClawRadar
Open-Sourced Claude Code Skills: A /do Pipeline That Cut Follow-Ups by 80%
Tools

Open-Sourced Claude Code Skills: A /do Pipeline That Cut Follow-Ups by 80%

A developer open-sourced 15 Claude Code skills built over 100+ freelance projects. The /do command runs a 5-step pipeline (/todo → /dev → /verify-dev → /build → /test → push) with auto-fix loops, resulting in 80% fewer follow-ups and 60-65% better code quality across 2000+ commits.

OpenClawRadar