Auto-Disable Pipeline Reclaims Claude Context by Removing Dormant MCP Plugins
Unused MCP plugins in Claude Code silently consume context window space because their tool schemas are injected at every session startup, even if never called. Over months of casual experimentation, a user can accumulate more than 30 dormant plugins — enabled but uninvoked for 30 or more days — steadily shrinking the token budget available for actual work. A developer has built a three-script pipeline that detects dormant plugins, auto-disables them, and archives their caches on a weekly schedule via a single launchd entry point. The detection script parses session JSONL logs using jq to count only genuine tool_use invocations, correcting an earlier grep-based approach that miscounted tool availability listings as actual calls. In a sample environment with 62 enabled plugins, the pipeline identified 33 as dormant, flagging them as candidates for disabling to reduce what the author calls the 'context tax.'
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in