Overview

What is Codegenome?

Codegenome scans source files in your workspace, extracts symbols (functions, classes, modules) and relationships (imports, calls, inheritance), and stores the result as a directed knowledge graph. That graph powers:

How it works

  1. Scan — walk the workspace (respecting .gitignore)
  2. Parse — tree-sitter ASTs for Python, JavaScript, TypeScript, Go, Rust, and more
  3. Build — incrementally merge nodes and edges into a graph store
  4. Persist — snapshot timeline data in SQLite under .genome/watcher.db
  5. Serve — MCP tools answer structural questions for agents

When to use it

Two ways to invoke the CLI

The project provides a modern Click subcommand CLI (recommended):

codegenome analyze .
codegenome export --format json --path .
codegenome mcp-start

It also ships a legacy flag-based CLI for power users and automation:

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

See Legacy flag CLI for the full flag list. Do not mix subcommands with legacy flags in one invocation.

Next steps