context-mode (github.com/mksglu/context-mode) is a context window optimization plugin for AI coding agents, claiming to reduce context consumption by 98% through sandboxing tool outputs. It has 11,000 stars, 760 forks, and 1,046 commits.
The Problem
When using Claude Code, Cursor, and other AI coding tools, a common issue is that agent tool command outputs (long lists, full file contents, verbose error stacks) fill up the context window, causing agents to “forget” critical information mid-task.
context-mode’s solution is sandboxing tool outputs: storing outputs in external storage and letting agents retrieve on demand — like giving the agent an “external notebook.”
Core Features
- 98% Context Reduction: Through sandboxing non-critical outputs
- 14 Platform Support: Compatible with Claude Code, Codex, Cursor, OpenClaw, and others
- Persistent Memory & Timeline Search: Recent PR (#367) adds unified persistent memory
- Active Maintenance: Version 1.0.103, updated yesterday
Quick Start
git clone https://github.com/mksglu/context-mode.git
cp -r context-mode/.claude-plugin ~/.claude/plugins/