# car-ast

Tree-sitter AST parsing for code-aware inference in [Common Agent Runtime](https://github.com/Parslee-ai/car).

## What it does

Parses source files into structured symbols — functions, structs, classes, imports — with signatures, source spans, and doc comments. CAR uses this for smart context assembly (which symbol does the user mean?) and for accurate code detection (is this a Rust file or a markdown block that happens to start with `fn`?).

## Where it fits

Consumed by:
- `car-reason` — for context assembly when the user query references a symbol
- `car-inference` — for code detection in mixed-language responses
- `car-search` — for indexing mined references
