Expand description
re-ghidra-agy-hook — the plugin’s PreInvocation preflight.
The four ways this plugin fails to start are all environmental: no
GHIDRA_INSTALL_DIR, a directory that is not actually a Ghidra root, a JDK
older than 21, and an unconfigured project. Without this hook each of them
surfaces only on the first tool call, as an error from inside a JVM that
never booted.
Two rules govern what it may do:
- Silent when healthy. It runs on every session start, so a clean environment must produce no output at all. Anything else is noise the user reads once and then learns to ignore.
- Never blocks. It always exits 0. A preflight that can stop a session is worse than the problem it reports — the user may not even intend to touch Ghidra this session.