The codeguard-reviewer subagent currently only emits for Claude and
Cursor (see AGENT_HOSTS in src/artifact_targets.py). OpenCode users
get the CodeGuard skill but not the reviewer agent.
Add a .opencode entry to AGENT_HOSTS so the converter emits
.opencode/agents/codeguard-reviewer.md. The emitted file needs
mode: subagent in its YAML frontmatter (per-host frontmatter is already
supported via the fm field), and the agent should read rule files from
.opencode/skills/software-security/rules/*.md (already populated by the
converter).
Open question: whether to set permission: {bash: deny} in the
frontmatter. The schema supports it, but if OpenCode routes its grep/glob
tools through bash, denying it breaks the agent's search step.
Test against a real OpenCode install:
Docs: https://opencode.ai/docs/agents/
The
codeguard-reviewersubagent currently only emits for Claude andCursor (see
AGENT_HOSTSinsrc/artifact_targets.py). OpenCode usersget the CodeGuard skill but not the reviewer agent.
Add a
.opencodeentry toAGENT_HOSTSso the converter emits.opencode/agents/codeguard-reviewer.md. The emitted file needsmode: subagentin its YAML frontmatter (per-host frontmatter is alreadysupported via the
fmfield), and the agent should read rule files from.opencode/skills/software-security/rules/*.md(already populated by theconverter).
Open question: whether to set
permission: {bash: deny}in thefrontmatter. The schema supports it, but if OpenCode routes its grep/glob
tools through bash, denying it breaks the agent's search step.
Test against a real OpenCode install:
Docs: https://opencode.ai/docs/agents/