Skip to content

feat: per-agent OpenCode model configuration - #20

Merged
xeaser merged 6 commits into
mainfrom
feat/per-agent-models
Aug 25, 2026
Merged

xeaser merged 6 commits into
mainfrom
feat/per-agent-models

Conversation

@xeaser

@xeaser xeaser commented Aug 25, 2026

Copy link
Copy Markdown
Owner

Summary

Pin an OpenCode provider/model-id per Squad seat. team.md is the source of truth; recast writes model: onto host agent files.

  • Orchestrator model on the Coordinator (Squad) row
  • Optional Model column on members
  • Inheritance: member cell → Squad model → omit (session default)
  • cast --add --model, cast --model <name|squad> <id|->
  • Status shows effective model with (team) / (session)
  • squad.md is spliced only (coordinator body kept)
  • Does not write opencode.json model; no catalog or run --model

Dummy live

Verified on D:\xAI\squad-oc-dummy (not this clone). GET /config?directory=… returned agent.squad.model=xai/grok-3 and agent.michael.model=anthropic/claude-sonnet-4-5. Script: scripts/live-models.ps1.

Test plan

  • go test ./...
  • Dummy host files + OpenCode serve API
  • Reviewer: cast --model squad <provider/id> then status / recast / upgrade

xeaser added 6 commits August 25, 2026 19:06
Header-aware Members/Coordinator parse, TeamMember.Model, ParseSquadModel, ReadSquadModel, and EffectiveModel. Old 4-column team.md still works.
Status prints Model after host/preset and effective member models.
cast --add --model and cast --model name id recast after mutate.
@xeaser
xeaser merged commit 890ee78 into main Aug 25, 2026
10 checks passed
@xeaser
xeaser deleted the feat/per-agent-models branch August 25, 2026 14:45
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.

1 participant