理解一切
Understand Anything

原始链接: https://github.com/Lum1104/Understand-Anything

## 理解一切:交互式代码库探索 理解一切是一个工具,可以将代码库、知识库和文档转化为交互式知识图谱。它旨在帮助开发者快速掌握复杂的项目,尤其是在加入新团队或处理不熟悉的代码时。 该工具利用多代理管道分析文件、函数、类和依赖关系,然后将其可视化在一个交互式仪表盘中。用户可以以可视化的方式探索代码库,按名称*或*含义搜索,并分析代码变更的影响。它还提供自动生成入职指南、业务逻辑映射和分层可视化等功能。 理解一切与流行的AI编码平台集成,如Claude、Codex、Cursor、Copilot、Gemini CLI等,通常通过简单的插件安装即可实现。生成的图谱可以作为JSON文件共享,从而促进团队协作和文档记录。它是一种强大的方式,可以超越仅仅*阅读*代码,真正*理解*代码。

Hacker News 新闻 | 过去 | 评论 | 提问 | 展示 | 工作 | 提交 登录 理解任何事物 (github.com/lum1104) 13 分,taubek 发表于 1 小时前 | 隐藏 | 过去 | 收藏 | 2 条评论 帮助 analogpixel 发表于 30 分钟前 | 下一个 [–] 这像 Obsidian 的图谱视图吗?看起来很漂亮/可以制作很酷的截图,但实际上没有价值,而且使用起来很麻烦?(顺便说一句,这并不是一个恶意评论,只是在看过输出结果后的一个问题。)回复 docheinestages 发表于 30 分钟前 | 上一个 | 下一个 [–] 有什么证据表明这有任何作用?有数百万(加一)个使用知识图谱的代码库理解解决方案。我怎么知道它是否比仅仅使用 Codex 或 Claude Code 更好?回复 考虑申请 YC 2026 年夏季批次!申请截止至 5 月 4 日 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系方式 搜索:
相关文章

原文

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.

English | 简体中文 | 繁體中文 | 日本語 | 한국어 | Español | Türkçe

Star History Rank

Quick Start License: MIT Claude Code Codex Copilot Copilot CLI Gemini CLI OpenCode Homepage Live Demo Discord

Understand Anything — Turn any codebase into an interactive knowledge graph


Tip

A huge thank you to the community! The support for Understand-Anything has been incredible. If this tool saves you a few minutes of digging through complexity, that's all I wanted. 🚀

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.

Graphs that teach > graphs that impress.


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.

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.

Structural graph — explore files, functions, classes and their relationships

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.

Domain graph — business domains, flows, and process steps

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.

🔍 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.

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.

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


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

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.

An 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

🌐 Multi-Platform Installation

Understand-Anything works across multiple AI coding platforms.

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

Tell Codex:

Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Understand-Anything/refs/heads/main/.codex/INSTALL.md

Tell OpenCode:

Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Understand-Anything/refs/heads/main/.opencode/INSTALL.md

Tell OpenClaw:

Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Understand-Anything/refs/heads/main/.openclaw/INSTALL.md

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.

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), tell GitHub Copilot:

Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Understand-Anything/refs/heads/main/.vscode/INSTALL.md
copilot plugin install Lum1104/Understand-Anything:understand-anything-plugin

Tell Antigravity:

Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Understand-Anything/refs/heads/main/.antigravity/INSTALL.md

Tell Gemini CLI:

Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Understand-Anything/refs/heads/main/.gemini/INSTALL.md

Tell Pi Agent:

Fetch and follow instructions from https://raw.githubusercontent.com/Lum1104/Understand-Anything/refs/heads/main/.pi/INSTALL.md
Platform Status Install Method
Claude Code ✅ Native Plugin marketplace
Codex ✅ Supported AI-driven install
OpenCode ✅ Supported AI-driven install
OpenClaw ✅ Supported AI-driven install
Cursor ✅ Supported Auto-discovery
VS Code + GitHub Copilot ✅ Supported Auto-discovery
Copilot CLI ✅ Supported Plugin install
Antigravity ✅ Supported AI-driven install
Gemini CLI ✅ Supported AI-driven install
Pi Agent ✅ Supported AI-driven install

📦 Share the Graph with Your Team

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 (fork) — 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/

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 --review for 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.


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

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/my-feature)
  3. Run the tests (pnpm --filter @understand-anything/core test)
  4. Commit your changes and open a pull request

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


Stop reading code blind. Start understanding everything.

Star History Chart

MIT License © Lum1104

联系我们 contact @ memedata.com