Skip to content

Support OpenCode V2 as a HelixHarness host #2

Done

Description

@sudomarcma

Problem

HelixHarness currently ships Host Kits for Codex and Claude Code. OpenCode V2 users cannot use the Propose → Apply → Archive workflow without manually copying Markdown into .opencode/, and there is no native command, skill or subagent projection for OpenCode.

Proposal

Add OpenCode V2 as a first-class host:

  • a hosts/opencode/ Host Kit with manifest, command projection, runtime, subagent, UT, lifecycle, project config, project hooks and installer resources;
  • a native OpenCode plugin package that registers helix:<command>, helix-<skill> and helix-<agent> from the canonical commands/, skills/ and agents/ files;
  • Host Context injection plus $ARGUMENTS and path substitution, without copying business steps into the Host Kit;
  • native mappings for read, edit, shell, question, skill and subagent;
  • explicit telemetry=unsupported and plugin_update=unsupported declarations, with existing scripts returning unsupported_host / continue_silently;
  • AGENTS.md project entry and settings_file=null; project hooks remain unsupported rather than inventing an OpenCode settings contract.

Acceptance criteria

  • The nine public helix:* commands, eight method skills (helix-*) and HelixHarness subagent roles are registered from the installed package.
  • /helix:status admits a prompt containing canonical_host_id: opencode, the current plugin_root and repo_root.
  • /helix:init, /helix:propose, /helix:apply and /helix:archive can run in a disposable repository without copying canonical Markdown into .opencode/.
  • OpenCode telemetry/update checks return their declared unsupported behavior and do not block business work.
  • Python Host Kit tests, Bun unit/registration tests, type checking and a real OpenCode server E2E test pass.

Compatibility notes

  • Shared commands/, workflows and core workflow scripts stay unchanged; OpenCode differences live in the Host Kit and plugin package.
  • Workspace Apply RepoJobs use delegation_policy=may_delegate, so OpenCode needs experimental.subagent_depth of at least 2 for that flow.
  • The Claude d-d2c skill-scoped Stop / PreToolUse guards are not active on OpenCode; the adapter documents no-hook/--bare semantics.
  • Implementation: feat: add OpenCode V2 host support #1

Activity

  1. added
    enhancement
    on Nov 4, 2026
  2. self-assigned this
    on Nov 4, 2026
  3. ayochao commented on Nov 4, 2026

    @ayochao
    Collaborator

    感谢提出 OpenCode 适配方案,也感谢提交 PR #1。这条 Issue 保留用于跟踪支持范围和验收结果,具体代码问题集中在 PR 中讨论。

  4. acderone-maker commented on Nov 29, 2026

    @acderone-maker
    Collaborator

    HelixHarness now supports OpenCode V2! 🎉

    Sorry for the wait, and thank you for your patience and support. Please give it a try—we’d love to hear your feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions