Back to list

Context Mode

A free, local plugin that keeps tool output out of your agent's context window — 99.4% smaller replies across 11 coding agents.

Nadine Ingram
Author
@Nadine Ingram
Project ShowcaseDeveloper ToolsOnlineclaude-code
0
0

Project intro

Context Mode is a free, local plugin that keeps tool output out of your coding agent's context window. Every time an agent reads a file, runs a command, or fetches a page, the result lands in its context — and long sessions drown in output the agent never asked to keep. This plugin runs that work in a local sandbox, stores the full output in a SQLite index on your own machine, and hands the agent only the part it asks for. On the project's own bench, the median reply is 99.4% smaller than the raw output across 36 rows of 10 KB or more.

It works with 11 coding agents — Claude Code, Codex, Gemini CLI, Qwen Code, Pi, OMP, OpenCode, Copilot CLI, Kiro, VS Code, and ZCode — and it stays local the whole way: hooks, sandbox, and search all run as processes next to your agent, with zero telemetry and no cloud account. It even works offline after install. A Code Mode lets the agent write a short script instead of reading the data, so only what the script prints ever reaches the context window.

The plugin ships with 9 MCP tools for searching, reading, and summarizing what the sandbox captured, and a separate hosted Gateway service — with its own subscription — extends the same idea to whole conversations, keeping long sessions searchable and sharing what agents learn across sessions and tools. The plugin itself is free forever, and its source is open on GitHub under the Elastic License 2.0.

It has 34,352 stars and 2,361 forks on GitHub, with 892,000 npm downloads to date, and it reached the Hacker News front page in February 2026. The project was created in February 2026 and was last pushed on 21 November 2026.

Actions

Visit project URL

Tech stack

javascriptsqlite

Project info

Project category
Developer Tools
Project status
Online
Collaboration intent
None

Comments (0)

ME
0/1000
Loading comments...