Your Claude Code subagents probably pick their own model. I built a mod to take that back
Описание и применение
Мод subagent‑tuner позволяет пользователям управлять моделью и усилием, которые используют подагенты в Claude Code, предотвращая неожиданные переопределения со стороны агента.
Задача
Subagents in Claude Code often run with a model chosen by the agent itself, overriding user‑defined defaults such as those set in CLAUDE.md or environment variables.
Результат
The mod consistently enforces user‑defined model and effort settings for subagents, preventing unexpected overrides by the agent and providing a clear UI for manual or automatic selection.
Рабочий процесс
- Install the subagent‑tuner mod via /plugin install subagent-tuner --marketplace Kruhlikau/subagent-tuner
- Select user scope to activate the mod in the current session
- When a subagent is about to start, the mod displays a pane or dialog with the current model and effort
- Choose Manual to be prompted for model/effort or Auto to apply the saved default
- If Manual, select or change the model/effort and optionally save as default
- If Auto, the mod automatically overrides the agent’s choice with the saved default
- The subagent is launched with the overridden model/effort and a toast confirms the override
Доказательства
Claude Code resolves a subagent's model in a fixed order. As the sub‑agents docs describe it, the model the calling agent puts on the call itself comes first, then the agent definition's frontmatter, then the CLAUDE_CODE_SUBAGENT_MODEL environment variable, then your main model.
21 of 25 Agent calls carried model: "opus" explicitly.
Auto never asks. It applies your saved default, even over a model or effort the agent set itself.
- Дата записи: 2026-10-13T06:42:11.468Z