TLDRGraph π¶
See the flow of your spaghetti code, VibeCoders. πβ‘οΈβ‘
Dynamic Multi-Layer Code Flow, Instant Semantic Call Tracing, and Interactive Architectural Navigation.
π‘ What is TLDRGraph?¶
Modern codebases are messy. Microservices, multi-layer abstractions, dynamic API routes, and ORM calls create cognitive overload for both human developers and AI coding agents.
TLDRGraph cuts through the noise. It dynamically classifies your repository into tailored architectural layers, extracts cross-layer execution seams, tracks changes using zero-token SHA-256 hash gating, and provides both CLI flow tables and a lightning-fast standalone visualizer.
graph LR
A[Raw Source Code] --> B[AST Parser & Extraction]
B --> C[Agent-Designed Dynamic Layers]
C --> D[Cross-Layer Seam Bridges]
D --> E[Zero-Token SHA-256 Hash Gate]
E --> F[Hybrid TF-IDF & Dense Embeddings]
F --> G[Interactive Visualizer & CLI Flows] πΊοΈ Interactive Visual Navigation¶
TLDRGraph compiles a self-contained, zero-dependency interactive visualizer (.tldrgraph/TLDRGRAPH_VISUALIZER.html) that maps your entire codebase into structured architectural layers and clear end-to-end execution flows:
1. Architecture Map (Multi-Layer Clustered Navigation)¶
Zoom out to inspect high-level module architecture across dynamic layers; zoom in to examine function signatures, callers, and callees with cross-layer connection lines.
2. Workflows Explorer (End-to-End Execution & Decision Flows)¶
Follow step-by-step execution journeys with sequential flow lines, decision branches, participating symbols, and cross-layer transitions.
π Key Features¶
- ποΈ Agent-Designed Architecture: Zero hardcoded templates. Your AI coding agent inspects real extracted symbols and classifies the codebase into natural layers tailored to your project.
- β‘ 100% SWE-bench Lite Recall@10: Outperforms Chunked Dense RAG, BM25, and Aider Repo-Map on real-world bug localization tasks while consuming up to 10Γ fewer context tokens.
- π Cross-Layer Seam Extraction: Deterministically links frontend client calls (e.g.
api.get('/users')) to backend route handlers, controller methods, and database schemas. - π Zero-Token SHA-256 Hash Gating: Local SQLite cache tracks file content signatures. Only dirty or newly added nodes trigger re-indexing or enrichment.
- π Fast ONNX Dense Embeddings: Bundles local
BAAI/bge-small-en-v1.5dense embeddings via FastEmbed, running on CPU without PyTorch or CUDA overhead. - π Standalone Browser Visualizer: Single-file HTML bundle with high-contrast layer palette, pan/zoom canvas, upstream caller/downstream callee graph, and live source viewer.