# Context Mode

> Local plugin that keeps coding agents' tool output out of their context window, with sandboxed runs and SQLite search

Source: https://talira.ai/catalog/context-mode-x55y4rhq
Every listing: https://talira.ai/catalog.md

- Kind: Source available
- Types: Plugin, MCP server, Command-line tool
- Categories: [developer tools / ai coding / token reduction](https://talira.ai/categories/developer-tools/ai-coding/token-reduction), [developer tools / ai coding / context](https://talira.ai/categories/developer-tools/ai-coding/context)
- Licence: Elastic-2.0 (source-available)[^2]
- Pricing: Free tier, from $500/month[^3]
- Pricing notes: The plugin is free. Context Mode Gateway, the hosted service: Free $0 for one person (10,000 requests a month); Standard $500 a month for a team (10,000,000 requests a month in one pool; optional budget of $50 to $5,000 a month with extra requests at $0.75 per 1,000). Your own Anthropic or OpenAI account pays the model, with no fee on tokens. Prices exclude tax.
- Free tier: yes[^3]
- Cloud hosted: yes[^3]
- MCP server: yes[^1]
- Supports: [MCP](https://talira.ai/standards/mcp.md)[^1]
- Made by: [Mert Köseoğlu](https://talira.ai/orgs/mert-koseoglu.md)

Context Mode is a local plugin for 11 coding agents, among them [Claude Code](https://talira.ai/catalog/claude-code-jqv5000a.md), [Codex](https://talira.ai/catalog/codex-8m7d8cdk.md), Gemini CLI, Pi and [OpenCode](https://talira.ai/catalog/opencode-fn6hh4gp.md). 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.

## Links

- Website: https://contextmode.ai/
- GitHub: https://github.com/mksglu/context-mode

## 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

You install it, Elastic-2.0 (source-available). Price: free.[^3]

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

Where to get it: https://github.com/mksglu/context-mode/blob/main/README.md

### Context Mode Gateway

Hosted by Mert Köseoğlu. Price: Free $0; Standard $500 a month.[^3]

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

Pricing: https://contextmode.ai/pricing

## Capabilities

- Has an MCP server: plan not known

## Trust

Overall: 0.78 out of 1.
Signals: maintenance 1.00, adoption 0.91, momentum 1.00, community 0.82, backing 0.30, extensibility 0.20.

- last commit yesterday
- 2621 commits in the last 90 days
- latest release v2.2.4 4 days ago
- 34.6k GitHub stars
- fast-growing: 34.6k stars in 9 months
- 109 contributors
- accepts sponsorship (Github)
- made by Mert Köseoğlu
- has an MCP server for agents

## Alternatives

- [Caveman](https://talira.ai/catalog/caveman-06nzcpek.md): Skill and local proxy that make coding agents answer shorter and read smaller tool output
- [RTK (Rust Token Killer)](https://talira.ai/catalog/rtk-rust-token-killer-w1btkf3e.md): Cuts the command output AI coding agents read
- [Headroom](https://talira.ai/catalog/headroom-v5pt7f1n.md): Compresses tool outputs, logs, files and RAG chunks before they reach the LLM

## Sources

[^1]: https://github.com/mksglu/context-mode/blob/main/README.md (checked 29 Nov 2026)
[^2]: https://github.com/mksglu/context-mode/blob/main/LICENSE (checked 29 Nov 2026)
[^3]: https://contextmode.ai/pricing (checked 29 Nov 2026)
