Discover and explore top open-source AI tools and projects—updated daily.
mksgluAI context optimization for large tool outputs
Top 7.3% on SourcePulse
This project addresses the significant challenge of large tool outputs consuming valuable context windows in AI agents like Claude Code. It provides an MCP server that compresses these outputs, reducing context usage by up to 99%, thereby extending the effective session length and improving AI agent efficiency and capability.
How It Works
Inspired by Cloudflare's Code Mode, Context Mode acts as an intermediary MCP server. It processes tool outputs within isolated sandboxes, capturing only essential summaries or relevant snippets instead of raw data. This approach drastically reduces the data sent to the AI model, saving significant context window space and enabling more complex operations within a single session. The system supports eleven language runtimes and utilizes advanced techniques like BM25 ranking and multi-layer fuzzy search for efficient knowledge retrieval.
Quick Start & Requirements
/plugin marketplace add mksglu/claude-context-mode
/plugin install context-mode@claude-context-mode
Followed by restarting Claude Code.claude mcp add context-mode -- npx -y context-mode
claude --plugin-dir ./path/to/context-mode
Highlighted Details
/context-mode:stats, /context-mode:doctor, /context-mode:upgrade) for session monitoring and maintenance.Maintenance & Community
The project welcomes contributions, with details provided in CONTRIBUTING.md. No specific community links (Discord/Slack) or notable sponsors/partnerships are mentioned in the provided text.
Licensing & Compatibility
Limitations & Caveats
Primarily designed for use with Claude Code and MCP-compatible environments. The "MCP-only install" option omits hooks and slash commands, limiting functionality compared to the full plugin installation.
5 hours ago
Inactive
dollspace-gay