audit
Audit recurring context files and suggest usage-limit optimizations.
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/0xhimanshu/governor/HEAD/commands/audit.md -o ~/.claude/commands/audit.mdaudit.md
# Governor Audit
Audit paths from `$ARGUMENTS`. If no arguments are provided, audit common memory
files such as `CLAUDE.md`, `.claude/CLAUDE.md`, `.claude/rules`, `AGENTS.md`,
Cursor rules, and Windsurf rules.
Run:
```bash
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/governor.py" audit $ARGUMENTS
```
Summarize:
- total recurring-context estimate
- largest context files
- duplicate/oversized files
- top three recommendations
Prefer low-friction recommendations before governance:
1. compress always-loaded memory
2. split long details into on-demand skills/reference files
3. filter noisy test/build/search output
4. use `/clear` when task changes
5. use `/compact` only when continuing the same task
Keep recommendations helpful, not bossy. Do not require planning unless the user
explicitly asks or the task is broad and risky.Explain or summarize Governor vs Caveman performance benchmark results.
Automatically compress CLAUDE.md or other memory files with protected-span safety. One-command token savings.
Temporarily ask Governor to avoid compacting tool output for the next diagnostic step.
Check current changes against the latest approved implementation contract.
Install Governor compact-mode rule files into a project for Codex, Gemini, Cursor, Windsurf, or Cline.
Disable Governor compact response mode while keeping telemetry/tool hooks available.
Enable Governor compact professional mode for all prompts in this Claude Code session.
Create a compact implementation contract before broad app/site/game/refactor work.