You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The graphify opencode plugin uses the v1 plugin API. Opencode v2 has a new API and a migration guide available.
Implementation
Both v1 and v2 plugins can be installed side-by-side. The v2 plugin must be installed in the .opencode/plugins (plural) folder (only read by v2), whereas v1 stays in .opencode/plugin. Alternatively, opencode 1.18.29+ / v2 also support dual-entrypoint plugins.
Reacted by Evgeniy Fitsner, gonaik, あめ, BlueOre, Mhmdrz_a, Eduardo Vicente, Sai and Ned Letcher
Hit the same on opencode 2.0.4 (macOS, graphifyy 0.9.61 installed via uv).
Repro: after graphify opencode install, the generated .opencode/plugins/graphify.js fails at every startup, the hook never fires:
failed to load plugin target=.../graphify.js cause="...PluginModule.LoadError: Plugin must export a default definition with an id and an effect or setup function..."
So for v2 users the opencode integration is currently dead on arrival.
What works for me — same reminder behavior rewritten for the v2 API:
exportdefault{id: "graphify-hook",setup: async({ tool })=>{tool.hook("execute.before",async(event)=>{// same reminder logic as the v1 plugin});},};
Loads clean, shows up in plugin list with its id. One caveat I could not fully verify: inside the 2.0.4 binary I only found tool.hook("execute.after") in use, so I am not 100% sure "execute.before" actually fires at runtime — registration does not error, but I have no observable proof the reminder gets injected. Would be great if the official v2 plugin could confirm this.
Happy to test a preview build.
Reacted by Jérémie Horhant, George Benjamin-Schonberger and gonaik
Since the Graphify plugin for OpenCode merely outputs [graphify] knowledge graph at graphify-out/. For focused questions, run graphify query with your question (scoped subgraph, usually much smaller than GRAPH_REPORT.md) instead of grepping raw files. Read GRAPH_REPORT.md only for broad architecture context., it seems to work without any issues as long as you have AGENTS.md and skills, even without the plugin.
Fixed in 0.9.84 (now on PyPI). The OpenCode plugin now ships as a default export with a setup() hook so it loads on OpenCode 2, while keeping the v1 server() hook for older OpenCode. graphify install also refreshes an already-installed v1-only copy. Landed via #4039 (thanks @bercedev). Thanks for raising it, @johannespfrang-h-d.
Activity
CBEPX commentedon Sep 16, 2026
Hit the same on opencode 2.0.4 (macOS, graphifyy 0.9.61 installed via uv).
Repro: after
graphify opencode install, the generated.opencode/plugins/graphify.jsfails at every startup, the hook never fires:failed to load plugin target=.../graphify.js cause="...PluginModule.LoadError: Plugin must export a default definition with an id and an effect or setup function..."So for v2 users the opencode integration is currently dead on arrival.
What works for me — same reminder behavior rewritten for the v2 API:
Loads clean, shows up in
plugin listwith its id. One caveat I could not fully verify: inside the 2.0.4 binary I only foundtool.hook("execute.after")in use, so I am not 100% sure "execute.before" actually fires at runtime — registration does not error, but I have no observable proof the reminder gets injected. Would be great if the official v2 plugin could confirm this.Happy to test a preview build.
Svashtar commentedon Sep 17, 2026
Have same problem here.
yukoba commentedon Sep 20, 2026
Since the Graphify plugin for OpenCode merely outputs
[graphify] knowledge graph at graphify-out/. For focused questions, run graphify query with your question (scoped subgraph, usually much smaller than GRAPH_REPORT.md) instead of grepping raw files. Read GRAPH_REPORT.md only for broad architecture context., it seems to work without any issues as long as you haveAGENTS.mdandskills, even without the plugin.fix(opencode): load the plugin on OpenCode 2 and refresh installed co…
fix(opencode): load the plugin on OpenCode 2 and refresh installed co…
fix(opencode): load the plugin on OpenCode 2 and refresh installed co…
fix(opencode): emit dual v1+v2 plugin and register it with a file:// URI
fix(opencode): load the plugin on OpenCode 2 and refresh installed co…
safishamsi commentedon Oct 10, 2026
Fixed in 0.9.84 (now on PyPI). The OpenCode plugin now ships as a default export with a
setup()hook so it loads on OpenCode 2, while keeping the v1server()hook for older OpenCode.graphify installalso refreshes an already-installed v1-only copy. Landed via #4039 (thanks @bercedev). Thanks for raising it, @johannespfrang-h-d.