feat(model-profiles): add adaptive preset with role-based model assignment (#1806)
Add a fourth model profile preset that assigns models by agent role: opus for planning and debugging (reasoning-critical), sonnet for execution and research (follows instructions), haiku for mapping and checking (high volume, structured output). This gives solo developers on paid API tiers a cost-effective middle ground — quality where it matters most (planning) without overspending on mechanical tasks (mapping, checking). Per-agent overrides via model_overrides continue to take precedence over any profile preset, including adaptive. Closes #1713 Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -26,6 +26,8 @@ Task(
|
||||
|
||||
**Note:** Opus-tier agents resolve to `"inherit"` (not `"opus"`). This causes the agent to use the parent session's model, avoiding conflicts with organization policies that may block specific opus versions.
|
||||
|
||||
If `model_profile` is `"adaptive"`, agents resolve to role-based assignments (opus/sonnet/haiku based on agent type).
|
||||
|
||||
If `model_profile` is `"inherit"`, all agents resolve to `"inherit"` (useful for OpenCode `/model`).
|
||||
|
||||
## Usage
|
||||
|
||||
@@ -4,20 +4,20 @@ Model profiles control which Claude model each GSD agent uses. This allows balan
|
||||
|
||||
## Profile Definitions
|
||||
|
||||
| Agent | `quality` | `balanced` | `budget` | `inherit` |
|
||||
|-------|-----------|------------|----------|-----------|
|
||||
| gsd-planner | opus | opus | sonnet | inherit |
|
||||
| gsd-roadmapper | opus | sonnet | sonnet | inherit |
|
||||
| gsd-executor | opus | sonnet | sonnet | inherit |
|
||||
| gsd-phase-researcher | opus | sonnet | haiku | inherit |
|
||||
| gsd-project-researcher | opus | sonnet | haiku | inherit |
|
||||
| gsd-research-synthesizer | sonnet | sonnet | haiku | inherit |
|
||||
| gsd-debugger | opus | sonnet | sonnet | inherit |
|
||||
| gsd-codebase-mapper | sonnet | haiku | haiku | inherit |
|
||||
| gsd-verifier | sonnet | sonnet | haiku | inherit |
|
||||
| gsd-plan-checker | sonnet | sonnet | haiku | inherit |
|
||||
| gsd-integration-checker | sonnet | sonnet | haiku | inherit |
|
||||
| gsd-nyquist-auditor | sonnet | sonnet | haiku | inherit |
|
||||
| Agent | `quality` | `balanced` | `budget` | `adaptive` | `inherit` |
|
||||
|-------|-----------|------------|----------|------------|-----------|
|
||||
| gsd-planner | opus | opus | sonnet | opus | inherit |
|
||||
| gsd-roadmapper | opus | sonnet | sonnet | sonnet | inherit |
|
||||
| gsd-executor | opus | sonnet | sonnet | sonnet | inherit |
|
||||
| gsd-phase-researcher | opus | sonnet | haiku | sonnet | inherit |
|
||||
| gsd-project-researcher | opus | sonnet | haiku | sonnet | inherit |
|
||||
| gsd-research-synthesizer | sonnet | sonnet | haiku | haiku | inherit |
|
||||
| gsd-debugger | opus | sonnet | sonnet | opus | inherit |
|
||||
| gsd-codebase-mapper | sonnet | haiku | haiku | haiku | inherit |
|
||||
| gsd-verifier | sonnet | sonnet | haiku | sonnet | inherit |
|
||||
| gsd-plan-checker | sonnet | sonnet | haiku | haiku | inherit |
|
||||
| gsd-integration-checker | sonnet | sonnet | haiku | haiku | inherit |
|
||||
| gsd-nyquist-auditor | sonnet | sonnet | haiku | haiku | inherit |
|
||||
|
||||
## Profile Philosophy
|
||||
|
||||
@@ -37,6 +37,12 @@ Model profiles control which Claude model each GSD agent uses. This allows balan
|
||||
- Haiku for research and verification
|
||||
- Use when: conserving quota, high-volume work, less critical phases
|
||||
|
||||
**adaptive** — Role-based cost optimization
|
||||
- Opus for planning and debugging (where reasoning quality has highest impact)
|
||||
- Sonnet for execution, research, and verification (follows explicit instructions)
|
||||
- Haiku for mapping, checking, and auditing (high volume, structured output)
|
||||
- Use when: optimizing cost without sacrificing plan quality, solo development on paid API tiers
|
||||
|
||||
**inherit** - Follow the current session model
|
||||
- All agents resolve to `inherit`
|
||||
- Best when you switch models interactively (for example OpenCode or Kilo `/model`)
|
||||
|
||||
Reference in New Issue
Block a user