How fxagro/rea works
REA is a local reverse-engineering toolkit exposed through an MCP server and CLI. The main workflow is an agent or terminal user requesting an investigation, REA dispatching analysis to target-specific tooling, and returning findings with evidence and limitations. Its documented scope spans native binaries, managed and mobile applications, JavaScript/Electron, websites, and runtime behavior. The graph preserves those capability branches and the shared provider/evidence layers; several connections are documented at product level because the sampled source does not show all runtime wiring.
Main entry points: application Investigation workflows · main.ts MCP server · evidence.ts Evidence model · cli CLI workflows
Components 20
Entry points
- MCP server
src/main.ts - CLI workflows
src/cli - Analysis tools
src/server
Analysis orchestration
- Investigation workflows
src/application - Provider contract
src/application/AnalysisProvider.ts - Binary sessions
src/application/binary
Target analysis
- Native providers
src/ghidra/GhidraProviderClient.ts - Debugger sessions
src/gdb/GdbSessionManager.ts - Reverse commands
src/application/reverse/ReverseEngineeringService.ts - JavaScript analysis
src/javascript/analysis/JavaScriptAnalysisWorker.ts - Browser analysis
src/browser - Android analysis
src/android - Tool bridges
bridge
Evidence and runtime
- Evidence model
src/domain/evidence.ts - Error projections
src/domain/analysisErrorProjection.ts - Process supervision
src/process/ProviderProcess.ts - SQLite inspection
src/sqlite/SqliteDatabaseInspection.ts
Other components
- Agent
- Terminal user
- Local target
Connections 21
- Agent → MCP server: requests analysis
README.md - Terminal user → CLI workflows: runs workflows
README.md - MCP server → Analysis tools: exposes tools
src/main.ts - CLI workflows → Investigation workflows: uses workflows
README.md - MCP server → Investigation workflows: dispatches investigations
- Investigation workflows → Provider contract: selects providers
src/application/AnalysisProvider.ts - Provider contract → Binary sessions: opens sessions
- Binary sessions → Native providers: uses analysis engines
- Investigation workflows → Reverse commands: runs reverse commands
src/cli/reverseEngineeringCommands.ts - Investigation workflows → JavaScript analysis: analyzes applications
- Investigation workflows → Browser analysis: observes browser behavior
- Investigation workflows → Android analysis: inspects Android
- Android analysis → Tool bridges: uses bridges
- Native providers → Evidence model: returns findings
src/ghidra/GhidraProviderClient.ts - Debugger sessions → Process supervision: supervises processes
src/gdb/GdbSessionManager.ts - Reverse commands → Process supervision: runs owned commands
src/application/reverse/ReverseEngineeringService.ts - Investigation workflows → Evidence model: builds evidence
src/application/reverse/ReverseEngineeringService.ts - Investigation workflows → Error projections: projects failures
- Investigation workflows → SQLite inspection: inspects databases
- Investigation workflows → Local target: inspects locally
README.md - Evidence model → Agent: returns findings
README.md