Context Mode
Skill Verified ActiveUpdate context-mode from GitHub and fix hooks/settings. Pulls latest, builds, installs, updates npm global, configures hooks. Trigger: /context-mode:ctx-upgrade
To significantly reduce context window consumption and improve session continuity for AI agents by processing data locally and intelligently managing information flow.
Features
- Local sandbox for raw data processing
- SQLite-based session continuity with event indexing
- Multi-platform installation and hook support
- 11 MCP tools for context management and execution
- Security policies for fine-grained access control
Use Cases
- Reducing context window costs and improving agent performance
- Maintaining agent state and continuity across complex tasks
- Safely executing code and processing large datasets locally
- Researching codebases and analyzing project history efficiently
Non-Goals
- Acting as a cloud-based analytics service
- Collecting any user telemetry or usage data
- Replacing core LLM reasoning capabilities with direct computation
Workflow
- User invokes a context-mode related command or trigger.
- The MCP server or plugin intercepts the command.
- Context-mode processes data in a local sandbox, preventing raw output from entering the LLM's context window.
- If applicable, content is indexed into a local SQLite database for searchability.
- Relevant results or execution outcomes are returned to the LLM.
- Session events are captured via hooks for state persistence.
- On session continuation or compaction recovery, state is restored from indexed data.
Practices
- Context management
- Secure code execution
- Session continuity
- LLM workflow optimization
Installation
/plugin install context-mode@mksglu-context-modeQuality Score
VerifiedTrust Signals
Similar Extensions
Ctx Insight
99Open the context-mode Insight analytics dashboard in the browser. Shows personal metrics: session activity, tool usage, error rate, parallel work patterns, project focus, and actionable insights. First run installs dependencies (~30s). Subsequent runs open instantly. Trigger: /context-mode:ctx-insight
Ctx Doctor
100Run context-mode diagnostics. Checks runtimes, hooks, FTS5, plugin registration, npm and marketplace versions. Trigger: /context-mode:ctx-doctor
Agent Teams
100Coordinate multiple Claude Code sessions as a team — lead + teammates with shared task lists, mailbox messaging, and file-lock claiming. Patterns for team sizing, task decomposition, and when to use teams vs sub-agents vs worktrees.
Context Mode Ops
100Manage context-mode GitHub issues, PRs, releases, and marketing with parallel subagent army. Orchestrates 10-20 dynamic agents per task. Use when triaging issues, reviewing PRs, releasing versions, writing LinkedIn posts, announcing releases, fixing bugs, merging contributions, validating ENV vars, testing adapters, or syncing branches.
Ctx Stats
99Show 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
Context Mode
99Use 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.