Claude Code does two things: writes a CLAUDE.md section telling Claude to read graphify-out/GRAPH_REPORT.md before answering architecture questions, and installs a PreToolUse hook (settings.json) that fires before every Glob and Grep call. ...
Codex, OpenCode, OpenClaw, Factory Droid 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.
I'm pretty sure this can be done via OpenCode's plugins system.
See:
I think this can even be scoped to just the Glob and Grep calls in OpenCode via a opencode.json file.
I'm pretty sure this can be done via OpenCode's plugins system.
See:
tool.execute.beforeevent.I think this can even be scoped to just the Glob and Grep calls in OpenCode via a opencode.json file.