roam-code provides instant codebase comprehension for AI coding agents. 50 commands, 16 languages, 100% local, zero API keys.
pip install roam-codeOr with isolated environments:
pipx install roam-code
# or
uv tool install roam-coderoam --versioncd /path/to/your/project
roam init # index + generate agent instructionsThis creates .roam/index.db (the codebase graph) and writes a
CLAUDE.md with roam-aware agent instructions.
claude mcp add roam-code -- roam mcpAdd to your MCP config:
{
"mcpServers": {
"roam-code": {
"command": "roam",
"args": ["mcp"]
}
}
}- Python 3.9+
- No native dependencies (pure Python + bundled tree-sitter grammars)
- Works on Linux, macOS, Windows
- No API keys, no accounts, no telemetry
| Command | Purpose |
|---|---|
roam understand |
Full codebase briefing |
roam search <pattern> |
Find symbols by name |
roam preflight <symbol> |
Pre-change safety check (blast radius + tests + fitness) |
roam context <symbol> |
Files and line ranges to read |
roam diff |
Blast radius of uncommitted changes |
Run roam --help for all 48 commands.