Lain
Provides AI coding agents with a persistent, queryable knowledge graph of codebases, enabling deep structural reasoning, change impact analysis, and semantic search.
Lain is a high-performance, persistent code-intelligence server built in Rust. It constructs a comprehensive knowledge graph of your project, detailing code connections, dependencies, and co-change history, augmented by LSP, tree-sitter, and optional semantic embeddings. This intelligent map allows AI coding agents to move beyond single-file reasoning, providing critical insights into blast radius for proposed changes, transitive dependencies, architectural pillars, and contextual build failure explanations. It seamlessly integrates with MCP-compatible AI agents, continually updating its knowledge graph during development via a volatile overlay, ensuring agents always have fresh, accurate project context.