Turn any folder of files into a navigable knowledge graph with community detection, honest audit trail, and three outputs: interactive HTML, queryable JSON, and a plain-language report.
python graphify_wrapper.py ensure-installed
Or manually: pip install graphifyy
python graphify_wrapper.py build /path/to/project
This runs the full pipeline: detect files → AST extraction → build graph → cluster → export.
Output goes to :
graph.html — interactive visualization (open in browser)
GRAPH_REPORT.md — plain-language audit report
graph.json — queryable knowledge graph
cache/ — SHA256 cache for incremental updates
python graphify_wrapper.py report
Or read graphify-out/GRAPH_REPORT.md directly. Present the key findings to the user: god nodes (highly connected), surprising connections, community structure.
python graphify_wrapper.py query "how does authentication work"
Or use the CLI directly for more options:
graphify query "show the auth flow" --graph graphify-out/graph.json
graphify query "what connects X to Y?" --graph graphify-out/graph.json --dfs
graphify query "explain dependency injection" --budget 1500 --graph graphify-out/graph.json
After building, send graphify-out/graph.html to the user so they can explore the interactive graph. Summarize GRAPH_REPORT.md in your response.
If graphify CLI is available, you can use these directly:
| Command | Description |
|---------|-------------|
| graphify query "..." --graph | BFS traversal of the graph |
| graphify query "..." --dfs --graph | DFS — trace a specific path |
| graphify query "..." --budget N --graph | Cap output at N tokens |
| graphify path "Node1" "Node2" --graph | Shortest path between concepts |
| graphify explain "NodeName" --graph | Plain-language explanation of a node |
graphify_wrapper.py) handles cross-platform compatibility (Windows CMD, Linux, macOS)
.graphifyignore file (same syntax as .gitignore) to exclude directories
graphifyy (pip) — automatically installed by wrapper
共 1 个版本