Local plugin that keeps coding agents' tool output out of their context window, with sandboxed runs and SQLite search
source availableElastic-2.0freeMCP
Context Mode is a local plugin for 11 coding agents, among them Claude Code, Codex, Gemini CLI, Pi and OpenCode. It runs the agent's commands, file reads and fetches in a local sandbox, keeps the full output in a per-project SQLite FTS5 index under ~/.context-mode, and returns only the part the agent asks for; in Code Mode the agent writes a short script and only what it prints reaches the context. Each agent's install adds its MCP server, hooks and skills. The plugin is free, source-available and has no telemetry; Context Mode Gateway is a separate hosted service with its own subscription that works on every request across sessions and agents.
Problems it solves
- my coding agent's context window fills up with long command output and file reads
- keep big tool results out of Claude Code's context so a session lasts longer
- search earlier tool output from my agent session without pasting it back into the chat
Limitations
- The plugin needs Node 24.15.0 or later, and on Windows also Git for Windows, since its shell tools run in Git Bash.1
- Licensed under the Elastic License 2.0, which isn't open source: it forbids offering the software to others as a hosted or managed service.2
Ways to run it
Context Mode plugin
free3
Only in this edition
- local sandbox runs and Code Mode
- per-project SQLite FTS5 index and search
- MCP server, hooks and skills for 11 coding agents
Not included
- memory and search across sessions and agents
You arrange
- Node 24.15.0 or later
Context Mode Gateway
Free $0; Standard $500 a month3
Only in this edition
- context saving on every request
- Recall, Memory and Search across sessions and agents
- team Protect rules and cost reports
You arrange
- your own Anthropic or OpenAI account
Capabilities
| Has an MCP server | plan not known |
|---|
Alternatives
The same job
These do what Context Mode does.
- Caveman Skill and local proxy that make coding agents answer shorter and read smaller tool output
- RTK (Rust Token Killer) Cuts the command output AI coding agents read
- Headroom Compresses tool outputs, logs, files and RAG chunks before they reach the LLM
