Overriding pins
Pins are deliberately not configurable through a config file - four override paths cover them. A pin is neither a ceiling nor a floor: a pinned agent runs its pin on any session model, unless the call passes model or CLAUDE_CODE_SUBAGENT_MODEL_FORCE is set. The order is: per-invocation model > the agent's frontmatter model > CLAUDE_CODE_SUBAGENT_MODEL > the main session model (sub-agents docs, Choose a model). The plugin's options are in config.json, see Configuration:
- Whole session: since Claude Code 2.1.251 the
CLAUDE_CODE_SUBAGENT_MODELenv var is a DEFAULT below everything else - an explicitmodelparam wins, then a frontmatter pin, then this var, then the session model (inheritis the same as leaving it unset) - and the dispatch report marks the rows it actually decidedagent (env=...). Since 2.1.257CLAUDE_CODE_SUBAGENT_MODEL_FORCE=1inverts that and makes the harness ignore every param and every pin: with both set, subagents run the env model, with only FORCE set they run the session model, and those rows readagent (forced=...). - Per dispatch: the Agent tool's
modelparam overrides any frontmatter pin; Workflowagent()takesmodelandeffortopts per call, and an Agent dispatch takes aneffortparam for a non-fork subagent; without one, effort comes from the agent's frontmatter pin when present, else from the session level. - Permanent: edit the
model:/effort:frontmatter inagents/*.md. A directory-source install picks the change up next session. KeepAGENT_PINSinhooks/dispatch-counter.mjsin step - it carries the model of each agent, and a CI sync test fails the build when it drifts from the frontmatter, because that drift silently corrupts the stats (it happened once; see 0.7.1). - Reset:
git checkout -- agentsin the plugin checkout, or reinstall from the marketplace.
A runtime config file for pins was considered and rejected: the harness reads model pins from agent frontmatter directly, so a config file could only be advisory prose asking Claude to pass overrides - more surface, weaker guarantee. For pins, the agent files are the config.