Governor
Claude Code usage governor: compact professional output, context slimming, tool-output filtering, telemetry, and drift guardrails.
Install
git clone https://github.com/0xhimanshu/governorInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →Governor for Claude Code
Keep long AI coding sessions sharp under quota pressure.
Now also works with Cursor · Windsurf · Cline · Codex CLI · Gemini CLI · Hermes · DeepSeek
Quick Start · Multi-Agent · Why Governor · Benchmarks · Commands · Install
Governor started as a Claude Code plugin for context hygiene, tool-output filtering, memory compression, telemetry, and drift guardrails.
As of v0.2.4, Governor's core behavior — content-aware tool-output filtering and context hygiene — works with any AI coding agent via prompt-based skills. No hooks or MCP required.
Keep long coding sessions efficient without making the model dumber.
The Claude Code command namespace is /governor:*.
Quick Start
Claude Code (full plugin)
bash install.sh --force
Restart Claude Code. Filtering, compact mode, and telemetry are already running — there is nothing to turn on. When you want to look under the hood:
/governor:status
/governor:audit
/governor:compress CLAUDE.md
Other Agents (prompt-based skill)
bash install.sh --project /path/to/project --agents all
This copies a Governor rules file into your project for each agent. The rules teach the agent to self-filter noisy tool output, preserve unique data, and maintain context hygiene — automatically, every session.
Multi-Agent Support
Governor works at two levels:
| Agent | Integration | What You Get |
|---|---|---|
| Claude Code | Plugin with hooks | Full: auto-filtering, telemetry, compression, drift guard, /governor:* commands |
| Cursor | .cursor/rules/governor.mdc |
Self-filtering, compact mode, context hygiene |
| Windsurf | .windsurf/rules/governor.md |
Self-filtering, compact mode, context hygiene |
| Cline | .clinerules/governor.md |
Self-filtering, compact mode, context hygiene |
| Codex CLI | AGENTS.md |
Self-filtering, compact mode, context hygiene |
| Gemini CLI | GEMINI.md |
Self-filtering, compact mode, context hygiene |
| Hermes 🆕 | .hermes.md |
Self-filtering, compact mode, context hygiene |
| DeepSeek 🆕 | .dsh/rules/governor.md |
Self-filtering, compact mode, context hygiene |
How it works for non-Claude agents: Governor's rules file teaches the agent to apply content-aware filtering itself. When tool output has >40% duplicate lines (test failures, log spam, build warnings), the agent compresses it — keeping the first error, file:line, and exit code. When output is unique (API responses, JSON, code), it passes through intact. No external dependencies.
Claude Code gets the deepest integration because it supports plugin hooks. Other agents get the core behavior via prompt engineering.
Why Governor
Long coding sessions usually do not fail because the AI writes one extra paragraph.
They fail because context gets polluted:
- verbose test, build, and MCP output floods the transcript
- bloated recurring files like
CLAUDE.md, notes, and rules tax every session - broad prompts trigger repo-wide scans and retries
- scope drift compounds over time
Governor is designed for that failure mode — in Claude Code and beyond.
What It Does
Similar plugs
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local…
Why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.
Production-grade engineering skills for AI coding agents.
The 1st Collaborative AI Design Agent Workspace. Local-first and open source. Create prototypes, websites, apps, dashboards, presentations, images, and videos with your team…