Skip to main content

Module opencode_session

Module opencode_session 

Source
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 skill tool 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.