ClaudeCodeMod

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.

In Claude Code
/plugin marketplace add erikdarlingdata/claude-plugins
/plugin install model-allowlist@erikdarling
Open the repo

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

The model-allowlist section of the Darling Data plugins README: it checks the model a subagent is spawned with, the /plugin install line, why a pinned model id goes stale and that a spawn naming one is refused for a tier alias such as opus, sonnet, or haiku, an example rule that lets the lane agent use Opus only when the brief says design, security, or hard debugging, a table of the three options and their defaults, and that rule written out.
Screenshot of the author's GitHub page.

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
Repo
erikdarlingdata/claude-plugins
Folder
plugins/model-allowlist
Version
1.0.0
License
MIT
Repo stars
28
Last change
2026-10-06
Language
TypeScript
Files
4

Other mods in Safety

ruflo-browserruvnetHolds a commandRefuses ruflo browser opens of file, javascript, data, or chrome URLs, credentialed or cloud-metadata hosts, unsafe Chrome flags, and cookie-reading scripts.ruflo-intelligenceruvnetHolds a commandRefuses a key, token, or password in what ruflo learns from, an email address in a public transfer, and a reset of ruflo's intelligence without confirm.ruflo-jujutsuruvnetHolds a commandRefuses a pull request ruflo creates or reviews when its title or body holds a key, token, or password, and a merge or close that does not carry confirm.ruflo-neural-traderruvnetHolds a commandRefuses a live order from ruflo's neural-trader tools unless it is confirmed, paper, or a dry run, and any trader call or memory write that holds a broker key.ruflo-loop-workersruvnetHolds a commandRefuses a ruflo background worker dispatch whose context holds a key, token, or password, and any dispatch past a per-session cap, which catches a stuck loop.ruflo-workflowsruvnetHolds a commandRefuses a ruflo workflow definition, run, or workflow memory record that holds a secret, and a workflow_delete that names no single workflow id.ruflo-federationruvnetHolds a commandRefuses ruflo federation publishes and syncs to other machines that hold a key, token, or password, or personal data such as an SSN or a card number.ruflo-agentruvnetHolds a commandRefuses text sent into a ruflo agent runtime, a local WASM sandbox or Anthropic's managed cloud agents, when it holds a key, token, or password.ruflo-agentdbruvnetHolds a commandRefuses a write to ruflo's agent memory, or a memory import, that holds a private key, token, or key-like value, and can add the best memories to each prompt.ruflo-aidefenceruvnetHolds a commandRefuses a sample sent to ruflo's AI defence to learn from when it holds a key, token, or password, since learned patterns are stored and replayed.ruflo-autopilotruvnetHolds a commandRefuses a ruflo autopilot log or lesson that holds a key, token, or password, and an autopilot config that raises the loop past its iteration cap.ruflo-daaruvnetHolds a commandRefuses a call to ruflo's dynamic agent tools, the daa_ family, when its input holds a key, token, or password, and names the kind of secret, never the value.
All 73 in Safety