context-mode
SolidMANDATORY routing rules for context-mode. Invoke whenever you analyze, count, filter, compare, search, parse, or transform data; fetch a URL; or run a data-heavy command — so raw bytes stay out of the context window.
Install
Quality Score: 81/100
Skill Content
Details
- Author
- mksglu
- Repository
- mksglu/context-mode
- Created
- 5 months ago
- Last Updated
- today
- Language
- TypeScript
- License
- NOASSERTION
Integrates with
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
context-mode
Context-mode is an MCP server plugin that reduces context window usage by ~98% through sandboxed tool routing. MUST be applied whenever Claude is running inside a context-mode-enabled session — it is not optional. Trigger when: context-mode MCP server is present in the session; running Bash commands that produce more than 20 lines of output; reading files for analysis; fetching web pages and searching them; batch execution of multiple queries; or when you need to prevent raw tool outputs from flooding the context window. Key capabilities: routes Bash to ctx_execute / ctx_batch_execute (captures output, prevents bloat); routes Read to ctx_execute_file (raw content never enters context); routes WebFetch to ctx_fetch_and_index then ctx_search (fetch once, query indexed content on demand); enforces strict output rules (under 500 words, write artifacts to files, return only path + 1-line description). Ideal for: working in long-running sessions with large codebases; running multi-step debugging workflows that prod
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", "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.
context-mode
Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memory across compactions, and enforces routing across 17 platforms via MCP + hooks. Use when context window is filling up, tool outputs are too large, or session state needs to survive compaction. Works with Antigravity, Claude, Cursor, Codex, Copilot, OpenCode, and more. Source: https://github.com/mksglu/context-mode — MCP-layer sandboxing, local-only, no telemetry.