claudekit / tools / understand-anything
[ Plugin · Development ]

Understand Anything

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, search, and ask questions about it. Includes guided tours and diff impact analysis.

Egonex-AI/Understand-Anything ·updated
$ /plugin marketplace add Egonex-AI/Understand-Anything && /plugin install understand-anything copy

An open source project by Egonex-AI (Egonex-AI/Understand-Anything, MIT).

Why it matters

You just joined a new team, and the codebase is 200,000 lines of code. Reading file by file and assembling the architecture in your head takes a long time, and the code alone rarely tells you which files belong to which business flow.

Understand Anything analyzes the whole project, builds a knowledge graph where every file, function, and class is a node, and opens it in an interactive dashboard. Select any node to see its code, relationships, and a plain-English explanation, or follow a guided tour ordered by dependency to learn the codebase in the right order.

What you can do with it

  • A knowledge graph and dashboard for your codebase

    /understand saves the graph to .ua/knowledge-graph.json, and /understand-dashboard opens it color-coded by architectural layer (API, Service, Data, UI, Utility), searchable and clickable. The live demo on the homepage lets you pan, zoom, search, and explore without installing anything.

  • Onboarding guides for new team members

    /understand-onboard generates an onboarding guide. Commit the graph once and teammates skip the pipeline. The README points to GoogleCloudPlatform/microservices-demo as an example with a committed graph.

  • A map of business logic

    /understand-domain extracts business domain knowledge (domains, flows, and steps) and lays it out as a horizontal graph. In the homepage example, functions such as login() and verify_token() are grouped into an “Authentication” flow.

  • A graph of your wiki

    Point /understand-knowledge at a Karpathy-pattern LLM wiki to get a force-directed knowledge graph with wikilinks, categories, and implicit relationships between articles.

For example, when you pick up unfamiliar payment code, you can run /understand-chat How does the payment flow work?, then find the files it mentions in the dashboard and follow their connected nodes.

The Understand Anything dashboard, showing file nodes grouped by layer with import edges, node and layer counts, languages and frameworks, and a Start Guided Tour button

Image source: Egonex-AI/Understand-Anything (MIT)

Key features

  • Tree-sitter + LLM hybrid

    Tree-sitter deterministically extracts structural facts (imports, exports, function and class definitions, call sites, inheritance), so the same code always yields the same edges. The LLM handles what parsers can’t: plain-English summaries, tags, architectural layer assignments, business-domain mapping, guided tours, and language concept callouts.

  • Multi-agent pipeline

    /understand orchestrates five agents: project-scanner, file-analyzer, architecture-analyzer, tour-builder, and graph-reviewer. File analyzers run in parallel, up to 5 concurrent workers and 20-30 files per batch.

  • Incremental updates

    Re-runs only re-analyze files that changed since the last run. /understand --auto-update adds a post-commit hook that incrementally patches the graph so each commit lands with a matching graph.

  • Diff impact analysis

    /understand-diff shows which parts of the system your changes affect before you commit.

  • Fuzzy and semantic search, persona-adaptive UI

    Find anything by name or by meaning, such as “which parts handle auth?”. The dashboard adjusts its detail level for a junior dev, a PM, or a power user.

How to use

Install the plugin in Claude Code:

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

Then, in your project:

# Analyze the codebase (writes .ua/knowledge-graph.json)
/understand

# Explore the dashboard
/understand-dashboard

# 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

# Scope to a subdirectory (for huge monorepos)
/understand src/frontend

For Codex, Gemini CLI, OpenCode, Antigravity, Kiro, and other platforms, the one-line installer clones the repo to ~/.understand-anything/repo and creates the right symlinks for the chosen platform. Codex uses $understand instead of /understand.

Notes

  • Token usage — the initial /understand analyzes your whole codebase and can consume a significant number of tokens on large projects. The README recommends a token plan or subscription, or a local model such as Ollama, for initialization.
  • Node.js and pnpm — on the first analysis, the skill runs pnpm install and builds the core package inside the plugin directory. If pnpm is missing, it asks you to “Install Node.js ≥ 22 and pnpm ≥ 10”.
  • Auto-update hooks — the plugin registers SessionStart and PostToolUse (after Bash) hooks. Both do nothing unless autoUpdate is enabled in the project’s .ua/config.json.
  • What to commit — commit everything in .ua/ except .ua/intermediate/ and .ua/diff-overlay.json. Track graphs over 10 MB with git-lfs.
  • Figma — /understand-figma builds a design knowledge graph from a Figma file. It needs a FIGMA_TOKEN environment variable and, unlike /understand, makes outbound calls to api.figma.com.
  • Related tool — to graph a folder that mixes code with docs, images, and papers, see also Graphify.
  • Claude plugin directory — it is not listed on claude.com/plugins, so you install it by adding the repo’s own marketplace.
§ 6

See also

same category · curated
[01]
[MCP] ARTEMIS · ARTEMIS turns natural-language instructions into reliable Android automation. Its native MCP server lets Claude Code drive real devices and emulators, run test workflows, and collect screenshots and Logcat output, while ARTEMIS's own agent performs the on-device steps in the background.
tool · claudekit.io / tools / artemis
[02]
[Tool] Claude Quickstarts · A collection of projects designed to help developers quickly get started with building deployable applications using the Claude API. Runnable quickstarts cover a customer support agent, a financial data analyst, computer use, browser automation, and Claude Managed Agents apps for Slack, Linear, Sentry, and MCP. Some quickstarts let Claude Code drive the setup.
tool · claudekit.io / tools / claude-quickstarts
[03]
[Tool] Worktrunk · A CLI for git worktree management, designed for running AI agents in parallel. Worktrees are addressed by branch name, and `wt switch -c -x claude feat` creates a worktree and starts Claude Code in it. The Claude Code plugin adds activity tracking in `wt list` and routes the worktrees agents create through Worktrunk.
tool · claudekit.io / tools / worktrunk
§ 7

Frequently Asked Questions

frequently asked
§ 7.1
What is Understand Anything?
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. It also provides guided tours, diff impact analysis, and a command to ask questions about the codebase.
§ 7.2
How do I install it in Claude Code?
Add the marketplace with `/plugin marketplace add Egonex-AI/Understand-Anything`, then run `/plugin install understand-anything`. In your project, run `/understand` to analyze it and `/understand-dashboard` to open the dashboard.
§ 7.3
Is it free, and what does it cost to run?
It is open source under the MIT License. The initial `/understand` analyzes your whole codebase and can consume a significant number of tokens on large projects, so the README recommends a token plan, a subscription, or a local model. Subsequent runs are incremental by default.
§ 7.4
Can it generate output in languages other than English?
Yes. Use `--language` to generate node summaries, dashboard UI labels, and guided tour explanations in en, zh, zh-TW, ja, ko, ru, or vi. On the first run without `--language`, it detects the language you're conversing in and asks you to confirm, then saves the choice to `.ua/config.json`.
§ 7.5
Can teammates view the graph without Claude Code?
Yes. The graph is just JSON, so you can commit the `.ua/` directory once and teammates skip the pipeline. Anyone with Node.js 18 or later can open the dashboard with one `npx` command, with no Claude Code, no LLM, and no API key.