graphify icon indicating copy to clipboard operation
graphify copied to clipboard

Opencode installation does not install plugin as documented

Open timothyclin opened this issue 7 months ago • 7 comments

After running graphify install --platform opencode, and restarting opencode, the /graphify command shows up fine and /graphify . The command seems to parse and create the graphify-out directory with processed graph files.

However, when I ask the agent even the simplest questions about the code base, it does not utilize Graphify at all.

Per documentation, "OpenCode writes to AGENTS.md and also installs a tool.execute.before plugin (.opencode/plugins/graphify.js + opencode.json registration) that fires before bash tool calls and injects the graph reminder into tool output when the graph exists."

However, on my Mac, I do not see any evidence of plugins being installed either in ~/.config/opencode/plugins or {repo}/.opencode/plugins.

timothyclin avatar Apr 14 '26 22:04 timothyclin

Implemented in v0.4.14.

pip install --upgrade graphifyy

safishamsi avatar Apr 14 '26 23:04 safishamsi

It may work well for new installed v0.4.14 user; but old cache and config may pollute the new version. In my opencode setup, I am still facing this issue and how to do full reset wit v0.4.14? @safishamsi

allanchan339 avatar Apr 16 '26 09:04 allanchan339

To do a full reset:

  1. Uninstall the current setup:
graphify opencode uninstall
  1. Clear the cache and manifest (stale entries from old versions can cause confusion):
rm -rf graphify-out/cache graphify-out/.graphify_manifest.json
  1. Reinstall:
pip install --upgrade graphifyy
graphify opencode install
  1. Restart OpenCode and re-run /graphify . in your project.

The plugin files should appear at .opencode/plugins/graphify.js and .opencode/opencode.json in your project root after step 3. If they are still missing after that, paste the output of graphify opencode install here and we can debug further.

safishamsi avatar Apr 16 '26 09:04 safishamsi

To do a full reset:

  1. Uninstall the current setup:

graphify opencode uninstall 2. Clear the cache and manifest (stale entries from old versions can cause confusion):

rm -rf graphify-out/cache graphify-out/.graphify_manifest.json 3. Reinstall:

pip install --upgrade graphifyy graphify opencode install 4. Restart OpenCode and re-run /graphify . in your project.

The plugin files should appear at .opencode/plugins/graphify.js and .opencode/opencode.json in your project root after step 3. If they are still missing after that, paste the output of graphify opencode install here and we can debug further.

Image

After all of the work above. Now the commands is missing from opencode.

allanchan339 avatar Apr 16 '26 10:04 allanchan339

To do a full reset:

  1. Uninstall the current setup:

graphify opencode uninstall 2. Clear the cache and manifest (stale entries from old versions can cause confusion): rm -rf graphify-out/cache graphify-out/.graphify_manifest.json 3. Reinstall: pip install --upgrade graphifyy graphify opencode install 4. Restart OpenCode and re-run /graphify . in your project. The plugin files should appear at .opencode/plugins/graphify.js and .opencode/opencode.json in your project root after step 3. If they are still missing after that, paste the output of graphify opencode install here and we can debug further.

Image

After all of the work above. Now the commands is missing from opencode.

As in today this is still the behavior. However, even though the commands are missing, it can be executed successfully.

louie337 avatar May 03 '26 05:05 louie337

yeah opencode behavior is very weird compared to ClaudeCode In CC it installs a skill instead of this weird plugin, why not do the same in opencode?

jeroenev avatar May 04 '26 10:05 jeroenev

It seems like opencode is essentially not supported at all beyond the agent skill? The plugin simply provides a reminder to run graphify and it modifies AGENT.md to do the same. However, I see nothing for using opencode go as my backend for graph generation and it doesn't actually come with any tools, so I cant use it for question answering either.

croots avatar Jun 06 '26 23:06 croots