monte3l/m3l-output-governor
A Claude Code plugin that measures where your output tokens go and records which levers cut them, such as effort and the built-in Concise output style
stack: JavaScript
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
GUARDRAILS
4/5
Blocks destructive commands · Protects secrets · Pre-tool screening hook · No YOLO mode · details
Quality 61/100 Guardrails v2
Copy this rig
# review before running: this installs third-party code
$ npx degit monte3l/m3l-output-governor/.claude ./rig-m3l-output-governor # inspect, then merge into .claude/ MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.
$ npx degit monte3l/m3l-output-governor/.claude/skills/creating-prs .claude/skills/creating-prs $ npx degit monte3l/m3l-output-governor/.claude/skills/finishing-work .claude/skills/finishing-work $ npx degit monte3l/m3l-output-governor/.claude/skills/harness-guidance .claude/skills/harness-guidance $ npx degit monte3l/m3l-output-governor/.claude/skills/reviewing-dependabot-prs .claude/skills/reviewing-dependabot-prs $ npx degit monte3l/m3l-output-governor/.claude/skills/starting-work .claude/skills/starting-work $ npx degit monte3l/m3l-output-governor/.claude/skills/triaging-ci .claude/skills/triaging-ci $ npx degit monte3l/m3l-output-governor/.claude/skills/triaging-scan-alerts .claude/skills/triaging-scan-alerts $ npx degit monte3l/m3l-output-governor/.claude/skills/watching-pr-checks .claude/skills/watching-pr-checks $ npx degit monte3l/m3l-output-governor/.claude/skills/writing-commits .claude/skills/writing-commits $ npx degit monte3l/m3l-output-governor/skills/measure .claude/skills/measure
$ curl -fsSL --create-dirs -o .claude/agents/Explore.md https://raw.githubusercontent.com/monte3l/m3l-output-governor/main/.claude/agents/Explore.md $ curl -fsSL --create-dirs -o .claude/agents/code-reviewer.md https://raw.githubusercontent.com/monte3l/m3l-output-governor/main/.claude/agents/code-reviewer.md $ curl -fsSL --create-dirs -o .claude/agents/silent-failure-hunter.md https://raw.githubusercontent.com/monte3l/m3l-output-governor/main/.claude/agents/silent-failure-hunter.md
Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.
{
"permissions": {
"deny": [
"Read(./.env)",
"Read(./.env.*)",
"Read(./secrets/**)"
]
},
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "node \"$CLAUDE_PROJECT_DIR/.claude/hooks/guard-git-push-signed.mjs\""
},
{
"type": "command",
"command": "node \"$CLAUDE_PROJECT_DIR/.claude/hooks/guard-double-background.mjs\""
},
{
"type": "command",
"command": "node \"$CLAUDE_PROJECT_DIR/.claude/hooks/guard-readonly-bash.mjs\""
},
{
"type": "command",
"command": "node \"$CLAUDE_PROJECT_DIR/.claude/hooks/guard-bash-writes.mjs\""
}
]
},
{
"matcher": "^(Write|Edit|NotebookEdit)$",
"hooks": [
{
"type": "command",
"command": "node \"$CLAUDE_PROJECT_DIR/.claude/hooks/guard-no-commonjs.mjs\""
},
{
"type": "command",
"command": "node \"$CLAUDE_PROJECT_DIR/.claude/hooks/guard-branch-isolation.mjs\""
},
{
"type": "command",
"command": "node \"$CLAUDE_PROJECT_DIR/.claude/hooks/guard-secret-writes.mjs\""
}
]
}
]
}
} Skills (10)
creating-prsfinishing-workharness-guidancereviewing-dependabot-prsstarting-worktriaging-citriaging-scan-alertswatching-pr-checkswriting-commitsmeasure
Subagents (3)
| Explore model: claude-haiku-5-5 | Fast read-only search agent for locating and understanding this plugin's code. Use it to find files by pattern (e.g. "scripts/**/*.mjs", "tests/*.test.mjs"), grep for symbols or keywords (e.g. "where |
| code-reviewer model: claude-opus-5-5 | Read-only reviewer for changes to this plugin's scripts/, evals/, tests/, skill, manifests and docs. Checks a diff for correctness, this repo's nine invariants, doc-parity (README, evals/results.md, U |
| silent-failure-hunter model: claude-opus-5-5 | Read-only error-handling auditor for this plugin's scripts/ and evals/ code. Hunts silent failures — empty or over-broad catch blocks, ?. or ?? that masks a failed parse, unreadable-file handling that |
Hooks (10)
| event | matcher | runs |
|---|---|---|
| UserPromptSubmit | * | node "$CLAUDE_PROJECT_DIR/.claude/hooks/inject-decision-gate.mjs" |
| PreCompact | * | node "$CLAUDE_PROJECT_DIR/.claude/hooks/write-compact-handoff.mjs" |
| SessionStart | compact|resume|startup | node "$CLAUDE_PROJECT_DIR/.claude/hooks/reinject-compact-handoff.mjs" |
| PreToolUse | Bash | node "$CLAUDE_PROJECT_DIR/.claude/hooks/guard-git-push-signed.mjs" |
| PreToolUse | Bash | node "$CLAUDE_PROJECT_DIR/.claude/hooks/guard-double-background.mjs" |
| PreToolUse | Bash | node "$CLAUDE_PROJECT_DIR/.claude/hooks/guard-readonly-bash.mjs" |
| PreToolUse | Bash | node "$CLAUDE_PROJECT_DIR/.claude/hooks/guard-bash-writes.mjs" |
| PreToolUse | ^(Write|Edit|NotebookEdit)$ | node "$CLAUDE_PROJECT_DIR/.claude/hooks/guard-no-commonjs.mjs" |
| PreToolUse | ^(Write|Edit|NotebookEdit)$ | node "$CLAUDE_PROJECT_DIR/.claude/hooks/guard-branch-isolation.mjs" |
| PreToolUse | ^(Write|Edit|NotebookEdit)$ | node "$CLAUDE_PROJECT_DIR/.claude/hooks/guard-secret-writes.mjs" |
Plugins (7)
context7@claude-plugins-officialtypescript-lsp@claude-plugins-officialclaude-md-management@claude-plugins-officialgithub@claude-plugins-officialclaude-security@claude-plugins-officialskill-creator@claude-plugins-officialplugin-dev@claude-plugins-official
Permissions
deny (3)
Read(./.env)
Read(./.env.*)
Read(./secrets/**)
ask (0)
—
allow (0)
—
Similar rigs
monte3l/m3l-plugins
A Claude Code plugin marketplace with one catalogue for every plugin the organization publishes, each pinned to a release
Fort Knox 1.5k tok · · Q40
monte3l/m3l-groundwork
A CLI that sets up a TypeScript project with a strict toolchain and Claude Code, or surveys an existing one read-only, plus a /customize skill that tailors it to current guidance
Fort Knox 8.8k tok · · Q65
monte3l/m3l-claude-mentor
A Claude Code plugin that mentors you on Claude and Claude Code, adapting to your mastery level
Fort Knox 4.3k tok · · Q65
monte3l/m3l-prompt-optimizer
A Claude Code plugin that refines the prompts you type using Anthropic's prompt-engineering guidance, and passes clear prompts through unchanged
Fort Knox 4.2k tok · · Q57