Code Understanding (AST)

ZoidMatter indexes source code via tree-sitter and retains code cards at three levels of detail (LOD). Unlike tenant memory, code cards are global — scoped by repo via tags, not by bank.

LOD Levels

LevelContent
L0Topology — symbol names, kinds, file paths
L1Behavior — what each symbol does
L2Detail — full signatures and context

Key Capabilities

AST Watcher

A file watcher tracks source changes and keeps the symbol graph in sync, passing real dirty sets and handling file-removal events so the index never goes stale.