# Context Mode

> Context Mode is an MCP server plus hooks for Claude Code, Cursor, Gemini CLI, Copilot, Codex, OpenCode and other agents. It runs tool output in a sandbox and returns only the result, and logs session events to local SQLite so the agent can find them after compaction. Needs Node.js 22.5+ (or Bun) and an AI coding agent. It is source-available under the Elastic License 2.0, not open source: you may not offer it as a hosted service. The README says there is no telemetry. It does not replace a paid product.

- Repository: https://github.com/mksglu/context-mode
- Official docs: https://github.com/mksglu/context-mode#readme
- Checked: 2026-10-18

## What it replaces
Nothing people pay for: a free tool, listed because people search for it.

## Facts, with sources

| Question | Status | Answer | Source | Checked |
|---|---|---|---|---|
| Runs on my machine? | Confirmed | Yes, runs next to your coding agent; data stays in local SQLite | https://github.com/mksglu/context-mode#privacy--architecture | 2026-10-18 |
| Code licence | No | Elastic License 2.0: source-available, not open source (no hosted or managed-service use) | https://github.com/mksglu/context-mode/blob/main/LICENSE | 2026-10-18 |
| Model weights licence | Confirmed | No separate model weights | https://github.com/mksglu/context-mode#readme | 2026-10-18 |
| Commercial use | Partial | Use, modify and redistribute allowed, including at work; offering it as a hosted service is not | https://github.com/mksglu/context-mode/blob/main/LICENSE | 2026-10-18 |
| Paid services needed? | No | Needs a supported AI coding agent, which needs a paid plan or API key | https://github.com/mksglu/context-mode#readme | 2026-10-18 |
| Hardware | Unknown | Not documented | none found | - |
| Operating systems | Confirmed | Windows, macOS, Linux (Linux needs Node.js 22.5 or newer) | https://github.com/mksglu/context-mode#readme | 2026-10-18 |
| Setup effort | Confirmed | Easy, plugin install in Claude Code; npm install plus a config copy for other agents | https://github.com/mksglu/context-mode#install | 2026-10-18 |

GitHub: 31370 stars, 2209 forks, last push 2026-10-21, archived: no.
---
Source: RepoQuarry (https://repoquarry.dev/projects/context-mode). Data licence: CC BY 4.0. Quotes are from project documentation and belong to their authors.
