Files
everyinc__compound-engineer…/tests/opencode-writer.test.ts
Trevin Chow bf19bac0a4 fix(converters): OpenCode subagent model and FQ agent name resolution (#477)
Two fixes for OpenCode compatibility:

1. Omit model field on subagents so they inherit from the parent session.
   Writing an explicit provider-prefixed model (e.g. anthropic/claude-haiku-4-5)
   causes ProviderModelNotFoundError when the user's OpenCode env uses a
   different provider.

2. Rewrite fully-qualified agent names in skill markdown during conversion.
   OpenCode resolves agents by flat filename, so 3-segment references like
   compound-engineering:review:coherence-reviewer must become coherence-reviewer.
   2-segment skill references are preserved. The transform applies to all .md
   files in skill directories (SKILL.md + references) via a new
   transformAllMarkdown flag on copySkillDir.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 15:52:52 -07:00

14 KiB