How dev3h/understand-anything works
Understand Anything analyzes codebases and knowledge bases into explorable graphs, then supports learning, search, and change analysis. The main path is project analysis → graph generation → dashboard exploration; domain and wiki analysis are distinct branches. The graph preserves README-documented capabilities, while source-level edges are limited to relationships visible in the excerpts or SOURCE INDEX. Several skill and core internals were not sampled, so their detailed calls are not inferred.
Main entry points: scan-project.mjs Analyze project · App.tsx Dashboard shell · extract-structure.mjs Structure extraction · graph-builder.ts Graph construction
Components 23
Project analysis
- Analyze project
understand-anything-plugin/skills/understand/scan-project.mjs - Structure extraction
understand-anything-plugin/skills/understand/extract-structure.mjs - Dependency extraction
understand-anything-plugin/skills/understand/extract-import-map.mjs - Language extractors
understand-anything-plugin/packages/core/src/plugins/extractors - Config parsers
understand-anything-plugin/packages/core/src/plugins/parsers
Graph intelligence
- Graph construction
understand-anything-plugin/packages/core/src/analyzer/graph-builder.ts - LLM analysis
understand-anything-plugin/packages/core/src/analyzer/llm-analyzer.ts - Knowledge graph
- Layers and tours
understand-anything-plugin/packages/core/src/analyzer/layer-detector.ts
Dashboard
- Dashboard shell
understand-anything-plugin/packages/dashboard/src/App.tsx - Graph views
understand-anything-plugin/packages/dashboard/src/components/GraphView.tsx - Domain view
understand-anything-plugin/packages/dashboard/src/components/DomainGraphView.tsx - Knowledge graph view
understand-anything-plugin/packages/dashboard/src/components/KnowledgeGraphView.tsx - Dashboard state and search
understand-anything-plugin/packages/dashboard/src/store.ts - Code and node inspection
understand-anything-plugin/packages/dashboard/src/components/CodeViewer.tsx
Learning tools
- Chat context
understand-anything-plugin/src/context-builder.ts - Ask about code
understand-anything-plugin/src/understand-chat.ts - Diff impact analysis
understand-anything-plugin/src/diff-analyzer.ts - Component explanations
understand-anything-plugin/src/explain-builder.ts - Onboarding guide
understand-anything-plugin/src/onboard-builder.ts
Knowledge analysis
- Wiki analysis
understand-anything-plugin/skills/understand-knowledge/parse-knowledge-base.py - Domain extraction
understand-anything-plugin/skills/understand-domain/extract-domain-context.py
Other components
- Developer
Connections 25
- Developer → Analyze project: analyzes project
README.md - Analyze project → Structure extraction: extracts structure
README.md - Analyze project → Dependency extraction: extracts dependencies
README.md - Structure extraction → Language extractors: uses language plugins
- Structure extraction → Config parsers: uses config parsers
- Analyze project → Graph construction: builds graph
README.md - Graph construction → LLM analysis: enriches analysis
- Graph construction → Knowledge graph: writes graph
README.md - Analyze project → Layers and tours: generates tours and layers
README.md - Developer → Dashboard shell: opens dashboard
README.md - Dashboard shell → Graph views: renders structural graph
understand-anything-plugin/packages/dashboard/src/App.tsx - Dashboard shell → Domain view: renders domain graph
understand-anything-plugin/packages/dashboard/src/App.tsx - Dashboard shell → Knowledge graph view: renders knowledge graph
understand-anything-plugin/packages/dashboard/src/App.tsx - Dashboard shell → Dashboard state and search: reads and updates
understand-anything-plugin/packages/dashboard/src/App.tsx - Dashboard state and search → Knowledge graph: loads graph
- Dashboard state and search → Code and node inspection: supplies selected node
understand-anything-plugin/packages/dashboard/src/components/CodeViewer.tsx - Developer → Wiki analysis: analyzes wiki
README.md - Wiki analysis → Knowledge graph: produces knowledge graph
README.md - Developer → Domain extraction: extracts business domains
README.md - Developer → Ask about code: asks a question
README.md - Ask about code → Chat context: builds relevant context
understand-anything-plugin/src/understand-chat.ts - Chat context → Knowledge graph: searches graph
- Developer → Diff impact analysis: requests impact analysis
README.md - Developer → Component explanations: requests deep dive
README.md - Developer → Onboarding guide: requests onboarding guide
README.md