Extract business domain knowledge from a codebase and generate an interactive domain flow graph. Works standalone (lightweight scan) or derives from an existing /understand knowledge graph.
Extracts business domain knowledge — domains, business flows, and process steps — from a codebase and produces an interactive horizontal flow graph in the dashboard.
.understand-anything/knowledge-graph.json), derives domain knowledge from it (cheap, no file scanning)--full flag to force a fresh scan even if a knowledge graph exists.understand-anything/knowledge-graph.json exists in the current project--full was NOT passed → proceed to Phase 3 (derive from graph)The preprocessing script does NOT produce a domain graph — it produces raw material (file tree, entry points, exports/imports) so the domain-analyzer agent can focus on the actual domain analysis instead of spending dozens of tool calls exploring the codebase. Think of it as a cheat sheet: cheap Python preprocessing → expensive LLM gets a clean, small input → better results for less cost.
python ./extract-domain-context.py <project-root>
This outputs <project-root>/.understand-anything/intermediate/domain-context.json containing:
.gitignore)domain-context.json as context for Phase 4.understand-anything/knowledge-graph.jsoncalls, imports, contains)agents/domain-analyzer.md.understand-anything/intermediate/domain-analysis.json.understand-anything/domain-graph.json.understand-anything/intermediate/domain-analysis.json and .understand-anything/intermediate/domain-context.json/understand-dashboard to visualize the domain graphdomain-graph.json and show the domain view by default