subagent-models

Reviewed at commit c901585

Pins subagent models to a model-routing policy (Opus for judgement, Haiku for mechanical work, Sonnet otherwise) and logs every spawn.

Made by
escapeboy
What we checked

Sets the model for subagents Claude starts when the caller did not pick one: Opus for a few judgement-style agents, Haiku for mechanical ones, Sonnet for general-purpose and claude. It keeps a log of the last 500 spawns (agent type, model, project folder) and /agent-models lists them. Opus entries cost more tokens; no network, file or program access.

Review details

Static review of the source at the pinned commit; not run. Registers session.start (registers /agent-models), agent.spawn (when the spawn has no explicit model and is not a fork, replaces the model from a hard-coded table keyed on subagent type, then logs time, type, requested and applied model, and cwd with $.store.set, keeping 500 entries) and command.run for agent-models. An explicit model from the caller always wins. Errors in the spawn handler are swallowed so a failure never blocks a subagent. Most table entries are the author's own agent names (adversarial-verifier, plan-challenger and others) and only matter if such agents exist; general-purpose and claude are generic. The mod can raise cost by pinning some agents to Opus. Nothing is read from disk and nothing leaves the machine. npm dependencies: none.

What it uses
  • Reads your prompts: no
  • Sees tool calls: no
  • Blocks or changes tool calls: yes
  • Reads or writes files: no
  • Runs programs on your machine: no
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events
Made this mod? Add a badge to your README

modsforClaude badge for subagent-models

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/subagent-models.svg)](https://modsforclaude.com/mods/subagent-models/)

← All mods