# Litho

An AI-driven documentation generator, written in Rust, that analyzes a codebase and automatically produces C4-model architecture documentation, including context, container and component diagrams, kept in sync with the code.

Litho (also published as deepwiki-rs) analyzes a source repository and generates architecture documentation in the C4 model format: context diagrams, container diagrams, component diagrams and code-level documentation, aimed at replacing documentation that is written by hand and tends to fall out of date.

The project has since introduced a successor called Terrain, built on top of Litho, that keeps a knowledge base of the codebase synchronized with the code over time, extends language and framework support, and lets agents such as Claude Code, Codex and DeepSeek Harness read that knowledge base through the Agent Context Protocol, with a built-in book-style viewer. Litho itself continues as the underlying, narrower C4 documentation generator.

Website: https://deepwiki.netlify.app/
