/governor:compressfrom governor
Compresses CLAUDE.md or other memory files with protected-span safety, targeting configurable token savings at light, medium, or aggressive levels.
Ships in governor. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
Automatically compress memory files with dense professional prose while strictly protecting critical spans.
Usage:
/governor:compress [light|medium|aggressive] [file]
Default target: CLAUDE.md
Default level: medium
Compression targets:
light: remove filler/repetition; target 15-30% savings outside protected spans.medium: collapse narrative into decision bullets; target 35-55% savings outside protected spans.aggressive: keep only rules, facts, commands, risks, decisions; target 50-70% savings outside protected spans.One-command rule: do not ask the user to edit drafts, copy paths, or run follow-up commands unless manual mode is explicitly requested or a safety fallback is required.
Internal flow:
status.status=quality_guard_failed and next_level is present, retry once at
the stronger level using retry_auto_command.Manual mode (manual or --manual) is only for very large files or explicit user request.
Protected spans are never modified:
After compression, report:
7-day visitors to each command page
5 commands in this plugin
/auditGovernor AuditAudit recurring context files and suggest usage-limit optimizations./modeGovernor ModeControl Governor. Show or set mode (on/off), allow full output for the next diagnostic step, or apply strict governance to the current task./planGovernor PlanCreate an implementation contract before broad work, or check current changes against the saved contract./statusGovernor StatusShow Claude Code Governor usage dashboard and waste heat map.npx claudepluginhub 0xhimanshu/governor --plugin governorOther plugins' commands for the same job