Blarify Quickstart¶
Status: Shipped. All commands on this page exist in the current binary. Cross-check with
amplihack index-code --helpandamplihack query-code --help.
This how-to imports a blarify JSON export into the code graph and runs a sanity query.
Before you start¶
You need:
- amplihack-rs built (
cargo build --release) and onPATH - A blarify JSON export for your project (produced by upstream blarify)
- Optional: SCIP indexers if you also want to use
index-scip(see Index a Project)
Steps¶
1. Locate or generate the blarify JSON¶
Blarify itself is out of scope for this guide; produce the JSON with your existing blarify pipeline. The importer expects the path on the command line.
2. Import the JSON into the code graph¶
To put the resulting database somewhere other than the default location:
The legacy --kuzu-path alias is still accepted for backward
compatibility but is hidden in --help.
3. Verify the import¶
You should see non-zero counts for Files, Classes, and Functions.
If everything is zero, the JSON was empty or its schema did not match what
the importer expects — re-run blarify and confirm its output is valid
before re-importing.
4. Run a structural query¶
For the full subcommand list:
When to prefer index-scip instead¶
If your language has a SCIP indexer available
(scip-python, scip-typescript, rust-analyzer --scip, …), prefer
amplihack index-scip — it produces the same downstream graph but with
richer cross-reference information. See
Index a Project.