HOW-TO GUIDE

How to cut the tool output Claude Code and Codex load with Context Mode

Based on a post by Trader Atlas (@traderatlas_) on X · Nov 27, 2026

You'll end with: Claude Code or Codex with the Context Mode plugin, which processes large tool output locally and returns only the evidence the agent needs.

Why it's worth having: In the project's Nov 1 benchmark of 36 cases, the median cut in tool output entering context was 99.4%, and the guide shows how to test it yourself.

At a glance

WHO IT'S FOR
Developers and IT and OT engineers who run coding agents on large logs, repos, and datasets.
LEVEL
Intermediate
COST
Free for internal use under the Elastic License 2.0. A hosted Gateway is a separate paid subscription.
YOU NEED
Node.js 24.15.0 or newer · Claude Code or Codex · Git for Windows on Windows

The method, in short

  1. 1Install the plugin from Claude Code's or Codex's plugin marketplace, restart, and run the doctor command to confirm the hooks are active.
  2. 2Add rules to AGENTS.md or CLAUDE.md to process large logs and datasets locally, keep exact evidence, and never index secrets.
  3. 3Run an A/B test on three repeatable tasks with the same model and commit, three or more runs each, and compare the medians.
  4. 4Judge it on correctness, rework, and billed usage, not only on the context savings the plugin reports.

The X Article has install steps for both agents, 8 prompts, and the A/B benchmark setup.