| Command | Group | Purpose |
|---|---|---|
scan |
pipeline | Discover source files |
parse |
pipeline | Parse files into AST records |
extract |
pipeline | Generate graph events |
load |
pipeline | Load events into Neo4j + build search index |
query |
query | Run Cypher against Neo4j |
search |
query | Full-text search over extracted nodes |
ask |
query | Template-based NL-style queries |
compare |
query | Compare two projects |
impact |
query | Trace callers of a symbol |
delta |
diff | Detailed snapshot delta report |
snapshots |
diff | Snapshot lifecycle (create/list/diff/report) |
analyze |
analysis | Metrics, hotspots, security, refactor patterns |
enrich |
enrichment | Repo catalog enrichment workflows |
doctor |
diagnostics | Validate environment and connectivity |
completions |
diagnostics | Shell completion guidance |
Discover files from configured projects.
codegraphx scan
codegraphx scan --config config/projects.yaml --settings config/default.yamlParse scanned files into AST-like summaries. Uses tree-sitter when available,
falls back to stdlib ast (Python) or regex (JS/TS). Results are cached by
content hash so unchanged files are skipped on re-runs.
codegraphx parse
codegraphx parse --settings config/default.yamlGenerate graph events from parse output. Resolves intra-project
CALLS_FUNCTION edges after the full function map is built.
codegraphx extract
codegraphx extract --no-relations # skip edge eventsIncrementally load events into Neo4j. Skips events already in the graph.
After a successful load, rebuilds the SQLite FTS search index (data/search.db).
codegraphx load
codegraphx load --force-full # ignore incremental state, reload everything
codegraphx load --no-snapshot # skip snapshot creation
codegraphx load --snapshot-label v1 # tag the created snapshotSearch extracted nodes by name or path. Uses the SQLite FTS5 index
(data/search.db) when available (built by load). Falls back to an O(n)
JSONL scan before the first load.
codegraphx search authenticate
codegraphx search parse --index functions # functions only
codegraphx search handler --index symbols # symbols and modules only
codegraphx search run --project dreamextractor # filter to one project
codegraphx search auth --limit 50Execute a Cypher string or .cypher file against Neo4j.
codegraphx query "MATCH (f:Function) RETURN f.name LIMIT 10"
codegraphx query "MATCH (f:Function) RETURN f.name LIMIT 10" --safe
codegraphx query path/to/query.cypher--safe enables a lexical write-guard. Queries matching write clause patterns
(CREATE, MERGE, DELETE, SET, REMOVE, DROP) are rejected.
Template-based NL-style query helper. Currently a stub -- outputs the interpreted query plan without executing against a live LLM.
codegraphx ask "show duplicate functions" --project my_projectCompare two projects side by side.
codegraphx compare project_a project_bTrace direct and transitive callers of a function via CALLS_FUNCTION edges.
codegraphx impact authenticate_user
codegraphx impact run --project dreamextractor --depth 4 --limit 100codegraphx snapshots listUses load.state.json hashes when available, otherwise hashes events.jsonl.
codegraphx snapshots create --label baselinecodegraphx snapshots diff <old_snapshot> <new_snapshot>
codegraphx snapshots diff <old> <new> --show-keyscodegraphx snapshots report <old> <new> --output report.jsonDetailed snapshot delta with categorised changes.
codegraphx delta <old> <new>
codegraphx delta <old> <new> --show-lists --output delta.jsonAll analyze subcommands accept --project to filter to a single project.
Function fan-in and fan-out via resolved CALLS_FUNCTION edges.
codegraphx analyze metrics
codegraphx analyze metrics --project codegraphx --limit 30Top 25 functions by total coupling (fan-in + fan-out).
codegraphx analyze hotspots
codegraphx analyze hotspots --project dreamextractorName-pattern based security signal queries (auth, crypt, exec, etc.).
codegraphx analyze security
codegraphx analyze security --category authAggregate debt-style summary across the loaded graph.
codegraphx analyze debtName-filtered refactor candidates.
codegraphx analyze refactorFunctions sharing the same signature_hash.
codegraphx analyze duplicatesPattern-oriented function search.
codegraphx analyze patternsMulti-section summary report covering metrics, hotspots, security signals, and debt.
codegraphx analyze full
codegraphx analyze full --project codegraphxEnrichment commands support batch repo analysis workflows using a local SQLite catalog.
Rank candidate repos from a SQLite project catalog.
codegraphx enrich backlog --db catalog.db --limit 20Run chunked scans against a target root directory.
codegraphx enrich chunk-scan --root C:/path/to/repos --chunk-size 10Plan or execute a ranked enrichment campaign.
codegraphx enrich campaign --plan --db catalog.db
codegraphx enrich campaign --run --db catalog.dbAudit recommended SQLite indexes for a catalog database.
codegraphx enrich index-audit --db catalog.dbCompute collector-style project signals (file counts, language breakdown, etc.).
codegraphx enrich collectors --db catalog.dbCompute similarity and intelligence signals across catalogued repos.
codegraphx enrich intelligence --db catalog.dbValidate config files, required Python modules, optional Neo4j connectivity, and the FTS search index.
codegraphx doctor
codegraphx doctor --skip-neo4j # skip Neo4j connectivity checkChecks reported:
| Check | Passes when |
|---|---|
projects_config_exists |
config/projects.yaml found |
settings_exists |
config/default.yaml found |
projects_loaded |
Projects config parsed without error |
settings_loaded |
Settings file parsed without error |
search_db |
data/search.db exists (warns if scan exists but index is missing) |
module_* |
Required Python packages importable |
neo4j_connection |
Bolt connection to Neo4j succeeds |
Print shell-completion guidance.
codegraphx completions powershell
codegraphx completions bash