Architecture of morluto/rea
morluto/rea is 8,691 source files holding 52,180 symbols across 9 modules, written mainly in TypeScript, JavaScript, Python. The largest module is src, with 4,600 files, and 7 files are entry points into the dependency graph.
How rea fits together
An agent calls rea through the MCP server, and the same workflows are also available as CLI commands. The entry points include src/cli.ts, src/main.ts and scripts/rea.mjs. src/server/serviceToolBindings.ts is one of the hotspot files in the server code, where tools are bound for agents to call. The src directory runs the adb command-line tool against Android devices and reads back its output. The bridge directory exposes NativeAOT type metadata to the Java and Swift sides, and a Ghidra extension loads it through a descriptor and calls its analyze method with the open program. The scripts directory holds checks for the packaged CLI and its integrations, and the website directory holds the public documentation site.
Largest modules
- src: 4,600 files and 1,241,722 lines of code
- tests: 2,453 files and 678,950 lines of code
- scripts: 593 files and 101,555 lines of code
- bridge: 45 files and 15,508 lines of code
- website: 17 files and 1,154 lines of code
- native: 6 files and 2,012 lines of code
- root: 6 files and 718 lines of code
- .github: 2 files and 99 lines of code
Languages
By file count: TypeScript 7,070 files, JavaScript 506 files, Python 54 files, Java 32 files, C 29 files, Swift 18 files.
Documentation
Repowise documents rea in 4,691 pages generated from the source, 21 of them written explanations of the repository and its modules. Module guides include:
- src/contracts: Advertised Tool Contract Schemas
- src: Android Debug Bridge Operations
- src/application: Application
- src/process: Bounded Process Output Handling
- src/browser: Browser
- src/browser/history: Browser Capture History Redaction
More on rea: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos