Skip to main content
rule CX Codex

context-mode · mksglu, antigravity-cli — Claude Code rule: what it does, how to install

This rule routes data work through context-mode MCP tools and keeps raw files out of the conversation. Use it for analysis, search, and transformations.

Elastic-2.0 ★ 34,370 updated 2026-10-24

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add mksglu/context-mode
/plugin install context-mode@context-mode
Open on GitHub

What context-mode does

context-mode tells the agent how to handle tasks that analyze, count, filter, compare, search, parse, or transform data. It routes that work through ctx_execute, ctx_execute_file, ctx_batch_execute, ctx_fetch_and_index, ctx_search, and ctx_index, returning a derived answer, a short summary, or an artifact path instead of raw output.

The rule covers files and web content separately. ctx_execute_file loads a file into a sandbox so code can emit selected lines, values, matches, or counts. Repository reconnaissance can use one ctx_batch_execute call. Web content goes through ctx_fetch_and_index first, then ctx_search retrieves answers from the indexed source.

A full file dump through ctx_execute_file consumes the context twice: once when the result is saved and again when it is read back. Native Read and view_file remain suitable for exact edits, while analysis and exploration are routed through context-mode.

What it helps with

  • count and filter values in a file
  • find matches without dumping the whole file
  • compare several command results in one batch
  • index web content for later queries
  • return a derived answer instead of raw output

Example prompts for the agent

  • Analyze the file and return only the requested values and match count.
  • Run the repository checks as one batch and show the derived findings, not raw command output.
  • Fetch the web page, index its content, and answer these queries from the indexed source.

How to install context-mode

1Plugin marketplace

/plugin marketplace add mksglu/context-mode
/plugin install context-mode@context-mode

2Manually: put the files in place

.claude/rules/context-mode.md

The paths frontmatter field limits the files

Step by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use

Questions about context-mode

How do I install context-mode in Claude Code?

Run /plugin marketplace add mksglu/context-mode, then /plugin install context-mode@context-mode, and add the rule at .claude/rules/context-mode.md.

What does context-mode do?

The rule routes analysis, search, counting, and data transformation through context-mode MCP tools. The conversation receives the processed result rather than a full file or raw HTML dump.

Which platforms does context-mode support?

The rule targets Claude Code and Codex. MCP calls use context-mode/<tool> or the generic call_mcp_tool wrapper.

Similar IDE rules

All IDE rules for Agent setup: memory, context, orchestration →

context-mode by other authors comes first.

context-mode Mert Koseoğlu context-mode routes heavy tool outputs and web pages into an MCP sandbox so raw data does not clutter the agent context window. CX Codex +1 ★ 34,370repo stars planetscale-autonomous-execution-mode planetscale planetscale-autonomous-execution-mode lets an agent carry approved PlanetScale changes through plan, execution, verification and reporting without per-step approval. The operator accepts the risk once, for a named scope. CX Codex +1 2,000installs platform-data-and-tooling-api-context-get forcedotcom platform-data-and-tooling-api-context-get — a skill for Claude Code, Codex, Cursor and other agents: field-level schema reference for 2130 standard Salesforce objects across the Enterprise and Tooling APIs. CX Codex +1 3,500installs data-context-extractor official anthropics data-context-extractor extracts tribal knowledge from data analysts about your warehouse and auto-generates reference files. Runs in bootstrap mode for initial setup and iteration mode to add new domains. CX Codex +1 3,300installs Power BI Performance Expert Mode official github Power BI Performance Expert Mode — a Copilot subagent for slow Power BI models and reports: it walks through where the bottleneck sits, what to rewrite in DAX, and how to speed up DirectQuery. CX Codex +1 ★ 41,430repo stars goblin-mode Kurt Buhler goblin-mode is a Claude Code plugin that prepares and audits workspaces for agent-driven Power BI projects. ★ 1,104repo stars dial-your-context sanity-io dial-your-context builds concise Instructions for the Sanity Context MCP server so an agent can handle Sanity data and schema relationships with better context. It targets GROQ endpoints. CX Codex +1 1,200installs

From the same set14

The whole set →
ctx-purge ctx-purge — a skill to permanently delete project context data in bulk or by session. Wipes the knowledge base, session records, and stats — this action cannot be undone. CX Codex +1 1,600installs ctx-insight The ctx-insight skill opens the Insight dashboard in your default browser. Use it to review engineer-level productivity, retry waste, blockers, and role-based views. CX Codex +1 1,500installs ctx-index ctx-index indexes local files and directories into context-mode's FTS5 database. It allows future searches to pull exact snippets without reloading raw project files into context. CX Codex +1 1,200installs ctx-search ctx-search searches a persistent project knowledge base without reloading source files into context. Queries indexed code, documentation, and session memory via FTS5. CX Codex +1 1,100installs context-mode This skill routes data analysis, searches, and page retrieval through context-mode tools. It helps keep large raw inputs out of an agent’s context. CX Codex +1 ★ 34,370repo stars context-mode A rules file that tells the agent when to run code in the context-mode sandbox instead of pasting files and command output into the chat. CX Codex +1 ★ 34,370repo stars context-mode context-mode routes heavy tool outputs and web pages into an MCP sandbox so raw data does not clutter the agent context window. CX Codex +1 ★ 34,370repo stars context-mode context-mode — an MCP server that keeps raw tool output out of the context window and rebuilds session state after a compact. Useful when the agent burns through context fast. ★ 34,370repo stars

More in the catalog

Project sponsors

Companies that keep this analytics open