/understand-chat command lets you ask plain-English questions about your project. It searches the knowledge graph for nodes relevant to your query, expands to connected components one hop away, and uses that focused context to give a precise answer backed by actual code structure.
Use it whenever you want to understand how something works, find which files are responsible for a feature, or trace a call chain — without manually searching the codebase.
Usage
<query> is any natural-language question about the codebase.
How it works
Search the graph
The query is run through the
SearchEngine against all nodes in knowledge-graph.json. It uses fuzzy and semantic matching to find up to 15 nodes most relevant to your question.Expand one hop
For each matched node, all directly connected nodes (via any edge type) are collected. This pulls in callers, callees, importers, and related components automatically.
Collect layers
Any architectural layers that contain a relevant node are included as context, so the answer can explain which part of the system is involved.
/understand-chat requires an up-to-date knowledge graph. Run /understand first if you haven’t analyzed the project yet, or after significant code changes.Output
A markdown response that:- Explains the concept or feature in plain English
- References specific files and functions by path
- Identifies which architectural layers are involved
- Traces relationships and call chains where relevant
Examples
Related commands
/understand
Build or update the knowledge graph that chat queries draw from.
/understand-explain
Deep-dive into a specific file or function rather than a free-form question.
/understand-dashboard
Explore the knowledge graph visually in the interactive dashboard.
/understand-diff
Analyze the impact of current git changes on the graph.