Skip to content

TLDRGraph 🌐

TLDRGraph Logo

See the flow of your spaghetti code, VibeCoders. 🍝➑️⚑
Dynamic Multi-Layer Code Flow, Instant Semantic Call Tracing, and Interactive Architectural Navigation.

PyPI version Python versions License: MIT Powered by Graphify


πŸ’‘ 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.

TLDRGraph Architecture Map

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.

TLDRGraph Workflows Explorer


πŸ† 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.5 dense 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.

πŸš€ Quick Preview

pip install tldrgraph
# In Claude Code or Cursor:
/tldrgraph-init

# Or in Codex:
$tldrgraph-init
tldrgraph query "user authentication flow"
tldrgraph ui --serve