Search iThub

Search tools, categories and collections. Type at least two characters.

Explore all tools
↑ ↓ to explore resultsEnter to open · Esc to close
CM

Context Mode

Free local plugin that keeps tool output out of agent context

Visit website Save

Context Mode is a free, local plugin for 10 coding agents that runs tool output in a sandbox and indexes it in SQLite so the agent sees only what it asks for.

Pricing
Free
Deployment
Self-hosted
Platforms
Windows, macOS, Linux
33,608stars2,304forks
0views
Updated

What is Context Mode?

Context Mode is a free, local plugin for 10 coding agents. It keeps tool output out of the agent's context window and keeps all usage data on your machine. A coding agent reads files, runs commands and fetches pages, and every result normally goes into its context window. Context Mode runs that work in a local sandbox, keeps the full output in a SQLite index on your machine, and gives the agent the part it asks for.

The plugin is free, with its source open on GitHub under a source-available licence. Hooks, the sandbox and search run as local processes next to the agent, and every index lives in ~/.context-mode, with one context.db per project. The README states zero telemetry and says sandbox runs, file indexing and search work offline after install.

It needs Node 24.15.0 or later and installs as the npm package and command context-mode. Claude Code, Codex, Gemini CLI and Qwen Code install from GitHub, and the README also covers Pi, OpenCode and Copilot CLI. On Windows you add Git for Windows, because the shell tools run in Git Bash. A separate hosted service, Context Mode Gateway, has its own account and subscription and is not part of the free plugin.

Key capabilities

  • A local sandbox that runs agent work and keeps full output out of the context window.
  • A SQLite index per project stored in ~/.context-mode.
  • Support for 10 coding agents, including Claude Code, Codex, Gemini CLI, Qwen Code, Pi, OpenCode and Copilot CLI.
  • Hooks, MCP and skills, depending on the agent.
  • A "Thinking in Code" approach where the agent writes a script and only its output enters context.
  • Offline operation after install and zero telemetry.
Advertisements

Where Context Mode fits

Context Mode fits AI-assisted development workflows that involve inspecting large logs, exploring repositories, processing command output, or consulting documentation. The agent can write a script to analyse the data and return a result, then search indexed material when further detail is needed.

Before deployment, teams should verify the selected client's hook support, runtime prerequisites, routing configuration, and session recovery behaviour. Tool connectivity alone does not establish that routing hooks are active. Local storage retention and credential passthrough also require review, since execution tools inherit environment variables and configuration paths used by authenticated command-line tools.

Install

npm install -g context-mode

Reviews of Context Mode

No reviews yet

Be the first to share your experience with Context Mode.

Loading review form…

Alternatives to Context Mode

Compare Context Mode with these tools →