Understand Anything

Turn any codebase, knowledge base, or docs into an interactive knowledge graph you can explore, search, and ask questions about.

Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.

Understand Anything — Turn any codebase into an interactive knowledge graph
28,802 Stars
2,410 Forks
37 Open Issues
114 Subscribers
TypeScript Language
MIT License

You just joined a new team. The codebase is 200,000 lines of code. Where do you even start?

Understand Anything is a Claude Code Plugin that analyzes your project with a multi-agent pipeline, builds a knowledge graph of every file, function, class, and dependency, then gives you an interactive dashboard to explore it all visually. Stop reading code blind. Start seeing the big picture.

The goal isn't a graph that wows you with how complex your codebase is — it's a graph that quietly teaches you how every piece fits together.

✨ Features

🧭

Guided Tours

Auto-generated walkthroughs of the architecture, ordered by dependency. Learn the codebase in the right order.

🔍

Fuzzy & Semantic Search

Find anything by name or by meaning. Search "which parts handle auth?" and get relevant results across the graph.

📊

Diff Impact Analysis

See which parts of the system your changes affect before you commit. Understand ripple effects across the codebase.

🎭

Persona-Adaptive UI

The dashboard adjusts its detail level based on who you are — junior dev, PM, or power user.

🏗️

Layer Visualization

Automatic grouping by architectural layer — API, Service, Data, UI, Utility — with color-coded legend.

📚

Language Concepts

12 programming patterns (generics, closures, decorators, etc.) explained in context wherever they appear.

Explore the structural graph

Navigate your codebase as an interactive knowledge graph — every file, function, and class is a node you can click, search, and explore. Select any node to see plain-English summaries, relationships, and guided tours.

Understand business logic

Switch to the domain view and see how your code maps to real business processes — domains, flows, and steps laid out as a horizontal graph.

Analyze knowledge bases

Point /understand-knowledge at a Karpathy-pattern LLM wiki and get a force-directed knowledge graph with community clustering. The deterministic parser extracts wikilinks and categories from index.md, then LLM agents discover implicit relationships, extract entities, and surface claims — turning your wiki into a navigable graph of interconnected ideas.

Multi-Agent Pipeline

The /understand command orchestrates 5 specialized agents, and /understand-domain adds a 6th. File analyzers run in parallel (up to 5 concurrent, 20-30 files per batch). Supports incremental updates — only re-analyzes files that changed since the last run.

🚀 Quick Start

1

Install the plugin

/plugin marketplace add Lum1104/Understand-Anything
/plugin install understand-anything

Localized output: Use --language to generate content in your preferred language

/understand --language zh
# Supported languages: en (default), zh, zh-TW, ja, ko, ru
2

Analyze your codebase

/understand

A multi-agent pipeline scans your project, extracts every file, function, class, and dependency, then builds a knowledge graph saved to .understand-anything/knowledge-graph.json.

3

Explore the dashboard

/understand-dashboard

An interactive web dashboard opens with your codebase visualized as a graph — color-coded by architectural layer, searchable, and clickable.

Additional commands:
/understand-chat How does the payment flow work?
/understand-diff
/understand-explain src/auth/login.ts
/understand-onboard
/understand-domain
/understand-knowledge ~/path/to/wiki
/understand --auto-update
/understand src/frontend

🌐 Multi-Platform Installation

✅ Native

Claude Code

Plugin marketplace installation

✅ Supported

Cursor

Auto-discovery when cloned

✅ Supported

VS Code + GitHub Copilot

Auto-discovery when cloned

✅ Supported

Copilot CLI

Plugin installation

✅ Supported

Codex

One-line install

✅ Supported

OpenCode

One-line install

✅ Supported

OpenClaw

One-line install

✅ Supported

Antigravity

One-line install

✅ Supported

Gemini CLI

One-line install

✅ Supported

Pi Agent

One-line install

✅ Supported

Vibe CLI

One-line install

✅ Supported

Hermes

One-line install

One-line install (macOS / Linux):
curl -fsSL https://raw.githubusercontent.com/Lum1104/Understand-Anything/main/install.sh | bash

Windows (PowerShell):
iwr -useb https://raw.githubusercontent.com/Lum1104/Understand-Anything/main/install.ps1 | iex

🎥 Community

A community-made walkthrough by Better Stack.

💬 Join the Discord community

Ask questions, share what you've built, get help from the community.

Join Discord →