REA timeout notes (unofficial)
Timeout bugs feel like “REA is broken” when the real story is two clocks: the agent’s wait and the provider’s work. REA setup writes startup/tool allowances into client registrations and honors several env overrides.
Mental model
| Clock | Who owns it | Symptom when too low |
|---|---|---|
| Startup | MCP registration / env | Provider never becomes ready |
| Tool call | Agent client (toolTimeoutMs / tool_timeout_sec) | Agent aborts; Ghidra/Hopper may still run |
| Engine-specific | e.g. REA_JADX_OPERATION_TIMEOUT_MS | Long JADX ops truncated unless client wait covers them |
Useful knobs (names from upstream)
REA_GHIDRA_STARTUP_TIMEOUT_MSREA_HOPPER_STARTUP_TIMEOUT_MSREA_JEB_MCP_TIMEOUT_MS(when using caller-started JEB MCP)REA_JADX_OPERATION_TIMEOUT_MS
Edit positive timeout fields already present in the rea MCP entry when your client stores them; setup/doctor preserve valid caller-selected values per docs.
Recovery sketch
Agent timed out; provider CPU still busyFix: Do not kill Ghidra mid-analysis unless you intend to. Raise tool timeout, wait, then re-issue a smaller query (function/decompile) with --json.
Doctor healthy but first analyze always dies at ~30sFix: Check whether the client still has a 30s tool timeout. Derived allowances for Ghidra are much larger once startup headroom is included — confirm the live registration JSON.
Related
RepoRead is unofficial. Prefer client-configuration.md for per-client field names.
FAQ
Why did my agent stop while Ghidra still works?
CLI docs note a client timeout can end its wait while the provider continues analyzing. Raise the client tool timeout or wait for the provider, then re-query.
What env vars affect Ghidra/Hopper startup?
REA_GHIDRA_STARTUP_TIMEOUT_MS and REA_HOPPER_STARTUP_TIMEOUT_MS are documented for startup allowances.
What defaults does setup write for Codex-like clients?
Docs mention startup_timeout_sec = 30 with tool_timeout_sec derived from known provider startup plus operation headroom (exact numbers vary by client).
Does JADX have its own knob?
REA_JADX_OPERATION_TIMEOUT_MS is forwarded with JADX registration but may not contribute to derived tool timeouts — raise toolTimeoutMs / tool_timeout_sec to cover longer JADX work.
Version checked?
rea-agents 6.7.0, re-checked 2026-10-24.