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 nsheapsv0.1.2MITIn 1 marketplace
Prevents context window bloat from large tool outputs. PostToolUse hook detects oversized results and instructs Claude to save to file instead of keeping in context. PreToolUse hook redirects Bash commands that are likely to produce large output.
Run automatically on Claude Code events. Claude doesn't decide.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
context-management, performance, agent-teams, hooks, output-management
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Prevents context window bloat from large tool outputs and oversized conversation history entries.
Large tool outputs (>10kB) and oversized JSONL conversation entries cause:
After tools like Bash, Read, Grep, Glob, WebFetch, and WebSearch execute, checks if the output exceeds 10kB. If so:
.claude/tmp/large-output-{tool}-{timestamp}.txtAfter Write/Edit operations on .jsonl files, checks the last 5 lines for entries exceeding 10kB. Warns Claude to keep JSONL entries compact.
PostToolUse hooks cannot modify or replace built-in tool output (#18594). The large output is already in the conversation context by the time the hook fires. This plugin mitigates the problem by:
True output interception would require upstream changes to Claude Code's hook architecture.
Set the size threshold via environment variable (default: 10240 bytes / 10kB):
export CONTEXT_BLOAT_THRESHOLD=10240
Install via the nsheaps-claude-plugins marketplace:
context-bloat-prevention@nsheaps-claude-plugins
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.
npx claudepluginhub nsheaps/ai-mktpl --plugin context-bloat-preventionPlugins from other owners that cover similar ground