How amr-ahmed0/rea works
REA is a local reverse-engineering toolkit exposed through MCP and the CLI. An agent or terminal user requests an investigation; REA dispatches analysis across native binaries, application/runtime behavior, and specialized targets, then returns findings with evidence and limitations. The graph preserves README-described capabilities even where their implementation was not sampled. Source-index references support only the shown wiring; broader capability links are documented in the README, not verified call paths.
Main entry points: ReverseEngineeringService.ts Reverse analysis · main.ts MCP server · reverseEngineeringCommands.ts CLI commands · registerReverseEngineeringTools.ts Tool registration
Components 17
Entry points
- MCP server
src/main.ts - CLI commands
src/cli/reverseEngineeringCommands.ts - Tool registration
src/server/registerReverseEngineeringTools.ts
Analysis workflows
- Reverse analysis
src/application/reverse/ReverseEngineeringService.ts - JavaScript analysis
src/javascript/analysis/JavaScriptAnalysisWorker.ts - Browser observation
src/application/BrowserObservationService.ts - Web analysis
src/application/WebRuntimeService.ts - Android analysis
src/android/JadxProvider.ts
Analysis engines
- Ghidra adapter
src/ghidra/GhidraProviderClient.ts - Hopper adapter
src/hopper/HopperClient.ts - IDA adapter
src/ida/IdaSessionClient.ts - Debug sessions
src/gdb/GdbSessionManager.ts - Process supervision
src/process/ProviderProcess.ts
Evidence and results
- Evidence records
src/domain/evidence.ts - Result projection
src/domain/analysisErrorProjection.ts
Other components
- AI agent
- Terminal user
Connections 18
- AI agent → MCP server: calls through MCP
README.md - Terminal user → CLI commands: runs commands
README.md - MCP server → Tool registration: registers tools
- Tool registration → Reverse analysis: invokes
src/server/registerReverseEngineeringTools.ts - CLI commands → Reverse analysis: invokes
src/cli/reverseEngineeringCommands.ts - MCP server → Reverse analysis: requests analysis
- MCP server → JavaScript analysis: offers analysis
README.md - MCP server → Browser observation: offers observation
README.md - MCP server → Web analysis: offers analysis
README.md - MCP server → Android analysis: offers analysis
- Reverse analysis → Ghidra adapter: uses provider
- Reverse analysis → Hopper adapter: uses provider
- Reverse analysis → IDA adapter: uses provider
- Reverse analysis → Debug sessions: supports sessions
- Reverse analysis → Process supervision: supervises processes
src/application/reverse/ReverseEngineeringService.ts - AI agent → Evidence records: receives findings
README.md - Reverse analysis → Evidence records: returns evidence
src/application/reverse/ReverseEngineeringService.ts - Result projection → AI agent: projects errors