SkillsPlugins & marketplacesMCP serversHooks

mksglu/context-mode

Free, local plugin that keeps tool output out of your coding agent's context window. Sandbox and SQLite FTS5 search, 99% fewer bytes in context. Works with Claude Code, Codex, Pi, OMP, OpenCode, Gemini CLI, Copilot CLI and 4 more agents. Zero telemetry.

Stars
34,370
+7 days
—
Forks
2,363
Language
JavaScript
License
NOASSERTION
Last push
21 Nov 2026

Summary

Summary written by AI from the README; it may be imprecise.

This local plugin intercepts tool outputs and runs executions in a sandbox to prevent large payloads from exhausting an agent's context window. It indexes raw command logs, file contents, and web responses into a local SQLite database, returning only targeted excerpts or script results. It operates completely on your machine across Claude Code and other agents without telemetry.

Use it when

  • When running commands or reading large log files that consume too many tokens in Claude Code
  • Intercept tool calls and web fetches to extract only relevant data through sandbox scripts
  • Search previous tool outputs and restore session state after context compaction

Install

plugin
claude plugin marketplace add mksglu/context-mode
plugin
claude plugin install context-mode@context-mode
npm
npm i -g context-mode

Commands quoted from the repo's README. Read the README before running them.

Includes hooks that run shell commands on your machine. Read them before installing.

Stars over 90 days

Collecting: 2 of 90 days so far. The chart appears after 7 days.

Type to search the reference, templates and lessons.