build OpenCode version ,review pls~
Hi Garry,
I’m a strong OpenCode user, and I’ve been studying gstack closely. I think the project is genuinely valuable because it turns planning, review, QA, design review, and release preparation into a much more industrialized AI workflow, instead of just a loose collection of prompts.
One thing I noticed is that the original project is mainly built around Claude Code, which makes it hard for people in other environments to adopt the same workflow approach. That was the main reason I started this work: I wanted to make the core gstack workflow ideas usable for OpenCode users as well.
So I adapted it into an OpenCode version and tried to preserve the original workflow intent as much as possible, while rebuilding the active command surface, docs, validation, and release flow around OpenCode + GPT-5.4.
It’s now published here:
https://github.com/VanGoghBuilder/gstack-opencode
Release:
https://github.com/VanGoghBuilder/gstack-opencode/releases/tag/v0.3.3
If you have time, I’d really appreciate it if you could take a look and share any feedback. I’d especially love to know whether you think the adaptation still preserves the spirit of the original project.
Thanks for sharing this — this kind of OpenCode demand signal is a big part of why I opened RFC #289 in the first place.
I now have PR #364 open as the phase-1 host integration contract tranche: https://github.com/garrytan/gstack/pull/364
It does not add an OpenCode adapter yet. The intent is to land the install/discovery/runtime boundary first so OpenCode can validate a cleaner shared contract in a later phase, instead of landing as another one-off compatibility branch. Your repo is still very useful evidence that this is worth doing.
Thank you for the effort and for sharing !
@16francej Please close this issue as resolved. Native OpenCode host support shipped in #793, so the requested OpenCode build and integration are already available on current main.
PR #793 adds plumbing but not a fix
PR #793 (merged Apr 2026) created the declarative host config system (defineHost, HostConfig, toolRewrites) and registered OpenCode as a host. That is real progress — but the generated OpenCode skills still contain Claude-specific content that does not work in OpenCode:
AskUserQuestion— the preamble and ~15 resolvers still instruct the agent to use this Claude Code native tool. OpenCode usesquestion. ThetoolRewritesfield only does string replacement in prose; it does not reach the preamble bash or the## AskUserQuestion Formatsection.CLAUDE_PLAN_FILE— the preamble checks this env var for plan mode detection. Dead code for OpenCode..claude.json— gbrain MCP detection reads from~/.claude.json. Should read~/.config/opencode/opencode.jsonc..claude/skills/gstack— vendored detection checks.claude/skills/gstack, not.opencode/skills/gstack.MODEL_OVERLAY: claude— defaults to the Claude behavioral overlay. Noopencode.mdexists.ExitPlanMode— referenced in plan-mode instructions. Not available in OpenCode.
The root cause is that the resolvers (generate-preamble-bash.ts, generate-ask-user-format.ts, generate-completion-status.ts, model-overlay.ts) are not parameterized by host. PR #793 gave us the HostConfig interface to store per-host overrides, but the resolvers were not updated to consume them for tool names, config paths, plan mode detection, or model selection.
This is the same gap reported on Codex (#1066, #2274) and Hermes (#2015). See also #2626 for the full audit of what remains broken.
Recommendation: Keep #314 open until the resolvers are host-aware, not just the config layer.
OpenCode host support shipped in #793. Run ./setup --host opencode. Closing, thanks!