aiagent.club
中文
GitHub repo

mksglu/context-mode

TypeScript Tracked since 2026-02-23 Updated 2026-09-12 View source ↗

#134 of 803 by Stars among GitHub repos

22.2k 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 22.2k 2026-09-12
Forks 1.6k 2026-09-12
Commits 2.2k 2026-09-12
Releases 195 2026-09-12
Watchers 94 2026-09-12
Open issues 121 2026-09-12
Open PRs 113 2026-09-12