Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Open330v2026.8.3MITIn 1 marketplace
Keeps large shell and tool output out of your context window while indexed results stay searchable. A PreToolUse hook runs on each tool call and filters Bash output automatically.
Trending plugins
7-day copy clicks
Claude Code doesn't load everything this plugin declares
context-compress runs dist/index.js, which isn't in the repository. Claude Code installs the plugin without an error, but the server fails to start. Claude Code installs a copy of the repository and runs no build step.Checked against Claude Code 2.1.332.
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Stop drowning your AI agent in shell output. Large tool output stays searchable in index-backed flows — not stuffed into the context window. Use it through an MCP server, a drop-in CLI, agent plugins, or all three.
Quickstart · Plugin Support · Compression Modes · vs RTK · How It Works · Configuration · CLI · Changelog
|
93%
|
Searchable
|
4 modes
|
Plugins
|
# 1. Install
npm install -g context-compress
# 2. One-line setup — registers the MCP server, installs the hook,
# enables transparent Bash compression
context-compress setup --auto
# 3. (optional) Pick a mode for the session
export CONTEXT_COMPRESS_MODE=balanced # or: aggressive, conservative, auto
That's it. Restart Claude Code and shell output is now compressed before it enters context.
Prefer no MCP at all?
context-compress wrap "<cmd>"compresses any shell command's output — drop-in for RTK. See CLI.
Install context-compress — an MCP server that compresses tool output for Claude Code.
Only the printed or filtered response enters your context window.
For searchable retention, use index, fetch_and_index, batch_execute, or intent on a large execute call.
npm install -g context-compress
context-compress setup --auto
context-compress doctor
More info: https://github.com/Open330/context-compress
Every byte of tool output that enters your Claude Code context window reduces quality and speed.
A single git log or npm test can dump 50KB+ into context — that's ~12,000 tokens gone.
context-compress intercepts these tools, processes output in a sandbox, and returns only what matters:
Before: git log --oneline -100 → 8.2KB into context
After: execute(..., intent: "recent changes") → 0.3KB summary + bounded pre-filter data searchable in FTS5
It works in two modes that compose freely:
execute, search, batch_execute, fetch_and_index, index, execute_file, stats, discover). Agents call them directly when output would be large.context-compress wrap "<cmd>" runs any shell command and pipes the output through the same compression pipeline. Drop-in for RTK and friends. The PreToolUse hook can route Bash calls through it transparently when CONTEXT_COMPRESS_FILTER_BASH=1. This is response-only compression: detail omitted by a filter is not indexed or available to search.Based on context-mode by Mert Koseoğlu — rewritten in TypeScript with security hardening, architectural improvements, and better DX.
npm install -g context-compress
context-compress now ships plugin metadata for agent hosts:
7-day copy clicks
npx claudepluginhub open330/context-compress --plugin context-compressPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.