Architecture of volcengine/openviking
volcengine/openviking is 2,522 source files holding 31,763 symbols across 15 modules, written mainly in Python, C++, TypeScript. The largest module is tests, with 569 files, and 183 files are entry points into the dependency graph.
How openviking fits together
The openviking directory holds the main Python package, which organizes and stores agent context. openviking/storage/viking_fs.py implements the storage layer that keeps context as files and directories. openviking/session/session.py handles conversation sessions, compressing content and extracting long-term memory from them. crates/ov_cli/src/main.rs is the entry point of the Rust CLI, which connects to a running server through its configured URL. bot/vikingbot/__main__.py starts VikingBot, an agent framework built on top of OpenViking, and it can run alongside the server.
Largest modules
- tests: 569 files and 96,327 lines of code
- openviking: 552 files and 109,518 lines of code
- third_party: 335 files and 61,146 lines of code
- bot: 201 files and 37,256 lines of code
- examples: 197 files and 55,308 lines of code
- docs: 151 files and 38,366 lines of code
- web-studio: 143 files and 24,496 lines of code
- benchmark: 109 files and 30,978 lines of code
Languages
By file count: Python 1,335 files, C++ 386 files, TypeScript 178 files, Rust 88 files, Shell 50 files, JavaScript 33 files.
More on openviking: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos