Skip to content

feat: model routing config for cost-optimized agent spawning - #12

Merged
tu11aa merged 1 commit into
developfrom
feature/model-routing
Apr 7, 2026
Merged

feat: model routing config for cost-optimized agent spawning#12
tu11aa merged 1 commit into
developfrom
feature/model-routing

Conversation

@tu11aa

@tu11aa tu11aa commented Apr 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds ModelRoutingConfig to cockpit config with per-role model assignments (command=opus, captain=opus, crew=sonnet, reactor=sonnet, exploration=haiku, review=opus)
  • launch.ts passes --model flag when building claude CLI commands
  • spawn-workspace.sh reads model config and applies the same flag
  • Captain-ops skill updated with model-aware Agent() examples for crew/review/exploration

Test plan

  • npm run build passes cleanly
  • Existing configs without models field continue to work (backward compat)
  • cockpit launch generates claude commands with --model flag
  • Captain Agent() spawning examples include model parameter

Closes #2

Routes different roles to appropriate Claude models:
- Command/Captain: Opus (coordination + planning)
- Crew/Reactor: Sonnet (execution)
- Exploration: Haiku (cheap lookups)
- Review: Opus (quality matters)

Config is optional — existing installs without `models` field
continue working with session defaults.

Closes #2
@tu11aa
tu11aa merged commit 84c51f4 into develop Apr 7, 2026
@tu11aa
tu11aa deleted the feature/model-routing branch April 7, 2026 08:18
@tu11aa tu11aa mentioned this pull request May 5, 2026
2 tasks
@tu11aa tu11aa mentioned this pull request May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Model Routing Config

1 participant