DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to keep large tool output out of Claude Code's context with Context Mode

Install the Claude Code plugin so sandbox tools handle big outputs instead of the chat window.

Short answer: Run /plugin marketplace add mksglu/context-mode in Claude Code; then run /plugin install context-mode@context-mode; Restart Claude Code or run /reload-plugins. All steps.

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

  1. Run /plugin marketplace add mksglu/context-mode in Claude Code.
  2. Run /plugin install context-mode@context-mode.
  3. Restart Claude Code or run /reload-plugins.
  4. Run /context-mode:ctx-doctor and confirm all checks show [x].
  5. Work as usual, then run /context-mode:ctx-stats to 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer