From e1864d79c8e6dc4f493333c27f7b254e2ed27a2c Mon Sep 17 00:00:00 2001 From: Safi Date: Thu, 9 Apr 2026 08:56:44 +0100 Subject: [PATCH] Update README for OpenCode tool.execute.before plugin Co-Authored-By: Claude Sonnet 4.6 --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7b758a26..3b3f6489 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,9 @@ After building a graph, run this once in your project: **Codex** writes to `AGENTS.md` and also installs a **PreToolUse hook** in `.codex/hooks.json` that fires before every Bash tool call — same always-on mechanism as Claude Code. -**OpenCode, OpenClaw, Factory Droid, Trae** write the same rules to `AGENTS.md` in your project root. These platforms don't support PreToolUse hooks, so AGENTS.md is the always-on mechanism. +**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. + +**OpenClaw, Factory Droid, Trae** write the same rules to `AGENTS.md` in your project root. These platforms don't support tool hooks, so AGENTS.md is the always-on mechanism. Uninstall with the matching uninstall command (e.g. `graphify claude uninstall`). @@ -201,7 +203,7 @@ graphify hook status graphify claude install # CLAUDE.md + PreToolUse hook (Claude Code) graphify claude uninstall graphify codex install # AGENTS.md (Codex) -graphify opencode install # AGENTS.md (OpenCode) +graphify opencode install # AGENTS.md + tool.execute.before plugin (OpenCode) graphify claw install # AGENTS.md (OpenClaw) graphify droid install # AGENTS.md (Factory Droid) graphify trae install # AGENTS.md (Trae)