Python SDK
HTTP API
Parameters
string
required
Viking URI (typically a directory, but can also be a file)
Response
string
Operation status (
ok on success)string
The L0 abstract summary (~100 tokens)
number
Execution time in seconds
CLI
Context Layers
OpenViking provides three hierarchical levels of content:- L0 (Abstract): ~100 token summary via
abstract()(this method) - L1 (Overview): Structured overview via
overview() - L2 (Full): Complete content via
read()
- Quick directory summaries
- Agent context where token efficiency is critical
- Initial exploration of large codebases
Implementation Details
The abstract is stored in a.abstract.md file within the directory. If not present, it’s generated automatically from the directory contents.