Codegenome documentation

Get started instantly

pip install codegenome
codegenome analyze .
[Parse]

Build an AST

Localized tree-sitter loops convert source files into Abstract Syntax Trees — fast and language-aware.

[Map]

Graph Dependencies

Links imports, calls, and class relationships into an on-disk SQLite graph in your .genome/ folder.

[Stream]

Serve to AI Agents

Acts as an MCP Server, streaming ultra-low-token context windows straight into Cursor, Claude, or any MCP client.

Quick start

Install, analyze your repo, and open the TUI in five minutes.

Installation

Python 3.11+, pip, editable dev install, and first graph build.

CLI commands

analyze, export, mcp-start, evolve, tui, and more.

MCP server

Connect Cursor, Copilot, Claude, and other agents to your graph.

First steps

  1. Install the package
    pip install codegenome
  2. Build a graph in your project
    cd /path/to/your/project
    codegenome analyze .
  3. Explore with the TUI (Recommended) or export
    codegenome tui
    codegenome export --format html --path .

    The Terminal UI is the most user-friendly way to manage your workspace, start servers, and analyze code. We highly recommend using it as your primary dashboard.

Documentation sections

Getting started

Topics

How-to guides

Reference

Tip

New to the project? Read Overview, then follow Quick start. For AI editors, jump to Cursor + MCP setup.