+Operator proposed adding agent keys for OpenCode and invoking with @, believing subagents should reach more harnesses than Claude. Tested rather than assumed, and it works. Definitions are read in all three documented forms -- opencode.json 'agent' key, .opencode/agents/*.md, and .opencode/agent/*.md -- all three appeared in 'opencode agent list' as (subagent). Dispatch works too: 'opencode run' with a task-tool delegation returned the subagent's reply, and the session table shows a genuine CHILD session with parent_id set, its own cost (0.0239) and tokens (9510/8), and the CUSTOM agent name in the agent column. Structurally identical to arm A's 13 @general rows but with a named custom agent. Upstream anomalyco/opencode#29616, which I cited in gh-493 as a narrower real limitation, is STALE -- filed 2026-05-27 and fixed by the installed 1.18.31. So my caveat in that issue was wrong too, and I have corrected it there with the transcript. Consequence: subagent-dispatch/opencode: absent is simply wrong; both halves of the surface work. OpenCode agents also accept a model: field, so per-phase model tiering -- what fr models exists for -- is reachable, not only context isolation. Implementation is small and rides sync-opencode.py's existing mirroring, but needs a frontmatter translation (name -> filename, tools -> permission, add mode: subagent) AND a correction to fr-goal SKILL.md:91, without which the skill still instructs inline execution however many agents are defined.
0 commit comments