GitHub Trending · Agent Tooling · Updated
mksglu/context-mode
Context window optimization for AI coding agents: sandbox tool output, persist memory, route across platforms
- Stars
- ★ 26.3k
- Language
- TypeScript
- Chart appearances
- 4
- On-chart tracking
- 1 days tracked
What it does
Context Mode is a context-optimization layer for AI coding agents that sandboxes tool output, claiming roughly a 98% reduction in context usage. It also persists session memory and enforces routing across 17 platforms via MCP and hooks, so agents keep state without blowing the window.
What's inside
The repo is TypeScript-based, centered on an MCP server plus hook integrations, with an npm package, marketplace entry, stats script, and Discord community links.
Tech stack
Primarily TypeScript, built on the MCP protocol and platform hook systems, distributed via npm under the ELv2 license.
Use cases
- Developers who lean on Claude Code, Cursor, and similar agents and keep hitting context limits
- Teams needing unified session memory and routing across multiple agent platforms
- Engineering teams trying to cut tool-output token costs and API bills
- Toolchain integrators and plugin authors building on the MCP ecosystem
Why it's trending
With 24,069 stars and 4,034 added this month, it ranks 14th on GitHub Trending's TypeScript monthly list and hit #1 on Hacker News with 570+ points — context cost is the sharpest pain in agent development right now.
Current chart placements
| Period | Language filter | Rank | Stars gained |
|---|---|---|---|
| Daily | All languages | #5 | +178 |
| Daily | TypeScript | #2 | +178 |
| Monthly | All languages | #16 | +4.3k |
| Monthly | TypeScript | #4 | +4.3k |
Editorial summaries are based on the public repository and the dated GitHub Trending snapshot. Verify implementation details in the upstream repository.