Architecture of backnotprop/plannotator
backnotprop/plannotator is 2,605 source files holding 19,672 symbols across 6 modules, written mainly in TypeScript, Shell, JavaScript. The largest module is packages, with 1,756 files, and 15 files are entry points into the dependency graph.
How plannotator fits together
Agent plans, messages, diffs and remote pull requests enter through entry points such as apps/hook/server/cli.ts, which serves the hook integration, and apps/opencode-plugin/server.ts and apps/pi-extension/server.ts, which serve the OpenCode and Pi integrations. The annotation interfaces are React components under packages, where packages/editor/App.tsx and packages/review-editor/App.tsx are the top-level components of the editor and review editor. packages/server/inbox.ts holds the server logic for the inbox, and packages/inbox/components/Thread.tsx contains the thread component of the inbox interface. The apps/guides-show directory builds the read-only viewer bundle through apps/guides-show/viewer/main.tsx and serves shared guide routes from a Worker. The output is annotated review artifacts, such as comments, feedback drafts and exported feedback in markdown, which go back to the agent.
Largest modules
- packages: 1,756 files and 346,872 lines of code
- apps: 350 files and 73,743 lines of code
- tests: 99 files and 20,106 lines of code
- scripts: 25 files and 8,632 lines of code
- build: 3 files and 63 lines of code
- bin: 1 file and 19 lines of code
Languages
By file count: TypeScript 2,180 files, Shell 33 files, JavaScript 16 files, Python 2 files, Dockerfile 1 file.
Documentation
Repowise documents plannotator in 2,009 pages generated from the source, 48 of them written explanations of the repository and its modules. Module guides include:
- packages/ai: AI Session and Endpoints
- apps/amp-plugin: AMP Plugin Commands
- apps: Apps Packages (6)
- bin: Binary Launcher
More on plannotator: summary and FAQ, codebase overview, code health.