plugins marketplace
← All plugins

context-mode

v1.0.169

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.

CodexClaude Code8 skills1 MCP serverstdio

by Mert KoseoğluElastic-2.019.7kupdated 1 hour ago

Source

git clone https://github.com/mksglu/context-mode

Clone the source, then follow the repository's marketplace instructions for your runtime. The repository root is the plugin root.

Layout

context-mode/
├── .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

Skills8

context-modeskills/context-mode/SKILL.md

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.

ctx-doctorskills/ctx-doctor/SKILL.md

Run context-mode diagnostics. Checks runtimes, hooks, FTS5, plugin registration, npm and marketplace versions. Trigger: /context-mode:ctx-doctor

ctx-indexskills/ctx-index/SKILL.md

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

ctx-insightskills/ctx-insight/SKILL.md

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

ctx-purgeskills/ctx-purge/SKILL.md

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

ctx-searchskills/ctx-search/SKILL.md

Search context-mode's persistent FTS5 knowledge base for previously indexed local project content, documentation, or session memory. Trigger: /context-mode:ctx-search

ctx-statsskills/ctx-stats/SKILL.md

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

ctx-upgradeskills/ctx-upgrade/SKILL.md

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

context-modestdio
command
node
args
./start.mjs
cwd
.
env.CONTEXT_MODE_PLATFORM
codex

Manifests2

.codex-plugin/plugin.json
{
  "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"
  }
}
.claude-plugin/plugin.json
{
  "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/"
}