GitHub repo

mksglu/context-mode

TypeScript Tracked since 2026-02-23 Updated 2026-07-16 View source ↗

#136 of 783 by Stars among GitHub repos

19.0k Stars

Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memory, and enforces routing across 17 platforms via MCP + hooks.

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 19.0k 2026-07-16
Forks 1.3k 2026-07-16
Commits 2.1k 2026-07-16
Releases 195 2026-07-16
Watchers 87 2026-07-16
Open issues 39 2026-07-16
Open PRs 39 2026-07-16