context-mode
v1.0.169MCP server that saves 98% of your context window with session continuity. Sandboxed code execution in 11 languages, FTS5 knowledge base with BM25 ranking, and automatic state restore across compactions.
By Mert KoseoğluLicense: Elastic-2.022.9k GitHub starsUpdated last week
Directory evidence
- Runtimes
- Codex and Claude Code
- Parsed components
- 9 skill or MCP entries
- Source updated
- Sep 14, 2026
- Manifest status
- Canonical path parsed
The directory validates manifest shape and source location. It does not execute the plugin or provide a security endorsement. Review the indexing methodology →
Install context-mode for Codex and Claude Code
codex plugin marketplace add IchenDEV/agent-plugin-mkt
codex plugin marketplace upgrade agent-plugin-marketplace
codex plugin add context-mode@agent-plugin-marketplacePaste and run these commands in a terminal with Codex. They add and refresh the PluginsMP catalog, then install this plugin.
The installer fetches third-party code from the source repository shown on this page. This directory validates manifest structure and source location, but does not perform a security audit; review the manifest, components, and source before installing.
Get the source manually
git clone https://github.com/mksglu/context-modeClone the source repository, then follow its setup instructions to add the plugin to a compatible client. The repository root is the plugin root.
Plugin files
├── .codex-plugin/plugin.json├── .claude-plugin/plugin.json├── skills/context-mode/SKILL.md├── skills/ctx-doctor/SKILL.md├── skills/ctx-index/SKILL.md├── skills/ctx-insight/SKILL.md├── skills/ctx-purge/SKILL.md├── skills/ctx-search/SKILL.md├── skills/ctx-stats/SKILL.md├── skills/ctx-upgrade/SKILL.md└── .mcp.json
Included Skills8
Use context-mode tools (ctx_execute, ctx_execute_file) instead of Bash/cat when processing large outputs. Triggers: "analyze logs", "summarize output", "process data", "parse JSON", "filter results", "extract errors", "check build output", "analyze dependencies", "process API response", "large file analysis", "page snapshot", "browser snapshot", "DOM structure", "inspect page", "accessibility tree", "Playwright snapshot", "run tests", "test output", "coverage report", "git log", "recent commits", "diff between branches", "list containers", "pod status", "disk usage", "fetch docs", "API reference", "index documentation", "call API", "check response", "query results", "find TODOs", "count lines", "codebase statistics", "security audit", "outdated packages", "dependency tree", "cloud resources", "CI/CD output". Also triggers on ANY MCP tool output that may exceed 20 lines. Subagent routing is handled automatically via PreToolUse hook.
Run context-mode diagnostics. Checks runtimes, hooks, FTS5, plugin registration, npm and marketplace versions. Trigger: /context-mode:ctx-doctor
Index a local file or directory into context-mode's persistent FTS5 knowledge base so future ctx_search calls can retrieve focused snippets without rereading raw files. Trigger: /context-mode:ctx-index
Open the context-mode Insight dashboard in your default browser. Insight is the hosted analytics layer for AI-assisted engineering teams — per-engineer productive rate, retry waste, blocker detection, role-narrowed views. Trigger: /context-mode:ctx-insight
Purge the context-mode knowledge base. Permanently deletes all indexed content and resets session stats. This is destructive and cannot be undone. Trigger: /context-mode:ctx-purge
Search context-mode's persistent FTS5 knowledge base for previously indexed local project content, documentation, or session memory. Trigger: /context-mode:ctx-search
Show how much context window context-mode saved this session. Displays token consumption, context savings ratio, and per-tool breakdown. Read-only — shows stats only, no reset capability. To wipe the knowledge base entirely, use ctx_purge instead. Trigger: /context-mode:ctx-stats
Update context-mode from GitHub and fix hooks/settings. Pulls latest, builds, installs, updates npm global, configures hooks. Trigger: /context-mode:ctx-upgrade
MCP servers1
- command
- node
- args
- ./start.mjs
- cwd
- .
- env.CONTEXT_MODE_PLATFORM
- codex
Plugin manifests2
{
"name": "context-mode",
"version": "1.0.169",
"description": "MCP server that saves 98% of your context window with session continuity. Sandboxed code execution in 11 languages, FTS5 knowledge base with BM25 ranking, and automatic state restore across compactions.",
"author": {
"name": "Mert Koseoğlu",
"url": "https://github.com/mksglu"
},
"homepage": "https://github.com/mksglu/context-mode#readme",
"repository": "https://github.com/mksglu/context-mode",
"license": "Elastic-2.0",
"keywords": [
"mcp",
"context-window",
"sandbox",
"code-execution",
"fts5",
"bm25",
"playwright",
"context7"
],
"mcpServers": "./.codex-plugin/mcp.json",
"hooks": "./.codex-plugin/hooks.json",
"skills": "./skills/",
"interface": {
"displayName": "context-mode",
"shortDescription": "98% context window savings via FTS5 + sandboxed execution",
"developerName": "Mert Koseoğlu",
"category": "Productivity"
}
}{
"name": "context-mode",
"version": "1.0.169",
"description": "MCP server that saves 98% of your context window with session continuity. Sandboxed code execution in 11 languages, FTS5 knowledge base with BM25 ranking, and automatic state restore across compactions.",
"author": {
"name": "Mert Koseoğlu",
"url": "https://github.com/mksglu"
},
"homepage": "https://github.com/mksglu/context-mode#readme",
"repository": "https://github.com/mksglu/context-mode",
"license": "Elastic-2.0",
"keywords": [
"mcp",
"context-window",
"sandbox",
"code-execution",
"fts5",
"bm25",
"playwright",
"context7"
],
"mcpServers": {
"context-mode": {
"command": "node",
"args": [
"${CLAUDE_PLUGIN_ROOT}/start.mjs"
]
}
},
"skills": "./skills/"
}For maintainers
If you maintain this plugin, link to this source-backed listing from your README so users can review its manifest and indexed components.
[context-mode on Agent Plugins Marketplace](https://pluginsmp.com/plugins/context-mode)