The binary is sciogen. Typer handles routing; all output goes through a Rich
console. Only indexing shows the banner + progress flow; query commands print
their result table and nothing else.
Every command here can also be run as python -m sciogen <command> — useful
when the sciogen binary is not on PATH (see
the quickstart troubleshooting section
for how to fix PATH permanently).
Build or incrementally update the knowledge graph. Bare sciogen (no
subcommand) is shorthand for sciogen index ..
| Flag | Default | Effect |
|---|---|---|
path |
. |
Project directory to index |
--rebuild |
off | Discard the existing index and rebuild from scratch (use after a schema change or embedder switch) |
Output ends with the completion summary a coding agent reads:
✓ Done! 1,204 nodes · 3,456 edges · indexed in 4.2s
Ready. Your codebase is now queryable.
Files that fail to parse are skipped with a single ⚠ line and logged to
SQLite; indexing continues.
Semantic or hybrid search.
| Flag | Default | Effect |
|---|---|---|
--path, -p |
. |
Indexed project directory |
--mode, -m |
semantic |
semantic or hybrid (graph-expanded) |
--granularity, -g |
all | file | class | function | chunk |
--top, -k |
10 |
Number of results |
Who calls a symbol.
| Flag | Default | Effect |
|---|---|---|
--path, -p |
. |
Indexed project directory |
--depth, -d |
1 |
Hops up the call chain |
--min-confidence, -c |
0.0 |
Drop edges below this confidence |
Full blast radius if a symbol changes: transitive callers plus direct
subclasses, implementors, tests, and mutators. Same flags as callers, with
--depth defaulting to 5.
Direct files, transitive files, and external modules a file imports.
Typed node info for one symbol plus its immediate relations.
| Flag | Default | Effect |
|---|---|---|
--path, -p |
. |
Indexed project directory |
--file, -f |
— | Narrow to a specific defining file when the name is ambiguous |
Generate the interactive graph GUI and open it in the browser. path may be a
subdirectory of an indexed project to scope the view. Writes a self-contained
HTML file under .sciogen/ and opens it — no server. See
architecture.md.
Run the MCP server over stdio for agent integration. See mcp.md.
| Flag | Effect |
|---|---|
--version |
Print version and exit |
--help |
Command help (instant — no heavy imports) |