# context-mode

> Context window optimization for AI coding agents. Sandboxes tool output, 98% reduction. 12 platforms

- **URL**: https://www.freshcrate.ai/projects/context-mode
- **Author**: mksglu
- **Category**: MCP Servers
- **Latest version**: `v1.0.162` (2026-06-02)
- **License**: NOASSERTION
- **Source**: https://github.com/mksglu/context-mode
- **Homepage**: https://context-mode.com
- **Language**: TypeScript
- **GitHub**: 8,616 stars, 597 forks
- **Registry**: github
- **Tags**: `antigravity`, `claude`, `claude-code`, `claude-code-hooks`, `claude-code-plugins`, `claude-code-skill`, `codex`, `codex-cli`, `typescript`

## Description

Context window optimization for AI coding agents. Sandboxes tool output, 98% reduction. 12 platforms

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `v1.0.162` | 2026-06-02 | High | ## 🚀 v1.0.162 — multilingual prompt analytics, accurate cost, 13 new extractors  **13 commits · 8 PRD issues · 2 verify-gap fixes · 13 new test files · 80+ tracers** since [v1.0.161](https://github.com/mksglu/context-mode/releases/tag/v1.0.161). Cross-repo PRD-driven sprint — wire-format expansion, privacy-first multilingual analytics, and a pricing accuracy catch-up that had been stale since v1.0.103. 💜  ---  ## ✨ Highlights  - **🌍 §11 multilingual prompt features** — Layer 1 expanded from 5 |
| `v1.0.160` | 2026-06-01 | High | ## v1.0.160 — patch  Maintenance release. No behavior change for default installs.  ### Changed - **Hook event routing refinement** — broader internal coverage so analytics opt-in users see a wider event surface across compaction/resume/prompt boundaries. No new required configuration.  ### Compatibility - No breaking changes - No new required configuration - Existing installs upgrade cleanly  ### Upgrade  \`\`\`bash /context-mode:ctx-upgrade # then restart your session \`\`\` |
| `v1.0.151` | 2026-05-24 | High | ## Two changes from the v1.0.150 EM ops audit  ### fix(vscode-copilot) — VSCODE_CWD in getProjectDir cascade  VS Code exports \`VSCODE_CWD\` into every child process bootstrap; the spawned MCP child inherits it. The adapter's \`getProjectDir()\` was checking only \`CLAUDE_PROJECT_DIR + process.cwd()\`, so every direct VS Code Copilot session that wasn't also under Claude Code CLI silently lost its workspace folder.  **Fix**: cascade now reads \`CLAUDE_PROJECT_DIR → VSCODE_CWD → process.cwd |
| `v1.0.146` | 2026-05-20 | High | # v1.0.146  Single follow-up to v1.0.145's #645 fix — extends the same fix template to the third adapter that was missing it.  ## Fix  **OpenClaw SessionDB now routes through `resolveSessionDbPath` (#645 follow-up).** v1.0.145 fixed Pi + OMP adapters that wrote SessionDB to a hardcoded path while the MCP server read from a different canonical `<hash>.db`. OpenClaw had the same bug class — `src/adapters/openclaw/plugin.ts:199-205` used raw `sha256(projectDir).slice(0,16)` directly instead of the |
| `v1.0.135` | 2026-05-15 | High | # v1.0.135  Bundles up nine fixes that landed on `next` after v1.0.134, including a critical Pi adapter regression and a Linux SIGSEGV escape hatch.  ## Critical fixes  **Pi adapter `ctx_*` tools no longer go stale after MCP idle shutdown (#583).** v1.0.132's idle self-shutdown left the Pi MCP bridge holding a dead child handle — every `ctx_*` call after the timeout fired `Error: MCP server has exited`. The bridge now respawns the MCP child transparently on first call after exit. Closes #583.  * |
| `v1.0.120` | 2026-05-11 | High | # v1.0.120 — scoped ctx_purge  Hotfix landing the deferred Issue #520 (scoped `ctx_purge` with `sessionId` / `scope` parameters), reported by @murataslan1. Fully additive — existing `{confirm: true}` callers still work but emit a one-release deprecation warning.  ## What changed  ### #520 — scoped `ctx_purge`  The previous schema was `{ confirm: boolean }`, which always wiped the entire project (FTS5 store + sessionsDir + stats file). v1.0.120 adds two optional parameters:  - **`sessionId?: stri |
| `v1.0.111` | 2026-05-04 | High | ## v1.0.111 — `routePreToolUse` refactor (#423) + CI test alignment  A focused follow-up on top of v1.0.110. Two changes, both small:  ### Changes  **`refactor(opencode)` — use platform parameter (#423) — by [@mikij](https://github.com/mikij)**  `routePreToolUse` was being called with `getPlatform()` even though `platform` was already in scope at `opencode-plugin.ts:199`. The PR replaces the redundant call with the existing variable, keeping platform handling consistent throughout the plugin's h |
| `v1.0.107` | 2026-05-03 | High | # v1.0.107  The biggest single release since v1.0.100 — comprehensive 14-adapter parity audit with line-by-line clone verification, 22 verified P0 gaps closed, and 9 fabricated claims caught and retracted before they could ship.  ## Why this release exists  Mickey @mikij retested v1.0.106 and surfaced the next gap: **"routing block is not injected and everything rely on AGENTS.md which btw is sadly unreliable. I find instruction in AGENTS.md file often omitted by models. My focus was to inject s |
| `v1.0.103` | 2026-04-28 | High | fix(insight): move `showAllInsights` useState before early return — fixes React error #310 on dashboard load |
| `v1.0.94` | 2026-04-25 | High | ## Changes since v1.0.93  ### Bug Fixes - **fix(windows):** Resolve `npm ENOENT/EINVAL` on Windows Node v20+ — all npm callsites now use `npm.cmd` + `shell: true` on Windows. Closes #344. - **fix(insight):** Kill stale dashboard server on source update, clean cache on upgrade. - **fix(insight):** Clean up `__unknown__` display and remove Match Quality metric.  ### Features - **feat(insight):** On-demand build — dashboard installs deps and builds automatically on first `ctx_insight` run. No more |

## Citation

- HTML: https://www.freshcrate.ai/projects/context-mode
- Markdown: https://www.freshcrate.ai/projects/context-mode.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/context-mode/deps

_Generated by freshcrate.ai. Indexes github releases for AI-agent ecosystem packages._
