核心定位

把任意代码库、知识库或文档,转换成可交互的知识图谱,让你能探索、搜索、提问,真正理解系统,而不是只看到复杂的图。

口号是:Graphs that teach > graphs that impress(能教你的图,比只会炫技的图更有价值)。
理念:Understand Anything. Understand Anyone. AI should help people, not replace them.

主要功能

  • 结构知识图谱:把文件、函数、类、依赖都变成可点击的节点,点击可看英文摘要、关系、引导式游览(Guided Tours)。
  • 业务逻辑视图:切换到 Domain View,把代码映射到真实业务流程(domains、flows、steps)。
  • 知识库分析:支持对 LLM wiki 类文档做知识图谱(含社区聚类、隐式关系发现等)。
  • 模糊 + 语义搜索:可按名字或含义搜索(例如 “which parts handle auth?”)。
  • Diff 影响分析:提交前看改动会影响哪些部分。
  • Persona-Adaptive UI:根据你是初级开发、PM 还是高级用户,调整界面详细程度。
  • 架构分层可视化:自动按 API / Service / Data / UI / Utility 等分层,带颜色图例。
  • 语言概念解释:在上下文中解释泛型、闭包、装饰器等 12 种编程模式。
  • 支持多语言输出(中文、繁中、日语、韩语、俄语等)。

数据会保存到项目下的 .ua/knowledge-graph.json(旧项目如果有 .understand-anything/ 目录会继续使用)。

支持的平台

原生支持 Claude Code,并兼容:

  • Codex
  • Cursor
  • GitHub Copilot / VS Code
  • Gemini CLI
  • 以及 Hermes、Cline、Kiro、OpenCode 等多个 AI 编程工具

快速开始(Claude Code)

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

然后运行:

1
2
3
4
5
6
/understand                    # 分析整个代码库(首次会消耗较多 token)
/understand-dashboard # 打开交互式仪表盘
/understand-chat How does the payment flow work?
/understand-diff # 分析当前改动的影响
/understand-explain src/auth/login.ts
/understand-onboard # 生成新人入职指南

其他平台可用一键安装脚本:

1
2
3
4
5
# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/Egonex-AI/Understand-Anything/main/install.sh | bash

# Windows PowerShell
iwr -useb https://raw.githubusercontent.com/Egonex-AI/Understand-Anything/main/install.ps1 | iex

支持本地模型(如 Ollama)以降低成本或保护隐私。后续增量分析只处理变更文件,token 消耗会大幅降低。

项目信息

如果你刚加入一个大项目、想快速搞懂架构,或者需要给团队做知识沉淀,这个工具很实用。