Context Mode plugin for Grok Build
Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memory, and enforces routing across 17 platforms via MCP + hooks.
How to install Context Mode in Grok Build
grok plugin install mksglu/context-mode --trustReview before you trust it. --trust lets this plugin's hooks, MCP servers and scripts run code on your computer. It's a community repo that neither xAI nor GrokStacks has reviewed, so read its code first.
We install this repo directly: Grok Build 1.0.62 can't install it through its own marketplace file. Then start a new Grok session, or press r in /plugins, to load it.
Command format: Grok Build's plugin guide
Runs a local MCP server (with npx, uvx or similar), so that tool needs to be installed, for example Node.js for npx.
What we checked: on Oct 18, 2026 it installed with grok 1.0.62 and Grok found 8 skills. That's an install check only: we haven't run it in a live Grok session.
What it contains
Skills (8)
context-mode— 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",ctx-doctor— Run context-mode diagnostics. Checks runtimes, hooks, FTS5, plugin registration, npm and marketplace versions. Trigger: /context-mode:ctx-doctorctx-index— 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-indexctx-insight— 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-ctx-purge— 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-purgectx-search— Search context-mode's persistent FTS5 knowledge base for previously indexed local project content, documentation, or session memory. Trigger: /context-mode:ctx-searchctx-stats— 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 ictx-upgrade— Update context-mode from GitHub and fix hooks/settings. Pulls latest, builds, installs, updates npm global, configures hooks. Trigger: /context-mode:ctx-upgrade
MCP servers (1)
context-mode— stdio server
Hooks (1)
hooks— PostToolUse, PreCompact, PreToolUse, SessionStart, Stop, UserPromptSubmit
About this listing
Context Mode is a community plugin on GitHub by mksglu, written as a Claude Code plugin that Grok Build installs. We install-checked it in Grok; we haven't run it in a live session or reviewed its code. When we installed it, Grok found 8 skills, 1 MCP server, 1 hook. No license stated in the repo, so check with the author before reusing its code. We checked commit 6006a3511ea2. It's one of 162 listings in the Productivity category on GrokStacks.
Stacks Weekly: every new Grok Build and Codex plugin, every Tuesday.
One short email for GrokStacks and CodexStacks readers, with each new plugin's install line and what it ships. Subscribe and get the free starter list: 20 Grok Build plugins worth installing first.
You'll get a confirmation email first. Unsubscribe anytime.
Context Mode FAQ
How do I install Context Mode in Grok Build?
Run grok plugin install mksglu/context-mode --trust. We install-checked this command in Grok Build. We install this repo directly: Grok Build 1.0.62 can't install it through its own marketplace file. Then start a new Grok session, or press r in /plugins, to load it.
Is Context Mode an official Grok Build plugin?
No. Context Mode is a community plugin on GitHub by mksglu, not in xAI's official Grok Build marketplace. We checked that it installs and what Grok loads from it, but haven't run it in a live Grok session or reviewed its code.
What does Context Mode include?
According to what Grok loaded in our install check, Context Mode includes 8 skills, 1 MCP server, 1 hook: context-mode, ctx-doctor, ctx-index, ctx-insight, ctx-purge, ctx-search….
Details
- Type
- Plugin
- Category
- Productivity
- Source
- Community Claude Code plugin, installs in Grok
- License
- No license stated
- Author
- mksglu
- Version
- 1.0.169
- Keywords
- antigravity, claude, claude-code, claude-code-hooks, claude-code-plugins, claude-code-skill, codex, codex-cli, copilot, cursor-plugin, kiro
- Source repo
- https://github.com/mksglu/context-mode
- Checked commit
6006a3511ea2- Homepage
- https://context-mode.com
- Checked by GrokStacks
- Install-checked in Grok Build on Oct 18, 2026; not run in a live session
Something wrong or missing? Submit or improve this listing. Marketplace listings also refresh automatically every night.
For maintainers: badge and embeds
Maintain Context Mode? Add the badge; it links to this page.
Markdown
[](https://grokstacks.com/p/context-mode/)HTML
<a href="https://grokstacks.com/p/context-mode/"><img src="https://grokstacks.com/badge.svg" alt="Listed on GrokStacks" width="164" height="28"></a>Embed card (static HTML and inline CSS, no JavaScript). Preview:
<a href="https://grokstacks.com/p/context-mode/" style="display:block;max-width:380px;box-sizing:border-box;padding:14px 16px;border:1px solid #2a2e3c;border-radius:12px;background:#0a0b0f;color:#e8eaf0;font:14px/1.45 -apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;text-decoration:none"><span style="display:block;font-size:16px;font-weight:700;color:#e8eaf0">Context Mode</span><span style="display:block;margin:2px 0 8px;font-size:12px;color:#9aa0b1">Community plugin for Grok Build · 8 skills, 1 MCP server, 1 hook</span><span style="display:block;margin:0 0 10px;color:#c9cdd8">Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memory, and…</span><span style="font-size:12px;font-weight:600;color:#7c9cff">View on GrokStacks →</span></a>Markdown summary
**[Context Mode on GrokStacks](https://grokstacks.com/p/context-mode/)**: Community plugin for Grok Build with 8 skills, 1 MCP server, 1 hook. Install: `grok plugin install mksglu/context-mode --trust`More on badges, embeds and keeping your listing up to date: GrokStacks for plugin authors.
Also in Productivity
Aegis
Make AI coding agents architecture-aware: baseline-first, evidence-verified, drift-checked, and safe across long tasks.
Agent Deck
Terminal session manager for AI coding agents. One TUI for Claude, Gemini, OpenCode, Codex, and more.
Agent Skill
Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search.
Agentmemory
#1 Persistent memory for AI coding agents based on real-world benchmarks
AI Copywriter
An AI copywriter that uses real copywriting skills + real marketing knowledge with human tone.
AI Memory
Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors