Expand description
OpenCode-specific rendering of session-start context.
OpenCode exposes discoverable skills through the skill tool description as
<available_skills> XML, and loads them from .opencode/skills/. This
adapter mirrors that native presentation so eval dispatches feel like a real
OpenCode session rather than an eval-specific bulletin.
Functions§
- render_
opencode_ available_ skills_ block - Render the discoverable skills the way OpenCode surfaces them in the
skilltool description: an<available_skills>block with one<skill>element per skill containing<name>and<description>. Returns an empty string when no skills are staged. - render_
opencode_ plan_ mode_ context - Render an OpenCode plan-mode profile as an operating-context reminder. The
real OpenCode plan agent is a primary agent mode, not text, so this is the
portable approximation: a
<system-reminder>the dispatch reads.