A knowledge graph for your codebase, written in markdown.
The problem
AGENTS.md doesn't scale. A single flat file can describe a small project, but as a codebase grows, maintaining one monolithic document becomes impractical. Key design decisions get buried, business logic goes undocumented, and agents hallucinate context they should be able to look up.
The idea
Compress the knowledge about your program domain into a graph — a set of interconnected markdown files that live in a lat.md/ directory at the root of your project. Sections link to each other with [[wiki links]] , source files link back with // @lat: comments, and lat check ensures nothing drifts out of sync.
The result is a structured knowledge base that:
📈 Scales — split knowledge across as many files and sections as you need
— split knowledge across as many files and sections as you need 🔗 Cross-references — wiki links ( [[cli#search#Indexing]] ) connect concepts into a navigable graph
— wiki links ( ) connect concepts into a navigable graph ✅ Stays in sync — lat check validates that all links resolve and that required code references exist
— validates that all links resolve and that required code references exist 🔍 Is searchable — exact, fuzzy, and semantic (vector) search across all sections
... continue reading