aiagent.club
中文
GitHub repo

mksglu/context-mode

JavaScript Tracked since 2026-02-23 Updated 2026-11-09 View source ↗

#91 of 814 by Stars among GitHub repos

33.7k Stars

Free, local plugin that keeps tool output out of your coding agent's context window. Sandbox and SQLite FTS5 search, 99% fewer bytes in context. Works with Claude Code, Codex, Pi, OpenCode, Gemini CLI, Copilot CLI and 4 more agents. Zero telemetry.

About

Every MCP tool call dumps raw data into your context window. A Playwright snapshot costs 56 KB. Twenty GitHub issues cost 59 KB. One access log — 45 KB. After 30 minutes, 40% of your context is gone. And when the agent compacts the conversation to free space, it forgets which files it was editing, what tasks are in progress, and what you last asked for. On top of that, the agent wastes output tokens on filler, pleasantries, and verbose explanations — burning context from both sides.

Context Mode is an MCP server that solves all four sides of this problem:

Platforms are grouped by install complexity. Hook-capable platforms get automatic routing enforcement. Non-hook platforms need a…

Excerpted from github.com/mksglu/context-mode

Latest metrics

Stars 33.7k 2026-11-09
Forks 2.3k 2026-11-09
Commits 4.5k 2026-11-09
Releases 238 2026-11-09
Watchers 107 2026-11-09
Open issues 12 2026-11-09
Open PRs 0 2026-11-09