Claude Skill
mksglu/context-mode
Context Mode optimizes context windows for AI coding agents by sandboxing tool output (98% reduction), persisting session memory, and routing across 17 platforms via MCP + hooks.
Overview
Repository
Install this Skill
claude mcp add context-mode -- npx -y context-modeRegistry
claude mcp add context-mode -- npx -y context-modenpm install -g context-modegit clone https://github.com/mksglu/context-mode.git
Summary
Context Mode is a context virtualization layer for AI coding agents that optimizes context windows by sandboxing tool output (up to 98% reduction), persisting session memory, and enforcing routing across 17 platforms via MCP and hooks.
MCP是工具访问协议,我们是上下文虚拟化层。
Key features
- Sandboxes tool output for up to 98% context reduction
- Persists session memory across interactions
- Enforces routing across 17 platforms via MCP + hooks
- Supports Claude Code, Copilot, Cursor, Zed, and more
- Lightweight TypeScript implementation
Use cases
- Optimize context windows for Claude Code agents
- Reduce token usage in AI coding workflows
- Maintain session state across multiple tool calls
- Route AI agent requests across different platforms
README excerpt
# Context Mode **The other half of the context problem.** [](https://www.npmjs.com/package/context-mode) [](https://www.npmjs.com/package/context-mode) [](https://github.com/mksglu/context-mode) [](https://github.com/mksglu/context-mode/stargazers) [](https://github.com/mksglu/context-mode/network/members) [](https://github.com/mksglu/context-mode/commits) [](LICENSE) [](https://discord.gg/DCN9jUgN5v) [](https://news.ycombinator.com/item?id=47193064) <p align="center"> <sub>Used across teams at</sub> <br><br> <a href="#"><img src="https://img.shields.io/badge/Microsoft-141414?style=flat" alt="Microsoft" /></a> <a href="#"><img src="https://img.shields.io/badge/