- Our two-file fixture produced 5 nodes and 7 edges, including createReceipt → total.
- Use a Python virtual environment and explicit executables; no activation or execution-policy change is needed.
- This code-only run used no LLM API key. Semantic document and image analysis use different paths.
Tested on Windows with Python 3.12.14 and Graphify 0.9.91: code-only extraction, HTML export and graph queries. Counts describe this fixture, not PDF processing or assistant integration performance.
Files for this exercise
AIHotple example files and prompts. Try the exercise before substituting real work data.
Find a relationship before reading every file
When you meet an unfamiliar project, you may want to know what calls a function before changing it. Graphify extracts relationships into a graph. This exercise queries a small local code graph rather than asking an assistant to read the whole project.
Use the graph to locate relevant source, then check that source. Two files are small enough to read directly, but also make a good fixture for understanding the tool.
1. Prepare Python and the sample
Use Windows PowerShell and Python 3.10 or newer. Confirm that python --version prints a supported version. If Python is missing or the Store opens instead, install Python from its official site and open a fresh terminal.
Create an empty AIHotple-Lab folder and extract the source ZIP into it. The graph-sample folder must directly contain main.mjs and catalog.mjs. Open AIHotple-Lab in File Explorer, type powershell in its address bar and press Enter.
The fictional items total 10,000: two Paper items at 3,000 and one Pen at 4,000. main.mjs calls total(items) through createReceipt. If Node.js is installed, node main.mjs independently checks the number; executing JavaScript is not required for extraction.
Official Python downloads for Windows ↗
import {items,total} from './catalog.mjs';
export function createReceipt() {
return total(items);
}
console.log(createReceipt());2. Install and generate the HTML graph
Run the commands below from AIHotple-Lab, in order. Installation needs network access. The package is graphifyy; the executable is graphify. We pin 0.9.91 to match our test. Later releases can differ.
The virtual environment stays outside graph-sample. After Set-Location, the executable path changes from .\.venv to ..\.venv. Calling the executable directly avoids activating scripts or changing PowerShell execution policy.
extract parses the code, cluster-only groups relationships, and export html creates the viewer. This --code-only / --no-label run used no LLM calls and reported zero tokens. That does not describe every Graphify mode.
python --version
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install graphifyy==0.9.91
.\.venv\Scripts\graphify.exe --version
Set-Location .\graph-sample
..\.venv\Scripts\graphify.exe extract . --code-only --max-workers 1
..\.venv\Scripts\graphify.exe cluster-only . --no-label
..\.venv\Scripts\graphify.exe export html
Start-Process .\graphify-out\graph.html3. Inspect the three output files
In graph-sample/graphify-out, find graph.json, GRAPH_REPORT.md and graph.html. The final command opens the HTML viewer. It loads vis-network from unpkg.com, so viewing requires network access.
A fresh reproduction produced 5 nodes, 7 edges and 2 communities. Nodes are the two files, items, total() and createReceipt(). Counts depend on fixture and version; communities are relationship groups, not filesystem folders.
| Output | Use |
|---|---|
| graph.html | Browse nodes and edges |
| GRAPH_REPORT.md | Read counts and summary |
| graph.json | Inspect structured nodes and relationships |

4. Ask whether createReceipt calls total
Run these terminal commands from graph-sample. path finds a route, explain shows source and relations, and query retrieves surrounding information. These are shell commands, not chat prompts.
The result contains createReceipt() --calls [EXTRACTED]--> total(), a one-hop route. Compare it with return total(items) in main.mjs. EXTRACTED describes how this relationship was obtained; it does not certify the entire program.
explain total points to catalog.mjs. Read that definition to check the calculation. An unknown name can produce “No node matching … found”; inspect actual labels in graph.json or query before retrying.
..\.venv\Scripts\graphify.exe path createReceipt total
..\.venv\Scripts\graphify.exe explain total
..\.venv\Scripts\graphify.exe query createReceipt --budget 4005. Resolve common first-run problems
If the executable is missing, check the current folder and use ..\.venv\Scripts\graphify.exe from graph-sample. Check that Python meets the requirement and installation succeeded.
A “yielded no symbols” warning can mean there is no definition to extract. Our original bare console.log entry was less useful than the named createReceipt function in this fixture; that is not evidence that all .mjs files fail.
PDFs, images and prose may need a semantic backend. Check their documented conditions separately. The Quickstart also describes assistant skills, but our tested route here is the standalone CLI.
Apply it to one real question
Choose a question such as where an order total is calculated, start with a small source folder and compare the discovered relationship with the original. Expand when the result helps you navigate.
The result ZIP contains the actual JSON, report, HTML and exported notes from this run. Continue with the same output in the next article.
Sources & verification
Tested on Windows with Python 3.12.14 and Graphify 0.9.91: code-only extraction, HTML export and graph queries. Counts describe this fixture, not PDF processing or assistant integration performance.
- Graphify · Installation
- Graphify · Local development
- Graphify · Querying
- Graphify · Quickstart
- Graphify-Labs · Source repository
- Python · Windows downloads
Sources checked: 2026.10.15



