Claude-context-lint tool audits token overhead in Claude Code projects

✍️ OpenClawRadar📅 Published: April 14, 2026🔗 Source
Claude-context-lint tool audits token overhead in Claude Code projects
Ad

What it does

claude-context-lint analyzes Claude Code projects to reveal hidden context token consumption that occurs before any user input. Every Claude Code conversation starts with overhead from CLAUDE.md files, skill descriptions, MCP tool schemas, and the base system prompt, all of which consume context tokens immediately.

Key features and findings

The tool scans your CLAUDE.md files, skills, MCP configurations, and system prompt. It shows per-turn token cost versus on-invocation cost, accounting for the fact that skills don't load fully every turn. It detects near-duplicate skills that waste tokens and flags MCP servers that could use ToolSearch to defer tool loading.

According to the developer's test, 18% of a 200K context window was consumed before the first turn. The biggest contributor was MCP servers loading all tool schemas upfront instead of deferring them.

Example output

Claude Code Context Audit
─────────────────────────────
CLAUDE.md 1,240 tokens
Skills (32 loaded) 4,800 tokens MEDIUM
⚠ 3 near-duplicate skills detected
MCP Servers (3) 14,100 tokens CRITICAL
postgres 6,600 tokens (22 tools) [always loaded]
System Prompt 8,500 tokens (base overhead)
─────────────────────────────
TOTAL OVERHEAD: 28,640 tokens
Used Before Input: 14.3%
Ad

Specific recommendations

The tool generates concrete recommendations with token savings estimates. In the example output, it suggests:

  • Enable ToolSearch for "postgres" MCP → −6,270 tokens
  • Shorten 12 verbose skill descriptions → −1,840 tokens
  • Potential savings: 8,530 tokens (29.8% reduction)

Installation and usage

Run with zero installation using: npx claude-context-lint

Run it in any project with a .claude/ directory. The scan takes about 2 seconds.

Technical details

The tool is available on npm at https://www.npmjs.com/package/claude-context-lint and on GitHub at https://github.com/skibidiskib/claude-context-lint. It was built entirely by Claude Code and is MIT licensed.

📖 Read the full source: r/ClaudeAI

Ad

👀 See Also

Real Cost of AI Coding Tools: 42 Hours of Overhead per 60 Days — A Solo Dev's Detailed Breakdown
Tools

Real Cost of AI Coding Tools: 42 Hours of Overhead per 60 Days — A Solo Dev's Detailed Breakdown

A solo dev tracked every dollar and minute spent on AI coding tools for 60 days. Subscriptions ($200/mo) were the smallest cost; 42 hours of overhead from bad output and tool-switching were the real tax. Net productivity gain was 1.7-2x, not 10x. Surprise: CodeRabbit, a $15/mo review tool, had the highest ROI.

OpenClawRadar
Qure: Desktop App for Generating E2E Tests from Recorded Browser Flows
Tools

Qure: Desktop App for Generating E2E Tests from Recorded Browser Flows

Qure is a desktop application from JetBrains (currently in closed beta) that generates end-to-end web test code from recordings made in its built-in browser. Instead of describing test flows in text for AI agents, developers record their manual QA scenarios by interacting with their product, and the AI produces working test code that matches their existing codebase.

OpenClawRadar
Developer shares hybrid AI coding workflow: Claude for planning, local models for execution
Tools

Developer shares hybrid AI coding workflow: Claude for planning, local models for execution

A developer built a pipeline using Claude 3.5 Sonnet for task planning and local Qwen2.5-Coder models via Ollama for code generation, achieving 85% token reduction compared to using Claude alone.

OpenClawRadar
Keyoku Plugin Replaces OpenClaw's Static Heartbeat with Memory-Driven Autonomy
Tools

Keyoku Plugin Replaces OpenClaw's Static Heartbeat with Memory-Driven Autonomy

Keyoku is a free OpenClaw plugin that changes the agent's heartbeat from reading a static HEARTBEAT.md file to scanning the agent's actual memory store for stalled work, dropped commitments, conflicting information, and quiet relationships. It uses a local Go engine with SQLite + HNSW and offers three autonomy levels: observe, suggest, and act.

OpenClawRadar