Architecture of alvinunreal/oh-my-opencode-slim
alvinunreal/oh-my-opencode-slim is 364 source files holding 1,925 symbols across 3 modules, written mainly in TypeScript, Rust, JavaScript. The largest module is src, with 290 files, and 38 files are entry points into the dependency graph.
How oh-my-opencode-slim fits together
Work enters through the plugin's main module in src/index.ts, which registers the agents and hooks with OpenCode. The Orchestrator plans the work and dispatches specialist agents as background tasks. The src/hooks/task-session-manager/index.ts file manages the sessions those background tasks run in. The src directory holds most of the code, and the scripts/generate-schema.ts script generates the configuration schema. The companion/src/main.rs entry point starts an optional Rust desktop window that shows which agents are active.
Largest modules
- src: 290 files and 67,970 lines of code
- docs: 30 files and 4,129 lines of code
- root: 13 files and 4,523 lines of code
- .github: 10 files and 484 lines of code
- companion: 9 files and 2,154 lines of code
- scripts: 6 files and 1,916 lines of code
- .agents: 2 files and 188 lines of code
- .out-of-scope: 2 files and 43 lines of code
Languages
By file count: TypeScript 249 files, Rust 8 files, JavaScript 1 file.
More on oh-my-opencode-slim: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos