codebase-knowledge-graph
Codebase Knowledge Graph (Understand-Anything)
Runs the Understand-Anything pipeline to turn a project into knowledge-graph.json: file, function, class, and config nodes, plus the edges between them, layers, and a guided tour, viewable in a local dashboard. It does not edit project source; its only writes are the data directory (.ua/, or legacy .understand-anything/) and the dashboard process. The structural side uses tree-sitter (deterministic); the semantic side (summaries, layers, tours) uses LLM subagents, so runs are costly on large repos.
Source: Egonex-AI/Understand-Anything (MIT; originally by Lum1104), understand-anything-plugin/skills/*/SKILL.md, install.sh. The plugin's commands are written for Claude Code and its slash syntax. Hermes install and invocation details are not confirmed in the source; see Prerequisites.
When to Use
- "Map this codebase", "where do I start in this repo", "explain the architecture"
- Onboarding to an unfamiliar project, or an onboarding guide for teammates
- "Which parts handle auth?" style questions across a whole project
- Impact of uncommitted or branch changes: "what does this diff affect"
- Analyzing a Karpathy-pattern LLM wiki (
index.mdwith wikilinks)
Prerequisites
- Node.js >= 22 and pnpm >= 10 for the full pipeline (the source says to install these if
pnpmis missing). The viewer needs only Node.js >= 18. - Git repo for the project (the pipeline reads
git rev-parse HEADand uses diffs for incremental runs). - Install the plugin for the host. The source's one-line installer covers
hermesamong its platforms: