audit
CommandAudit recurring context files and suggest usage-limit optimizations.
Create an implementation contract before broad work, or check current changes against the saved contract.
> /plugin marketplace add 0xhimanshu/governor> /plugin install governor@governor
description: Create an implementation contract before broad work, or check current changes against the saved contract. disable-model-invocation: false
This command has two phases and picks the right one automatically.
First, check whether this project already has a contract. Run this exactly as written; do not append `$ARGUMENTS`, which is a task description, not a path:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/governor.py" guard --check**Drift phase** below.
clearly differs from the named contract → treat it as new work and run the **Contract phase**.
Create an implementation contract for `$ARGUMENTS`. This is explicit opt-in governance: do not implement yet.
Use bounded research when facts are current or market/design/API dependent. Keep research compact and cite sources when browsing.
Return a contract with:
At the end, include a JSON contract block with these keys:
{
"title": "",
"goal": "",
"requirements": [],
"planned_files": [],
"acceptance_tests": [],
"drift_guardrails": [],
"stop_conditions": []
}Also save the same JSON contract into plugin data before returning:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/governor.py" save-contract --title "SHORT TASK TITLE"Pass the JSON on stdin. The helper generates a safe lowercase slug.
Tell the user implementation should begin only after they approve the contract. Do not make this command a hidden prerequisite for small focused fixes.
Run the full guard:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/governor.py" guardUse its output to report:
Keep the guidance concise and action-oriented.
Claude Code usage governor: compact professional output, context slimming, tool-output filtering, telemetry, and drift guardrails.
Audit recurring context files and suggest usage-limit optimizations.
Automatically compress CLAUDE.md or other memory files with protected-span safety. One-command token savings.
Control Governor. Show or set mode (on/off), allow full output for the next diagnostic step, or apply strict governance to the…
Show Claude Code Governor usage dashboard and waste heat map.
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.