
roam-code
by Cranot·★ 461·综合分 54
本地代码库智能CLI和MCP服务器,分析代码结构、依赖关系和模式,为开发者和AI代理提供实用洞察。
概述
Roam-code是一个全面的本地代码库智能解决方案,将仓库解析为SQLite支持的图形,提供28种语言的238个命令和224个MCP工具。它提供代码上下文检索、变更安全分析、算法风险审查和重复/形状检测等功能。该服务器帮助AI代理理解代码库结构,在变更前识别潜在问题,并通过自动分析维护代码质量。
试试问 AI
装完之后,这里有 6 个你可以让 AI 做的事:
什么时候选它
当您在复杂的代码库中使用AI编程助手,需要理解结构关系并确保算法正确性而不仅仅是传统代码审查时,选择roam-code。
什么时候不要选它
如果您只需要一个简单的轻量级代码检查器,或者需要基于云的分析,因为roam-code完全本地运行且没有SaaS产品,请避免使用。
此 server 暴露的工具
从 README 抽取出 12 个工具understandGet 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
可对比工具
安装
pip install roam-code
cd your-repo/
roam understand对于Claude Desktop,将其添加到您的config.json中:
{
"mcpServers": {
"roam": {
"command": "roam",
"args": ["mcp"]
}
}
}FAQ
- roam-code与其他代码分析工具有何不同?
- Roam-code创建全面的代码库图形,包括符号、依赖关系、调用图、架构层和git历史,提供超越简单模式匹配的结构化上下文。
- roam-code如何确保变更安全性?
- 通过预检查、影响分析、受影响测试识别和差异批评功能,帮助理解代码变更会影响哪些部分。
roam-code 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。