model-guard

by Adrian Gaik · ★ 0 · updated 2 days ago

PanesStatus lineGuardsCommandsvalidates

0

Choose the model versions Claude and its subagents may use: /models lists the newest of each family from Anthropic's Models API (older versions one key away); block a version, or a family's new ones, and subagents, workflows and /model asking for it are refused or moved to an allowed version. One list shared by every Claude Code window on the machine; a repo can keep its own.

install model-guard

Install

/plugin marketplace add Recokioshi/claude-kit
/plugin install model-guard@claude-kit

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startclassic.SessionStartturn.startclassic.PostModelSwitchcommand.runagent.spawnturn.steptool.callclassic.PreModelSwitchui.render
API calls
$.clock.after$.clock.now$.command.register$.fs.read$.http.fetch$.session.authorize$.session.cwd$.session.model$.session.repo$.state.get$.state.set$.store.delete$.store.get$.store.keys$.store.set$.ui.close$.ui.open$.ui.resolve$.ui.status$.ui.toast
Draws
Pane
Can see
classic hookssubagent spawnsWorkflow calls
Reach
level 3 of 3 other: $.state.getother: $.state.setnetworkreads filesreads the transcriptpersists statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/Recokioshi/claude-kit
Path in repo
mods/model-guard
Source commit
46d6317 the exact code the scan read
Author
Adrian Gaik @Recokioshi
License
No license declared — ask the author before reusing code.
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from Recokioshi/claude-kit

git-gate

Recokioshi/claude-kit

Git only when you asked: commits, pushes, pull requests, merges and destructive git commands run only when your latest message (or /ship, /kickoff, or your answer to Claude's question) allowed them; everything else is refused with a note telling Claude to ask. No UI.

★ 0ToastsGuardsCommands

handoff

Recokioshi/claude-kit

Hand work to another session or repo without copy-paste: /handoff writes a note from facts it gathers itself (branch, commits, PRs, worklog) plus a six-section narrative from a fork of the conversation, saves it under ~/.claude/handoffs, copies it, and /handoff pick inserts it in the other session; a waiting note for this repo shows as a toast.

★ 0PanesCommands

progress-pane

Recokioshi/claude-kit

Mission control for long tasks: a validated worklog tool Claude updates at every step (done only after a green gate), facts the mod sees for itself (gate runs, commits, agents, dev servers, context and cost), drift hints where the two disagree, one band line above the prompt and a /progress pane.

★ 0PanesBandsGuards