PlugMyPlugin
← Browse

model-guard

Toshik1978 ★ 0

model-guard is a PreToolUse hook that enforces an allowlist of approved Claude models (haiku, sonnet, opus by default) for agent and workflow dispatches, automatically redirecting unapproved models like Fable to opus unless explicitly opted in. It prevents agents from autonomously selecting expensive or unknown model tiers while leaving the user's own /model choice untouched.

Security Project Management No API key detected runs shell

Install

> /plugin marketplace add Toshik1978/claude-code-plugins/tree/HEAD/plugins/model-guard
> /plugin install model-guard

Source: https://github.com/Toshik1978/claude-code-plugins/tree/HEAD/plugins/model-guard

What it's made of

1 hook

Commands
0
Agents
0
Skills
0
MCP servers
0
Hooks
1 · PreToolUse

What it needs & plugs into

API keys
none
Paid services
none detected
External tools
guard.sh
Talks to
nothing external detected

Analyzed . Facts extracted from the plugin's files. Prose generated by claude-haiku-4-5-20251001.

Is this your plugin?

Claim it to keep the card accurate and enter the weekly contest. Requires signing in as the GitHub owner (Toshik1978).