Skip to news
JQJO
Latest

Run‑Tool Cuts Claude Code Context | JQJO

Run‑Tool Cuts Claude Code Context

Tap title to read story

0:00 / 0:00

A new open‑source tool called run‑tool, released by ibrahimbayer on GitHub, is designed to keep shell output out of Claude Code’s context window.

The tool is a zero‑dependency Node.js command runner that functions as a Claude Code hook, an MCP server, and a command‑line interface.

It works by wrapping shell commands so that their output is not injected into the AI’s context, thereby preventing “context bloat.” According to a Hacker News post, the MCP server built into run‑tool reduces Claude Code context consumption by 98 %.

The tool also includes security fixes from an independent review of version 0.2.0 (now published as 0.3.0).

It leaves commands unchanged when they contain comments, command or process substitution, a redirect other than 2 &1, or ANSI C quoting.

Only read‑only filters such as head, tail, grep, wc, cut, tr, uniq, column, nl, and sort without -o follow a wrapped executor without a rule.

The tool’s runtime handles SIGINT, SIGTERM, and SIGHUP to stop the command’s process group, and it deletes only its own log names and the raw files of dead runs.

The log directory is created with 0700 permissions and files with 0600, keeping logs private.

The MCP run tool skips Bash rules and does not mask logs, ensuring that only the intended output is suppressed.

Published · Published by JQJO

Published by JQJO Editorial Desk · AI assisted

More context

Timeline

  1. On April 20 2026 Release of 9 tools claiming 95%+ Claude token savings via caching and compression.
  2. On April 24 2026 Newsletter details Claude Code’s high token usage and potential mitigation strategies.
  3. On May 7 2026 Blog lists 7 open-source utilities for trimming Claude Code context and reducing noise.
  4. On July 5 2026 ExplainX AI outlines July 2026 Claude usage limits and context consumption changes.
  5. On July 11 2026 Pasquale Pillitteri compares Caveman, Ponytail, rtk, pxpipe, headroom for token cuts.

Why it matters

Claude users face rising costs; run‑tool cuts context tokens by 27%, lowering expenses and improving performance. Developers value reduced noise; the tool keeps shell output out, preserving clarity in AI interactions.

Coverage notes

Milvus.io highlights open-source solutions, citing run‑tool’s 27% savings as a key example. SitePoint and Hacker News discuss token optimization, drawing attention to the tool’s cost‑saving impact.

Primary report

ibrahimbayer — Run‑Tool Cuts Claude Code Context

Sources

JQJO Editorial Desk · Human reviewed · AI assisted. Report a correction.

Editorial policy and corrections · Our team

Re:Seal Offers Free 20‑Second

Tap title to read story

0:00 / 0:00

Greek National Arrested in Lynnwood

Tap title to read story

0:00 / 0:00

JQJO

Find your next story

Search JQJO’s current coverage.