Legacy flag CLI

Do not mix CLIs

Use either codegenome <subcommand> or python -m codegenome --flags. Mixing subcommands with legacy flags causes unrecognized arguments errors.

Invocation

python -m codegenome --help

Build & export

python -m codegenome --workspace . --build
python -m codegenome --workspace . --build --full
python -m codegenome --workspace . --build --export json html markdown graphml cypher obsidian

Watch & live graph

python -m codegenome --workspace . --build --watch --watch-debounce 10
python -m codegenome --workspace . --build --live-graph --live-graph-interval 60

MCP

python -m codegenome --workspace . --build --mcp --watch

Timeline queries

python -m codegenome --workspace . --dump-timeline
python -m codegenome --workspace . --dump-timeline --node-id "file:src/main.py"
python -m codegenome --workspace . --dump-changes --snapshot-from 1 --snapshot-to 3
python -m codegenome --workspace . --dump-churn --churn-limit 10

Flag reference

FlagDescription
--workspace PATHProject root (default .)
--buildRun graph build
--fullForce full rebuild
--watchDebounced incremental rebuild
--watch-debounce SECONDSDefault 30
--live-graphRebuild when file/line totals increase
--live-graph-interval SECONDSDefault 30
--print-metricsJSON file/line counts, exit
--export FMT …Export after build
--db-path PATHCustom timeline DB
--mcpHTTP MCP on 7331 after build
--log-level LEVELDEBUG … ERROR
--dump-timelineTimeline JSON to stdout
--dump-changesSnapshot diff
--dump-churnChurn rankings
--node-id IDFilter timeline dump
--snapshot-from/to IDChange dump range
--churn-file PATHFilter churn
--churn-limit NDefault 25

Requires at least one of: --build, --watch, --live-graph (unless query/metrics-only).