kausaldb

Code is a graph. Query it. Fast.

Get Source →

// THE PROBLEM

Your codebase is a network of dependencies, not a flat directory of text files. LLMs use grep and semantic search which are the wrong tools for understanding this structure. They find text, not causality.

// THE SOLUTION

A high-performance graph database, purpose-built for LLM context retrieval from codebases.

Built from scratch in Zig with zero-cost abstractions, no hidden allocations, O(1) memory cleanup and no data races by design.

Custom LSM-tree storage engine with deterministic simulation testing. Same seed, same destruction, same recovery. Zero flakes.

// THE QUERY

Kausal models code as a directed graph. Enabling microsecond-level queries that reveal true structural relationships.

 $ kausal trace callees "StorageEngine.put_block" --depth 3

[+] MemtableManager.put_block_durable
[+] BlockIndex.put_block
[+] WALEntry.create_put_block
[+] GraphEdgeIndex.put_edge
└── ArenaAllocator.alloc
    └── HashMap.put
...and 47 other callees in 0.06µs