2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Claude Code/CodexでSub-agentのモデルを指定する

2
Posted at

やりたいこと

AstraやFableなどの賢いモデルを使うと、トークン消費が激しくなるので、Agent実行する場合は、別のモデルを使いたいケースが有る

Claude Code

CLAUDE_CODE_SUBAGENT_MODEL=opus を設定すればよいので以下のようにかける

.claude/settings.json
{
  "env": {
    "CLAUDE_CODE_SUBAGENT_MODEL": "opus",
    "CLAUDE_CODE_SUBAGENT_MODEL_FORCE": "1"
  }
}

Codex

Codexにも同様の設定があり以下の様にかけばよい

.codex/config.toml
[agents]
default_subagent_model = "gpt-5.6-luna"
default_subagent_reasoning_effort = "medium"
2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?