REA doctor deep dive (unofficial)
rea doctor is REA's read-only readiness tool. In the 6.5.x line it inspects host prerequisites, agent MCP registrations, the bundled skill and optional analysis engines without changing them. Use it before filing issues or after setup/update.
Quick commands
rea doctor --json
rea doctor --provider ghidra --json
rea doctor --client codex --json
rea doctor --skill --json
Scoped reports set scope.mode to "explicit". Upstream says scope_checks decide healthy and the exit status for that run; other findings land in informational_checks, while environment_healthy summarizes the full audit.
Full vs scoped
| Goal | Command pattern |
|---|---|
| Broad host + registrations audit | rea doctor --json |
| One engine | rea doctor --provider ghidra --json |
| One agent client | rea doctor --client <id> --json |
| Bundled skill copies | rea doctor --skill --json |
| Static JS without engines | Run rea analyze-javascript-application PATH --json directly (per installation.md table) |
How to read a failure
- Confirm you are on a supported Node line (22.19+, 24.11+ or 26+ per README — Windows Ghidra P0 docs list tighter floors; follow the guide for your host).
- Re-run scoped to the thing you care about so unrelated clients do not drown the signal.
- Fix the named prerequisite (JDK path,
GHIDRA_INSTALL_DIR, missingpson Linux, etc.). - Only then re-run setup if registrations need refresh.
doctor reports unhealthy but JS analysis worksFix: Scoped to what you use. Unscoped audits include optional engines and every detected client.
provider_unavailable after doctor --provider ghidraFix: Set absolute GHIDRA_INSTALL_DIR and a matching 64-bit JDK, then re-run the scoped doctor. See the Ghidra setup guide.
Related
RepoRead is independent of the REA maintainers. Authorized targets only.
FAQ
Does doctor change my machine?
No. Upstream documents doctor as a read-only audit of host prerequisites and agent configuration.
Why is healthy false when my workflow works?
An unscoped doctor audits every detected registration, skill and optional engines. Overall healthy can be false while your chosen scoped workflow is fine — use --provider / --client / --skill.
How do I check only Ghidra?
rea doctor --provider ghidra --json (or hopper / ida as documented).
How do I check Codex registration?
rea doctor --client codex --json (see upstream client IDs).
Is this the official doc?
No. RepoRead is unofficial. Prefer docs/installation.md when anything disagrees.