Skip to main content

TLDRGraph Logo

TLDRGraph 🌐

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.

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.


🏛️ Dynamic Architectural Layers

Rather than forcing every project into a rigid model, TLDRGraph automatically detects your codebase archetype or synthesizes dynamic architectural layers directly into .tldrgraph/layers.config.yaml:

  • Full-Stack Web: Presentation & UI $\rightarrow$ API Gateway $\rightarrow$ Domain Services $\rightarrow$ Data & Persistence $\rightarrow$ Async Tasks $\rightarrow$ DevOps
  • Backend APIs: API & Handlers $\rightarrow$ Domain Services $\rightarrow$ Persistence & Repositories $\rightarrow$ Background Jobs $\rightarrow$ Utilities
  • CLI Applications: CLI & Commands $\rightarrow$ Core Flow Engine $\rightarrow$ Storage & Index $\rightarrow$ Agent Loop & UI $\rightarrow$ Utilities
  • Libraries & SDKs: Public API $\rightarrow$ Core Engine $\rightarrow$ Types & Models $\rightarrow$ Adapters $\rightarrow$ Utilities

🚀 Quickstart

1. Install TLDRGraph

pip install tldrgraph

(For optional local ONNX neural embeddings: pip install "tldrgraph[embeddings]")

2. Scan & Classify Repository

tldrgraph scan .

This runs Graphify AST extraction, classifies architectural layers, builds offline local search indices, and creates .tldrgraph/layers.yaml.

3. Explore the Architecture Visually

tldrgraph ui --serve

Opens the interactive canvas:

  • Modules overview at low zoom.
  • Symbol details (classes, methods, inputs, outputs) as you zoom in.
  • Click-to-isolate focused nodes with upstream callers and downstream callees.
  • Live source viewing on demand with zero static HTML bloat.
  • ⚠️ Dead Nodes filter to immediately isolate unreferenced candidate symbols.

4. Query Execution Flows

tldrgraph query "pension application approval flow"

Outputs readable Markdown execution flow tables tracing the request across UI, API, Service, and DB layers.

5. Trace Exact Call Paths

tldrgraph trace "ApplicationsController" "JhPensionApplication"

6. Review Dead Code & Reachability

tldrgraph dead-code

Surfaces orphaned components, unreferenced models, and unused files for human review.


🤖 AI Assistant Rules (tldrgraph install)

TLDRGraph supports seamless pairing with AI coding assistants (Claude Code, Cursor, and Antigravity):

tldrgraph install

Automatically writes agent instructions pointing to .tldrgraph/AGENT_CONTRACT.md:

  • .claude/skills/tldrgraph/SKILL.md + delimited section in CLAUDE.md (Claude Code)
  • .cursor/rules/tldrgraph.mdc (Cursor)
  • .agents/rules/tldrgraph.md (Antigravity)

📁 Artifacts & Output Formats

All project state is kept in .tldrgraph/ (with automatic fallback to .codechakra/):

  • .tldrgraph/graph.json : Persisted multi-layer graph snapshot with cross-layer edges.
  • .tldrgraph/layers.yaml: Layer distribution and node definitions.
  • .tldrgraph/flows.yaml : Exported trace paths.
  • .tldrgraph/tldrgraph.db: Local SQLite content-hash cache for zero-token incremental updates.
  • .tldrgraph/TLDRGRAPH_VISUALIZER.html: Standalone zero-dependency visualizer.

🙏 Acknowledgements & Upstream Credits

TLDRGraph is built on the shoulders of giants. Sincere credit and special thanks to:


📄 License

Distributed under the MIT License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tldrgraph-0.1.0.tar.gz (191.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tldrgraph-0.1.0-py3-none-any.whl (149.1 kB view details)

Uploaded Python 3

File details

Details for the file tldrgraph-0.1.0.tar.gz.

File metadata

  • Download URL: tldrgraph-0.1.0.tar.gz
  • Upload date:
  • Size: 191.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.13

File hashes

Hashes for tldrgraph-0.1.0.tar.gz
Algorithm Hash digest
SHA256 590cf29efaf03e3bbaae5509094415b91e83a4d5cbcfc4afa2ba15219557bd5e
MD5 c2e1ad126b784ceeeffdd7055a76c6f9
BLAKE2b-256 f390223274926eb804677babca16d33aa764fd66e7fe77fc8795bc3720e91652

See more details on using hashes here.

File details

Details for the file tldrgraph-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tldrgraph-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 149.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.13

File hashes

Hashes for tldrgraph-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 406571f313298318e06f16719fddd9cd99102cf930a76f4dea41234411043049
MD5 c53ea5714d52a29496120c95b02c39b1
BLAKE2b-256 3442e47e3fd17dc2a2b5bd001daef6fb93e947db24d3900fbf13b941661f78c3

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.0

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page