Command reference

analyze

Tree-sitter scan, AST extraction, graph build, SQLite persistence.

codegenome analyze [PATH]
ArgumentDefaultDescription
PATH.Workspace directory to analyze

Example:

codegenome analyze .
codegenome analyze /home/dev/my-app

export

Export the current graph store. Requires a prior analyze.

codegenome export --format FORMAT [--path PATH]
OptionRequiredDescription
--formatYesobsidian, html, cypher, json
--pathNoWorkspace (default .)
codegenome export --format html --path .
codegenome export --format obsidian --path .

mcp-start

Start MCP server with stdio or HTTP transport for the workspace database.

codegenome mcp-start [--path PATH] [--transport TRANSPORT] [--port PORT] [--lan]
OptionDefaultDescription
--path.Workspace directory to host
--transportstdioTransport method: stdio or http
--port7331HTTP port to bind (if using http)
--lanoffBind HTTP to 0.0.0.0 for LAN access

Note: --lan makes the MCP server available to other devices on the same network.

evolve

Initial build, optional WebSocket live mode, HTTP graph UI, file watcher for .py files.

codegenome evolve [--live] [--lan] [PATH]
FlagDescription
--liveEnable WebSocket broadcast on ws://127.0.0.1:8765
--lanShare live graph over LAN (binds to 0.0.0.0)
PATHWorkspace (default .)

rules

Generate agent instruction files (Cursor rules, Copilot, AGENTS.md, etc.).

codegenome rules [--client CLIENT]... [--port PORT] [--dry-run] [PATH]
OptionDefaultDescription
--clientallcursor, copilot, windsurf, agents, all (repeatable)
--port7331MCP port embedded in templates
--dry-runoffPrint paths without writing
codegenome rules --client cursor --port 7331 .
codegenome rules --client all --dry-run .

tui

Launch the Textual interactive dashboard.

codegenome tui

No arguments. See Terminal UI.