Skip to content

v0.1.19 — per-call model override in subagent()

Choose a tag to compare

@andrea-tomassi andrea-tomassi released this 29 Aug 15:16
· 2 commits to main since this release

Per-call model override (#10)

The subagent tool now accepts an optional model parameter:

subagent({ agent: "deep-research", task: "...", model: "zai/glm-5.3-flash" })
  • Per-call: overrides the agent definition default for a single delegation — no need to fork .agent.md files for one cheap-model task
  • Fail-fast: malformed values (missing /) are rejected before any child spawn
  • E2E verified: child process events report the overridden model

Also:

  • README: crowd-favorites row for "model selection per subagent" (anomalyco/opencode#6651 👍71), roadmap updated
  • 8 new tests (125 total)