Watch & live graph

Evolve command (recommended)

codegenome evolve runs an initial build, starts a local HTTP server for the HTML graph, watches .py files, and optionally broadcasts deltas over WebSocket:

codegenome evolve --live --lan .

Live Graph AI Chat

When viewing the live graph in your browser, you can open the built-in AI Chat panel to query your architecture directly. Supported providers include Ollama (Local/Cloud), OpenAI, Gemini, and Groq. You can adjust the graph context size (minimal to max) to control how much local neighborhood data is sent with each prompt.

Legacy watch mode

The flag-based CLI supports debounced rebuilds and metric-based live graph polling:

# Rebuild after 10s of inactivity
python -m codegenome --workspace . --build --watch --watch-debounce 10

# Rebuild when file/line counts increase
python -m codegenome --workspace . --build --live-graph --live-graph-interval 60

MCP + watch together

For AI agents that need a continuously updated graph:

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

HTTP MCP listens on 127.0.0.1:7331 by default. See MCP server.

When to use which mode

ModeBest for
evolve --liveLocal dev with browser graph + surgical Python updates
--watchHeadless incremental rebuilds (CI laptop, servers)
--live-graphLarge repos where line/file growth triggers rebuilds