Who it is forA developer using Claude Code who sees context run out after a few tool calls on a large repo or browser task.
The problemEach MCP tool call dumps raw data into the context window, so a single snapshot or issue list can use a large share of the budget.
The outcomeRaw tool output stays in sandbox tools, the context window stays smaller, and /context-mode:ctx-stats shows the savings per tool.
What you need first
- Claude Code v1.0.33+ for the plugin install, or Node.js >= 22.5 (or Bun) for the Gemini CLI setup
- An existing AI coding agent session in a project you want to work on
Steps
- Run
/plugin marketplace add mksglu/context-modein Claude Code. - Run
/plugin install context-mode@context-mode. - Restart Claude Code or run
/reload-plugins. - Run
/context-mode:ctx-doctorand confirm all checks show[x]. - Work as usual, then run
/context-mode:ctx-statsto see context savings by tool.
Prompt for your agent
In the context-mode repo, install the Claude Code plugin with the two /plugin commands in the README, then run /context-mode:ctx-doctor. Report whether every check shows [x]. Then run /context-mode:ctx-stats and report the savings ratio for the session.
Caveat. The README says routing is automatic in the plugin, but the status line needs a manual edit to ~/.claude/settings.json, and the README excerpt does not show every routing rule.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for mksglu/context-mode and "Keep large tool output out of Claude Code's context"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer