🧠Context Mode
mksglu/context-mode · homepage ↗
Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memory, and enforces routing across 17 platforms via MCP + hooks.
⭐ Very popular: 20k stars, gaining about 188 a week
View on GitHub ↗repo profile
momentum
durability
bus factor = how many people it takes to cover more than half the commits (6 months). 1 is a solo project; higher means the work is spread across a team. top-author share is the single busiest author's slice of those commits.
since we covered it
why it's a big deal
- Treats context as a system resource that needs virtualization, not just a prompt to manage.
- Extends typical agent sessions from around 30 minutes to multiple hours by cutting context use up to 98%.
- Works across Claude Code, Gemini CLI, VS Code Copilot, OpenCode, and Codex CLI as a portable layer.
under the hood
- Sandbox tools run code in isolated subprocesses with only stdout entering context.
- SQLite FTS5 with BM25 ranking and three-layer fuzzy search powers on-demand retrieval.
- Hooks intercept Bash, Read, and WebFetch calls before execution to enforce sandbox routing.
our take from PR#33, 2026-05-06
star history
- PR#33 13k 2026-05-06
- now 20k + 7k since first covered
curve is sampled from GitHub's star history, plus our own daily readings since we covered it; the dashed stretch is before we first covered it, the solid line since. figures at coverage are the numbers we printed then (approx.), current count is live.
understory
Quietly building: more output than attention, for now.
- output, commits & releases
- clout, star velocity
output = commits & releases; clout = star velocity, both 0 to 100 monthly indices; the gap where output runs above clout is the understory. The understory →
covered in
-
Virtualization layer for AI agent context
similar projects
compare these →- 🧩 cc switch
Rust · 6.4× the stars
A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io
127k ACTIVE - 📦 Agents
Python · 2× the stars
Multi-harness agentic plugin marketplace for Claude Code, Codex CLI, Cursor, OpenCode, GitHub Copilot, and Gemini CLI
39k ACTIVE - 🌊 Ruflo
3.4× the stars
🌊 The original agent meta-harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
68k ACTIVE
comments
Sign in with GitHub to add your blip on Context Mode.