From governor
Compresses CLAUDE.md or specified memory files at light/medium/aggressive levels with protected-span safety. Reports token savings, validation status, and backup location.
npx claudepluginhub 0xhimanshu/governor --plugin governor# Governor Compress Automatically compress memory files with dense professional prose while strictly protecting critical spans. Usage: 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...
/compressCompresses natural language in .md/.txt file to caveman format, saving input tokens. Preserves code blocks, URLs, structure; creates backup.
/optimize-memory-bankScans .memory_bank/**/*.md files for redundancy, creates backup, optimizes files with >10% redundancy (target 30-50% reduction), and reports metrics summary.
/check-claude-md-tokensAnalyzes CLAUDE.md token count against 2500 limit (chars/4 estimate), reports status (✅/⚠️/❌), and proposes specific reductions if exceeded.
Share bugs, ideas, or general feedback.
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: