Hasty Briefsbeta

Bilingual

Stop Burning Your Context Window – How We Cut MCP Output by 98% in Claude Code

7 hours ago
  • #AI Tools
  • #Open Source
  • #Context Management
  • MCP tools dump raw data into Claude Code's context window, consuming significant space (e.g., Playwright snapshot: 56 KB, GitHub issues: 59 KB).
  • Context Mode reduces tool output size by 98% (e.g., 315 KB → 5.4 KB), extending session time from ~30 minutes to ~3 hours.
  • Sandbox isolates tool executions, capturing only stdout, preventing raw data from entering the context.
  • Knowledge Base indexes content with SQLite FTS5, using BM25 ranking and Porter stemming for efficient searches.
  • Validated across 11 scenarios with drastic reductions (e.g., access log: 45 KB → 155 B, Git log: 11.6 KB → 107 B).
  • Open-source MIT license, available on GitHub, built to address the lack of solutions for compressing tool outputs.