Skip to content

TLDRGraph 🌐

TLDRGraph Logo

Sub-10ms Hybrid File Search & Anti-Spaghetti Multi-Flow Code Graphs. ⚑
SQLite FTS5 + Model2Vec Static Retrieval Embeddings + Separate Execution Flow Graphs for Humans & Coding Agents.

PyPI version Python versions License: MIT


πŸ’‘ What is TLDRGraph v0.3?

Whole-repository dependency graphs quickly turn into unreadable hairballs, while traditional RAG tools take minutes to index and burn thousands of tokens per lookup.

TLDRGraph v0.3 combines ultra-fast hybrid file localization with separate, human-readable execution flow graphs:

flowchart LR
    A["Source Files"] --> B["Static Parser & HTTP Seam Linker"]
    B --> C["SQLite FTS5 + Model2Vec Slice Cache"]
    B --> D["Antigravity Curated architecture.yaml"]
    C --> E["tldrgraph query (~1–8 ms File Recall)"]
    D --> F["Multi-Flow Visualizer & Live Code Reader"]

πŸ† Key Capabilities

  • ⚑ 77.5% Recall@1 & 0.836 MRR on SWE-bench Lite: Fuses 4-column weighted SQLite FTS5 BM25 with Model2Vec (minishlab/potion-retrieval-32M), RRF, and 1-hop graph neighbors β€” indexing 170Γ— faster than transformer ONNX models while outperforming Mem0, Codebase-Memory-MCP, BM25, Graphify, Aider, and Chunked Dense RAG.
  • πŸ—ΊοΈ Separate Flow Graphs (Zero Spaghetti): Renders each user/system journey as its own focused 3–8 step layered DAG alongside scoped Subsystem Swimlanes and collapsible monorepo clone groups.
  • πŸ”— Cross-Layer Seam Linking: Automatically connects local imports, @scope/pkg monorepo aliases, and frontend fetch('/api/...') calls to backend route handlers.
  • πŸ€– Antigravity-Native Incremental Updates: Generates .tldrgraph/agent_brief.json and tracks SHA-256 file hashes so Antigravity keeps .tldrgraph/architecture.yaml up to date as code evolves.
  • πŸ“‚ 1-Click File & Editor Navigation: Inspect highlighted line ranges inline, read full live files via tldrgraph ui --serve, or jump straight to VS Code / Cursor (vscode://file...).

πŸš€ Quickstart

pip install tldrgraph
tldrgraph init .
tldrgraph status
tldrgraph query "monthly llm budget quota enforcement"
tldrgraph ui --serve