Understand Anything
π Description
Egonex-AI/Understand-Anything β a Claude Code plugin that analyzes a project with a multi-agent pipeline, builds a knowledge graph of every file, function, class, and dependency, then opens an interactive dashboard to explore it visually. MIT. Tagline: βgraphs that teach > graphs that impressβ β the point isnβt to wow you with complexity, itβs to quietly show how the pieces fit.
The framing problem it solves: you join a new team, the codebase is 200k lines, where do you even start? Instead of reading code blind, you get a navigable, searchable, color-coded map.
π§© Features
- Structural graph β every file/function/class is a clickable node with plain-English summaries, relationships, and guided tours.
- Domain view β maps code to real business processes (domains β flows β steps) as a horizontal graph.
/understand-knowledgeβ points at a Karpathy-pattern LLM wiki and builds a force-directed graph with community clustering: parses wikilinks/categories fromindex.mddeterministically, then LLM agents discover implicit relationships and extract entities/claims. (Directly applicable to this vault β Brain.)- Guided tours β auto-generated walkthroughs ordered by dependency, so you learn in the right order.
- Fuzzy + semantic search β find by name or by meaning (βwhich parts handle auth?β).
- Diff impact analysis (
/understand-diff) β see which parts your changes touch before you commit. - Persona-adaptive UI β detail level adjusts for junior dev / PM / power user.
- Layer visualization β auto-grouping by architectural layer (API/Service/Data/UI/Utility).
- Incremental β re-runs only re-analyze changed files;
--auto-updatepatches the graph via a post-commit hook. - Localized output β
--languagefor en/zh/zh-TW/ja/ko/ru node summaries and dashboard.
π§ Under the hood
Tree-sitter + LLM hybrid β Tree-sitter (deterministic) parses source into a syntax tree and extracts structural facts (imports, exports, defs, call sites, inheritance), pre-resolved into an importMap and used for fingerprint-based change detection. The LLM (semantic) reads that structure plus source to produce summaries, tags, layer assignments, domain mapping, and tours. So the structural side is reproducible while the semantic side captures intent.
Multi-agent pipeline β /understand orchestrates 5 agents (project-scanner, file-analyzer, architecture-analyzer, tour-builder, graph-reviewer); /understand-domain adds domain-analyzer; /understand-knowledge adds article-analyzer. File analyzers run up to 5 concurrent, 20β30 files per batch.
The graph is just JSON (.understand-anything/knowledge-graph.json) β commit it once and teammates skip the pipeline (track 10 MB+ graphs with git-lfs). Good for onboarding, PR reviews, docs-as-code.
Reasoning for
The natural complement to Graphify β both turn code/docs into a queryable knowledge graph, but Understand-Anything leans on a committed-to-repo JSON graph + interactive dashboard for team onboarding rather than token-reduction context. The /understand-knowledge mode is the interesting hook for me: it can ingest a Karpathy-pattern wiki like this very vault (Brain) and surface implicit relationships my index files donβt capture. Worth a pass on Qamera AI / PLSoft codebases for faster onboarding and diff-impact review.
Alternatives considered
- Graphify β code/docs/images β queryable graph with clustering and 71Γ token reduction (more retrieval/context-engineering oriented).
- CocoIndex / LightRAG β incremental indexing / KG-RAG for agent context, not interactive onboarding dashboards.
- Google Cloud Knowledge Catalog β managed knowledge graph over data, agent-facing via MCP.
π Links
- Repo: https://github.com/Egonex-AI/Understand-Anything (MIT, Β© Yuxiang Lin / Infinite Universe)
- Live demo: https://understand-anything.com/demo/
- Install (Claude Code):
/plugin marketplace add Egonex-AI/Understand-Anythingthen/plugin install understand-anything - One-line multi-platform install:
curl -fsSL https://raw.githubusercontent.com/Egonex-AI/Understand-Anything/main/install.sh | bash(Codex/OpenCode/OpenClaw/Gemini CLI/Cursor/Copilot/Kiro/β¦) - Walkthrough video (Better Stack): https://www.youtube.com/watch?v=VmIUXVlt7_I
π Related notes
- Graphify β closest sibling: code/docs β knowledge graph
- LLM Knowledge Bases Β· Open Knowledge Format (OKF) β the Karpathy-wiki pattern
/understand-knowledgeconsumes - CocoIndex Β· LightRAG Β· Google Cloud Knowledge Catalog β adjacent knowledge-graph / indexing tools
- Brain β this vault is a candidate input for
/understand-knowledge - Claude Code Β· Awesome Claude Code β primary host and discovery surface
- Progressive Disclosure β index-first exploration, the same instinct as guided tours
- Structural Retrieval for Code β the lane map (tree-sitter vs LSP vs SCIP vs grep) this tool sits in
- Serena Β· MCP Language Server β the type-accurate LSP alternative to this toolβs tree-sitter graph
Template: tool