
roam-code
by Cranot·★ 461·Score 54
A local codebase intelligence CLI and MCP server that analyzes code structures, dependencies, and patterns to provide actionable insights for developers and AI agents.
Overview
Roam-code is a comprehensive local codebase intelligence solution that parses repositories into a SQLite-backed graph, providing 238 commands and 224 MCP tools across 28 languages. It offers features like code context retrieval, change safety analysis, algorithmic risk review, and dry/shape detection. The server helps AI agents understand codebase structure, identify potential issues before changes, and maintain code quality through automated analysis.
Try asking AI
After installing, here are 6 things you can ask your AI assistant:
When to choose this
Choose roam-code when working with AI coding assistants on complex codebases where you need to understand structural relationships and ensure algorithmic correctness beyond traditional code review.
When NOT to choose this
Avoid roam-code if you need a simple, lightweight linter or if your workflow requires cloud-based analysis since it runs entirely locally with no SaaS offering.
Tools this server exposes
12 tools extracted from the READMEunderstandGet a full briefing of the codebase
contextGet files to read with exact line ranges for a given symbol
retrieveGet graph-aware spans for free-form natural language tasks
preflightCheck blast radius + tests + complexity before making changes
critiqueVerify a patch for clones not edited and hot paths
healthGet a composite health score (0-100) for the codebase
diffShow blast radius of uncommitted changes
stale-refsFind dangling links, hrefs, and broken anchors across the repo
mathDetect code that is correct but computationally expensive
smellsFind code duplication and structural issues
pr-analyzeAnalyze pull requests for completeness and correctness
impactDetermine the impact of changing a specific symbol
Comparable tools
Installation
pip install roam-code
cd your-repo/
roam understandFor Claude Desktop, add this to your config.json:
{
"mcpServers": {
"roam": {
"command": "roam",
"args": ["mcp"]
}
}
}FAQ
- What makes roam-code different from other code analysis tools?
- Roam-code creates a comprehensive graph of the codebase including symbols, dependencies, call graphs, architecture layers, and git history, providing structural context that goes beyond simple pattern matching.
- How does roam-code ensure change safety?
- Through features like preflight checks, impact analysis, affected test identification, and diff critique capabilities that help understand what would be affected by code changes.
Compare roam-code with
Last updated · Auto-generated from public README + GitHub signals.