Build Commands
FreshCore Build Syntax
/graphify <path> [options]
graphify <path> [options] # terminal-direct (no assistant in loop)All commands work as both slash commands (via AI assistant) and direct terminal commands.
Build Modes
Standard Build
/graphify . # Current directory
/graphify ./src # Specific subfolder
/graphify ./folder # Any pathDeep Mode
/graphify . --mode deepDeep mode uses more aggressive inference. Produces more INFERRED edges — useful when you want to surface implicit relationships between modules.
Directed Graph
/graphify . --directedPreserves edge direction (source -> target). Use when call-graph directionality matters for your analysis.
Incremental Update
/graphify . --updateRe-extracts only changed files (SHA256 cache comparison). Merges new nodes and edges into the existing graph.json. Much faster than a full rebuild.
Cluster-Only
/graphify . --cluster-onlyReruns Leiden clustering on the existing graph without re-extracting any files. Use after manually editing graph.json or when you want to try different clustering parameters.
Skip Visualization
/graphify . --no-vizProduces GRAPH_REPORT.md and graph.json only — skips the graph.html generation. Faster for CI pipelines and automated runs.
Export Flags
These flags add additional output formats alongside the standard outputs:
| Flag | Output | Use Case |
|---|---|---|
--wiki | wiki/ directory | Markdown article per community cluster |
--obsidian | obsidian/ vault | Obsidian-compatible notes |
--svg | graph.svg | Static image export |
--graphml | graph.graphml | Gephi, yEd visualization tools |
--neo4j | cypher.txt | Cypher statements for import |
--neo4j-push bolt://localhost:7687 | Live push | Direct Neo4j database push |
--mcp | stdio server | Start MCP server after build |
Wiki Export Example
/graphify . --wikiProduces one Markdown article per Leiden community cluster. Each article summarizes the cluster's key nodes and their relationships — useful for documentation generation.
Obsidian Export Example
/graphify . --obsidianGenerates an Obsidian-compatible vault with bidirectional wiki-links between related concepts.
Watch Mode
/graphify . --watchMonitors the directory for file changes and triggers an incremental rebuild automatically. Pure AST rebuilds (code changes) are near-instant. LLM extraction (new prose/docs) takes longer.
Watch Mode Performance
Watch mode for code-only changes is very fast — it uses tree-sitter AST without calling the LLM. Only new or changed prose files trigger an LLM call.
Add External Content
/graphify add https://arxiv.org/abs/1706.03762 # arXiv paper
/graphify add <youtube-url> # YouTube video
/graphify add https://example.com/paper.pdf # Remote PDF
/graphify add https://... --author "Name" # With attributionExternal content is fetched, processed, and merged into the existing graph.
Combining Flags
Flags can be combined:
/graphify . --mode deep --directed --wiki --no-viz
/graphify ./src --update --obsidian