All shelves / Mods / Safety
model-allowlist
By erikdarlingdata
model-allowlist is a Claude Code safety mod by erikdarlingdata.
Refuses a subagent spawn that pins a model id instead of a tier alias such as opus or sonnet, and holds spawns to model rules you write per agent type.
Holds a command
Install
The marketplace name is erikdarling.
/plugin marketplace add erikdarlingdata/claude-plugins /plugin install model-allowlist@erikdarling
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 1.0.0
- License
- MIT
- Repo stars
- 28
- Last change
- 2026-10-06
What it can reach
- Holds a command
- Sees tool calls
The README says these mods need a Claude Code version that loads plugin hook modules. A spawn with no model is always allowed, because the agent file or the parent decides then. refuse_pinned_ids is on by default, and the allowed aliases are opus, sonnet, haiku, fable, and inherit; a trailing [1m]-style suffix is ignored. rules is empty by default, so every alias is allowed. A rule is written agent type pattern => model => brief pattern => message: a spawn whose agent type and model match is refused unless its brief matches the brief pattern, and an empty brief pattern refuses that pairing outright. Patterns are case-insensitive regular expressions, and a rule that does not parse is skipped. Set the options in /config, or under pluginConfigs in settings.json.
The marketplace, erikdarling, holds eight Darling Data plugins, subagent-wall, open-asks, and usage-budget among them. Add erikdarlingdata/claude-plugins. This one installs on its own. Refusing a subagent spawn is why this page files it under safety. subagent-wall, by the same author, holds a subagent after a time limit to git, gh, and Markdown or text writes. subagent-tuner picks each subagent's model and effort by asking you in a pane, from a recommendation, or from your saved default. This one picks nothing: it refuses a spawn that names a dated or versioned model id, which keeps pointing at an old model after the tier moves on, and asks for a tier alias instead. The author's example rule lets the lane agent run Opus only when the brief says design, security, or hard debugging. Its plugin.json names Erik Darling as its author. In the source, the check runs in an agent.spawn hook, and the refusal names the allowed aliases or says to leave the model out.
Demo

What it hooks into
agent.spawnWhen a subagent starts
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Files
The author's source, 3 files. They load when you open them.
Facts
- Author
- erikdarlingdata
- Category
- Safety
- Marketplace
- erikdarling
- Folder
- plugins/model-allowlist
- Version
- 1.0.0
- License
- MIT
- Repo stars
- 28
- Last change
- 2026-10-06
- Language
- TypeScript
- Files
- 4