HeadlinesBriefing favicon HeadlinesBriefing.com

GitHub Governor: Claude Code Usage Control Tool

Hacker News •
×

0xhimanshu/governor is a new Claude Code plugin that tackles session bloat through compact output, context slimming, and tool-output filtering. Unlike style-only token savers, Governor addresses real session killers: bloated CLAUDE.md files, noisy build output, and scope drift during long tasks.

The tool provides always-on compact mode, memory compression via /governor:compress CLAUDE.md, and protected-span safety that preserves code blocks and critical elements. Benchmarks show 55% token reduction on technical explanations, with tool-output filtering blocking 96.8% of noisy pytest output while preserving failure signals.

Governor includes telemetry tracking blocked tokens and compactions, prompt guidance for vague requests, and /governor:guard for scope management. Commands like /governor:status and /governor:audit help users monitor waste heat maps and bloating patterns. The plugin supports Codex, Gemini, Cursor, Windsurf, and Cline through portable rule snippets.

This addresses a critical pain point for heavy Claude Code users who hit quota limits not from thinking, but from accumulating context bloat. The exact token accounting and backup restoration for compression attempts make it safer than crude truncation approaches.