Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
TypeScript antigravity-skillsbusiness-knowledgeclaude-codeclaude-skillscodebase-analysiscodexcodex-skillsdeveloper-tools-ai-agentgemini-cli-skillskarpathy-llm-wikiknowledge-baseknowledge-graphmemoryopencode-skillspi-agentunderstandcodevibe-coding
Merge pull request #190 from Omar-Basel-ALkhasawneh/patch-1
Yuxiang Linba450c43425f
diff --cc README.mdindex 14685319,2017c153..066f7888--- a/README.md+++ b/README.md@@@ -319,30 -258,24 +319,33 @@@ Working from a clone instead? `pnpm ins## 🔧 Under the Hood+### Tree-sitter + LLM hybrid++Static analysis and LLMs do what each does best:++- **Tree-sitter (deterministic)** — parses source into a concrete syntax tree and extracts structural facts: imports, exports, function/class definitions, call sites, inheritance. Pre-resolved into an `importMap` during the scan phase and passed to file-analyzers so they don't re-derive imports from source. Same input → same output, every run. Also powers fingerprint-based change detection for incremental updates.+- **LLM (semantic)** — reads the parsed structure alongside the original source to produce what parsers can't: plain-English summaries, tags, architectural layer assignments, business-domain mapping, guided tours, language concept callouts.++This split is why the graph is reproducible on the structural side (the same code always yields the same edges) while still capturing intent on the semantic side (what a file is *for*, not just what it imports).+### Multi-Agent Pipeline- 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.+ The `/understand` command orchestrates 5 specialized agents, `/understand-domain` adds a 6th, and `/understand-knowledge` adds a 7th:++ | Agent | Role | Used By |+ | ----------------------- | ------------------------------------------------------------------------------------------------------------------ | ----------------------- |+ | `project-scanner` | Discovers files, detects languages and frameworks | `/understand` |+ | `file-analyzer` | Extracts functions, classes, imports; produces graph nodes and edges | `/understand` |+ | `architecture-analyzer` | Identifies architectural layers | `/understand` |+ | `tour-builder` | Generates guided learning tours | `/understand` |+ | `graph-reviewer` | Validates graph completeness and referential integrity. Runs inline by default; use `--review` for full LLM review | `/understand` |+ | `domain-analyzer` | Extracts business domains, flows, and process steps | `/understand-domain` |+ | `article-analyzer` | Extracts entities, claims, and implicit relationships from wiki articles | `/understand-knowledge` |++ File analyzers run in parallel, up to 5 concurrent workers and 20–30 files per batch.++ The pipeline also supports incremental updates: only files changed since the last run are re-analyzed.+---