Architecture of morluto/rea
morluto/rea is 7,098 source files holding 41,746 symbols across 9 modules, written mainly in TypeScript, JavaScript, Python. The largest module is src, with 3,839 files, and 6 files are entry points into the dependency graph.
How rea fits together
Input arrives either through MCP, which an agent uses, or through CLI commands that run the same workflows. The src/cli.ts file implements the rea command line, and the src directory builds the command instance and decides how each result is printed. External reverse-engineering tools such as Ghidra, jadx, GDB and mitmproxy run as separate processes from the bridge directory, which can be driven from outside. src/ghidra/GhidraProviderClient.ts is a central file for the Ghidra integration. The scripts directory holds verifiers that run the packaged product or native analysis tools and fail when the results are wrong. Findings go back to the agent with their evidence, and the agent uses them to answer questions or write and test an implementation.
Largest modules
- src: 3,839 files and 955,831 lines of code
- tests: 2,143 files and 581,322 lines of code
- scripts: 511 files and 90,118 lines of code
- bridge: 38 files and 13,392 lines of code
- website: 17 files and 1,129 lines of code
- native: 6 files and 2,003 lines of code
- root: 6 files and 671 lines of code
- .github: 2 files and 90 lines of code
Languages
By file count: TypeScript 5,967 files, JavaScript 456 files, Python 55 files, Java 29 files, C 25 files, Swift 18 files.
Documentation
Repowise documents rea in 4,039 pages generated from the source, 22 of them written explanations of the repository and its modules. Module guides include:
- src/contracts: Analysis Result Contracts
- src/application: Application
- src/process: Bounded Process Primitives
- src/browser/history: Browser History and Execution
- src/browser: Browser Session Startup
- src/cli: CLI Command Surface
More on rea: summary and FAQ, codebase overview, code health.