TL;DR

Context Mode is an open-source MCP-based context management system. It doesn't compress tokens after they bloat your context — it prevents bloat before it starts. Tested: 315KB Playwright snapshots reduced to 5.4KB (98% reduction).

The Problem

Every AI agent developer knows this: your agent runs a browser tool, dumps a 300KB DOM snapshot into context, and suddenly your $200/month token budget evaporates. Compression tools like Headroom help after the fact. Context Mode stops it at the source.

Four Pillars