Lat.md: Agent Lattice: a knowledge graph for your codebase, written in Markdown

https://news.ycombinator.com/rss Hits: 4
Summary

A knowledge graph for your codebase, written in markdown. 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. 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 ๐Ÿ”— Cross-references โ€” wiki links ([[cli#search#Indexing]]) connect concepts into a navigable graph โœ… Stays in sync โ€” lat check validates that all links resolve and that required code references exist ๐Ÿ” Is searchable โ€” exact, fuzzy, and semantic (vector) search across all sections ๐Ÿค Works for humans and machines โ€” readable in any editor (or Obsidian), queryable by agents via the lat CLI Then run lat init in the repo you want to use lat in. Run lat init to scaffold a lat.md/ directory, then write markdown files describing your architecture, business logic, test specs โ€” whatever matters. Link between sections using [[file#Section#Subsection]] syntax. Link to source code symbols with [[src/auth.ts#validateToken]]. Annotate source code with // @lat: [[section-id]] (or # @lat: [[section-id]] in Python) comments to tie implementation back to concepts. my-project/ โ”œโ”€โ”€ lat.md/ โ”‚ โ”œโ”€โ”€ architecture.md # system design, key decisions โ”‚ โ”œโ”€โ”€ auth.md # authentication & authorization logic โ”‚ โ””โ”€โ”€ tests.md # test specs (require-code-mention: true) โ”œโ”€โ”€ src/ โ”‚ โ”œโ”€โ”€ auth.ts # // @lat: [[auth#OAuth Flow]] โ”‚ โ””โ”€โ”€ server.ts # // @lat: [[architecture#Request Pipeline]] โ””โ”€โ”€ ... lat init # scaffold a lat.md/ directory lat check # valida...

First seen: 2026-03-29 10:52

Last seen: 2026-03-29 13:53