RHEXA

Operation

Development status: RHEXA is not yet published as a package. It is installed from source. The command and the MCP server are called rhexa.

Updating

cd rhexa
git pull
npm ci
npm run build:cached
rhexa engine install   # newer engine version, if published

Restart your agent after an update so that it loads the new MCP server.

Resources

Saving tokens

With RHEXA_MCP_RESULT_TEXT_PROFILE=compact in the env entry of the MCP registration, RHEXA delivers results to the agent more compactly: without the duplicate copy of the result and without the analysis profile repeated in every response. Every omission is named in text_delivery; the session keeps the complete evidence, and get_evidence_bundle returns it unchanged. In the task benchmark this cut token use by 15.7%. rhexa setup adds the setting for Claude Code automatically and keeps a value that is already set. For other clients it is optional, because tools that read evidence directly from responses need the complete format.

Saving snapshots and evidence

The results of a session can be saved as a snapshot file when it is closed and loaded later; evidence can be exported and imported. See the user manual.

Troubleshooting

SymptomCause and remedy
rhexa doctor does not report the engineRun rhexa engine install; rhexa engine status shows the engine in use. A set GHIDRA_INSTALL_DIR takes precedence and must point to a directory containing Ghidra/application.properties.
JDK is rejectedThe engine requires a full 64-bit JDK 25; a JRE or Java 21 is not enough. Check JAVA_HOME.
Agent shows no RHEXA toolsCheck the registration (claude mcp list) and the path to scripts/rhexa.mjs, then restart the agent.
Error target_unavailableNo target is open; call open_binary with the path first.
Error capability_unavailableThe tool needs an optional program (for example Rizin) or does not support the target; use another tool.
Engine build stops in :Base:ipAfter a test run, log files named like ${sys:logFilename} remain in the source tree: find engine -name '${sys:*' -delete.

Security

Uninstalling

claude mcp remove rhexa
npm unlink -g rhexa-agents
rm -rf ~/opt/rhexaengine_12.1.4_DEV