Raw capture โ€” raw/understand-anything.md


url: https://github.com/Lum1104/Understand-Anything date_fetched: 2026-07-05 backfilled: true


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. Understand Anyone.

AI should help people, not replace them.

English | ็ฎ€ไฝ“ไธญๆ–‡ | ็น้ซ”ไธญๆ–‡ | ๆ—ฅๆœฌ่ชž | ํ•œ๊ตญ์–ด | Espaรฑol | Tรผrkรงe | ะ ัƒััะบะธะน

An open-source project from Egonex

Originally created by Lum1104.

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.

Note

Want to skip the reading? Try the live demo in our homepage โ€” a fully interactive dashboard you can pan, zoom, search, and explore right in your browser.

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.

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.

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.

| Auto-generated walkthroughs of the architecture, ordered by dependency. Learn the codebase in the right order. | Find anything by name or by meaning. Search "which parts handle auth?" and get relevant results across the graph. | | See which parts of the system your changes affect before you commit. Understand ripple effects across the codebase. | The dashboard adjusts its detail level based on who you are โ€” junior dev, PM, or power user. | | Automatic grouping by architectural layer โ€” API, Service, Data, UI, Utility โ€” with color-coded legend. | 12 programming patterns (generics, closures, decorators, etc.) explained in context wherever they appear. |

/plugin marketplace add Egonex-AI/Understand-Anything
/plugin install understand-anything

Using a local model?For privacy or enterprise setups, point your platform at a local model provider such as Ollama โ€” follow their integration guide to change the model provider.

/understandA 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.

Heads up on token usage:The initial/understandanalyzes your whole codebase and can consume a significant number of tokens on large projects. We recommend running it on a token plan / subscription, or using a local model (see above) for initialization. Subsequent runs are incremental by default โ€” only changed files are re-analyzed โ€” so they use far fewer tokens.

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

# Generate Chinese content (็Ÿฅ่ฏ†ๅ›พ่Š‚็‚นๆ่ฟฐๅ’Œ Dashboard UI)
/understand --language zh
# Supported languages: en (default), zh, zh-TW, ja, ko, ru

On the first run in a project โ€” when you don't pass --language and no language is stored yet โ€” /understand detects the language you're conversing in. If it isn't English, it asks you to confirm (or override) before generating; English conversations are unaffected. Your choice is saved to .understand-anything/config.json and reused on every later run.

The --language parameter affects:

/understand-dashboardAn interactive web dashboard opens with your codebase visualized as a graph โ€” color-coded by architectural layer, searchable, and clickable. Select any node to see its code, relationships, and a plain-English explanation.

# Ask anything about the codebase
/understand-chat How does the payment flow work?
# Analyze impact of your current changes
/understand-diff
# Deep-dive into a specific file or function
/understand-explain src/auth/login.ts
# Generate an onboarding guide for new team members
/understand-onboard
# Extract business domain knowledge (domains, flows, steps)
/understand-domain
# Analyze a Karpathy-pattern LLM wiki knowledge base
/understand-knowledge ~/path/to/wiki
# Re-run anytime โ€” incremental by default (only re-analyzes changed files)
/understand
# Auto-update on every commit via a post-commit hook
/understand --auto-update
# Scope to a subdirectory (for huge monorepos)
/understand src/frontend

Understand-Anything works across multiple AI coding platforms.

/plugin marketplace add Egonex-AI/Understand-Anything
/plugin install understand-anything

One-line install (Codex / OpenCode / OpenClaw / Antigravity / Gemini CLI / Pi Agent / Vibe CLI / VS Code Copilot / Hermes / Cline / KIMI CLI / Trae / Nanobot / Kiro)

macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/Egonex-AI/Understand-Anything/main/install.sh | bash
# or skip the prompt by passing the platform:
curl -fsSL https://raw.githubusercontent.com/Egonex-AI/Understand-Anything/main/install.sh | bash -s codex

Windows (PowerShell):

iwr -useb https://raw.githubusercontent.com/Egonex-AI/Understand-Anything/main/install.ps1 | iexThe installer clones the repo to ~/.understand-anything/repo and creates the right symlinks for the chosen platform. Restart your CLI/IDE afterwards.

Cursor auto-discovers the plugin via .cursor-plugin/plugin.json when this repo is cloned. No manual installation needed โ€” just clone and open in Cursor.

If auto-discovery doesn't pick it up, install it manually: open Cursor Settings โ†’ Plugins, paste https://github.com/Egonex-AI/Understand-Anything into the search field, and add it from there.

VS Code with GitHub Copilot (v1.108+) auto-discovers the plugin via .copilot-plugin/plugin.json when this repo is cloned. No manual installation needed โ€” just clone and open in VS Code.

For personal skills (available across all projects), run the install.sh above with the vscode platform.

copilot plugin install Egonex-AI/Understand-Anything:understand-anything-plugin``curl -fsSL https://raw.githubusercontent.com/Egonex-AI/Understand-Anything/main/install.sh | bash -s kiroAfter installation:

For personal skills (available across all projects), run the install.sh above with the kiro platform.

Platform Status Install Method
Claude Code โœ… Native Plugin marketplace
Cursor โœ… Supported Auto-discovery
VS Code + GitHub Copilot โœ… Supported Auto-discovery
Copilot CLI โœ… Supported Plugin install
Codex โœ… Supported install.sh codex
OpenCode โœ… Supported install.sh opencode
OpenClaw โœ… Supported install.sh openclaw
Antigravity โœ… Supported install.sh antigravity
Gemini CLI โœ… Supported install.sh gemini
Pi Agent โœ… Supported install.sh pi
Vibe CLI โœ… Supported install.sh vibe
Hermes โœ… Supported install.sh hermes
Cline โœ… Supported install.sh cline
KIMI CLI โœ… Supported install.sh kimi
Trae โœ… Supported install.sh trae
Nanobot โœ… Supported install.sh nanobot
Kiro CLI / IDE โœ… Supported install.sh kiro

The graph is just JSON โ€” commit it once, and teammates skip the pipeline. Good for onboarding, PR reviews, and docs-as-code.

Example:GoogleCloudPlatform/microservices-demo โ€” Go / Java / Python / Node reference with a committed graph.

What to commit: everything in .understand-anything/ except intermediate/ and diff-overlay.json (those are local scratch).

.understand-anything/intermediate/
.understand-anything/diff-overlay.json

Keep it fresh: enable /understand --auto-update โ€” a post-commit hook incrementally patches the graph so each commit lands with a matching graph. Or re-run /understand manually before releases.

Large graphs (10 MB+): track with git-lfs.

git lfs install
git lfs track ".understand-anything/*.json"
git add .gitattributes .understand-anything/

Static analysis and LLMs do what each does best:

This split is why the graph is reproducible on the structural side (the same code always yields the same edges) while still capturing intent on the semantic side (what a file is for, not just what it imports).

The /understand command orchestrates 5 specialized agents, and /understand-domain adds a 6th:

Agent Role
project-scanner Discover files, detect languages and frameworks
file-analyzer Extract functions, classes, imports; produce graph nodes and edges
architecture-analyzer Identify architectural layers
tour-builder Generate guided learning tours
graph-reviewer Validate graph completeness and referential integrity (runs inline by default; use --reviewfor full LLM review)
domain-analyzer Extract business domains, flows, and process steps (used by /understand-domain)
article-analyzer Extract entities, claims, and implicit relationships from wiki articles (used by /understand-knowledge)

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.

A community-made walkthrough by Better Stack.

Made a video, blog post, or tutorial? Open an issue or PR โ€” happy to feature it here.

Contributions are welcome! Here's how to get started:

Please open an issue first for major changes so we can discuss the approach.

Stop reading code blind. Start understanding everything.

Thanks to everyone who's used and contributed โ€” knowing this saves people time is what made it worth building.

MIT License ยฉ Yuxiang Lin and Infinite Universe, Inc.