Skip to content

v1.7.21

Choose a tag to compare

@Alan-TheGentleman Alan-TheGentleman released this 25 Mar 01:00

v1.7.21 — Per-Agent Model Routing in OpenCode

Changes

Sub-agents now run on their configured model — The background-agents plugin previously passed only the agent parameter to session.prompt(), which didn't apply the target agent's model config. Sub-agents always inherited the orchestrator's model.

Now resolveAgentModel() reads the agent's model field from opencode.json and passes it as { providerID, modelID } to session.prompt(). If you configure sdd-spec with Opus and sdd-explore with Sonnet, each phase will actually use its assigned model.

Parity with agent-teams-lite 67eb832.

Reported by community member Bismarck Cerda.

Full changelog: v1.7.20...v1.7.21