alex2481kobe/claude-mods/tree/main/plugins/agent-models

alex2481kobe/claude-mods/tree/main/plugins/agent-models

agent-models 是 Claude Code mods API 插件,会在每个子代理启动前把模型与 reasoning effort 标签附加到任务描述,例如 Review auth · Opus 5.5 (high)。它从 Agent 工具的 model 选项、.claude/agents/ 与 ~/.claude/agents/ 中 agent 文件的 model:/effort: frontmatter,或父代理模型解析标签。Explore、Plan 等内置代理和插件代理会保持不标记;未知模型不会猜测。安装:/plugin marketplace add alex2481kobe/claude-mods;/plugin install agent-models@claude-mods。
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add alex2481kobe/claude-mods claude plugin install agent-models
Each Claude subagent's model and effort in Claude Code's agent list.

Claude Code's agent list shows a subagent's task but not what it runs on. With this mod each row carries it, the way the codex mod's rows do:
Review auth · Opus 5.5 (high)
Check label.ts · Sonnet 5.5 (medium)
Say ok · Haiku
| The agent | Its label |
| --------------------------------------------------- | ------------------------------------------------- |
| general-purpose, a fork, an agent file's inherit | the parent's model and effort |
| an agent file with model: (and effort:) | that model, and that effort |
| the Agent tool's model option | that model; the parent's effort only if the same model |
| Explore, Plan and other built-ins | none: their model is the engine's to choose |
| a plugin's agent (codex:read) | none: the plugin labels its own |
Where the model cannot be known before the agent starts, the row is left as it was rather than guessed.
/plugin marketplace add alex2481kobe/claude-mods
/plugin install agent-models@claude-mods
agent.spawn hook, which runs before the subagent starts, appends
· <model> (<effort>) to the task's description; the agent list shows that
description.model option, else the agent file's, else the
parent's for the agents that inherit it. Agent files are read from the
project's .claude/agents/ and your own (~/.claude/agents/, or
$CLAUDE_CONFIG_DIR/agents/), matched by their name.effort, else the effort of the parent's
latest request, and that only when the agent runs on the parent's own model:
another model may take no effort at all (Haiku takes none).claude-opus-5-5 is Opus 5.5.agents/, or one defined in settings, a
flag or policy, is not read, so its agent goes unlabelled.model: line is left unlabelled.haiku is Haiku.effort is shown even when the Agent tool's model option
overrides its model.claude -p).claude plugin validate plugins/agent-models
claude plugin test plugins/agent-models
claude --plugin-dir plugins/agent-models