roam-code provides instant codebase comprehension for AI coding agents.
233 commands, 149 MCP tools, 28 languages, 100% local, zero API keys.
- Getting started tutorial: https://roam-code.com/docs/getting-started
- Command reference with examples: https://roam-code.com/docs/command-reference
- Architecture diagram and subsystem guide: https://roam-code.com/docs/architecture
pip install roam-code
pip install "roam-code[mcp]" # optional: MCP server supportOr with isolated environments:
pipx install roam-code
# or
uv tool install roam-coderoam --versioncd /path/to/your/project
roam init # index + fitness rules + CI workflowThis creates .roam/index.db (the codebase graph), .roam/fitness.yaml
(architectural rules), and .github/workflows/roam.yml (CI workflow).
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 233 commands (+ alias pairs).