opendrs
What it does
PR blast radius and 0-1 risk score from git history, so low-risk PRs can be auto-approved.
- Connects 在你的电脑上运行
- Account or key No key needed
- Category 开发者工具
安装
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月13日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "mcpServers": { "opendrs": { "command": "npx", "args": [ "-y", "@error-path/opendrs", "mcp" ] } } }退出 Claude 再重新打开
试一试
用 opendrs 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 opendrs,或回答中出现 opendrs 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 opendrs
opendrs 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 opendrs 的应用
- 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要先在电脑上安装 Node.js(只需一次)
- 需要先在电脑上安装 Node.js(只需一次)
- 需要先在电脑上安装 Node.js(只需一次)
B · 开发者工具 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Sentry✓ ChatGPT
- Compiler Explorer✓ ChatGPT
- GitDiagram✓ ChatGPT
可连接 Claude Code,但需要先准备
需要先在电脑上安装 Node.js(只需一次)
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add --scope user opendrs -- npx -y @error-path/opendrs mcp在 Claude Code 中输入 /mcp
应能看到 opendrs 在列表中并显示已连接
试一试
用 opendrs 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 opendrs,或回答中出现 opendrs 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要先在电脑上安装 Node.js(只需一次)
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 opendrs 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 opendrs,或回答中出现 opendrs 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要先在电脑上安装 Node.js(只需一次)
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 opendrs 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 opendrs,或回答中出现 opendrs 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add --scope user opendrs -- npx -y @error-path/opendrs mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"opendrs": {
"command": "npx",
"args": [
"-y",
"@error-path/opendrs",
"mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"opendrs": {
"command": "npx",
"args": [
"-y",
"@error-path/opendrs",
"mcp"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"opendrs": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@error-path/opendrs",
"mcp"
]
}
}
}这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月14日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 error-path 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于昨天
- ✓ 通过
有许可证
使用 MIT
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“开发者工具”中的其他服务器比较i
- 星标数多于此分类中其他 5896 个服务器的 81%
- 发布到注册中心的时间比此分类中其他 5896 个服务器的 93% 更新
- 基础检查结果等于或优于此分类中其他 5896 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
opendrs 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于昨天,最新版本(0.5.2)于前天进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同类别的其他选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Serena MCP: the IDE for your agent
A powerful toolkit for coding, providing semantic retrieval and editing capabilities.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
opendrs: PR blast radius analyzer and risk score for safe auto-approval
A calibrated 0-1 risk score for every pull request, so AI-reviewed, low-blast-radius PRs can be auto-approved into the merge queue while risky ones still wait for a human.
AI agents now write and review code faster than people can read it, so human review has become the bottleneck. Most pull requests are low risk, and a few cause most incidents. opendrs measures each PR's blast radius and risk: what the change touches, how many files depend on it, the history of the files it changes, author experience, missing tests and critical paths. It turns that into a 0-1 score using signals from your own git history. A team then sets a policy. For example, a PR that scores below 0.3 and has passed an AI review (Claude, CodeRabbit, Copilot or any check run) is approved and sent to the merge queue or auto-merge. Riskier PRs still wait for a human. The approach follows Meta's Diff Risk Score (DRS); opendrs is an independent, open-source implementation that runs in any git repository, with no service to host.
Contents: Install · Quick start · How it works · Features · Results · CLI and MCP · Documentation · Limitations · Compared with other tools · Prior art
Install
| Use it as | Command | Details |
|---|---|---|
| GitHub Action | uses: error-path/opendrs@v0 (Marketplace) | Comments, labels and, optionally, approves and merges. GitHub Action reference |
| CLI | npx @error-path/opendrs score | CLI, MCP server, Claude Code plugin and agent skill |
| MCP server (any agent) | npx -y @error-path/opendrs mcp | Tools: score_diff, explain_file_risk, list_hotspots, suggest_reviewers |
| Claude Code plugin (skill plus MCP server) | /plugin marketplace add error-path/opendrs, then /plugin install opendrs@opendrs | |
| Agent skill (Claude Code, Cursor, Codex and others) | npx skills add error-path/opendrs | skills/opendrs/SKILL.md |
| Docker (MCP server over stdio) | docker build -t opendrs . && docker run -i --rm -v "$PWD:/repo" opendrs | Mount the repository to score at /repo |
Website and guides: error-path.github.io/opendrs.
Quick start
Score your current branch against the default branch. No configuration or API key is needed:
npx @error-path/opendrs score
You get a score, a tier (green, yellow or red), the signals that drove it with their evidence, and the policy decision. --json prints the full result, and --fail-above 0.6 makes the command exit 1 above a threshold.
To score every pull request, add .github/workflows/opendrs.yml (or run npx @error-path/opendrs init):
name: opendrs
on: pull_request: types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] permissions: contents: read pull-requests: write checks: read jobs: opendrs: runs-on: ubuntu-latest steps:
- uses: actions/checkout@v5 with: fetch-depth: 0 # required: the score reads past commits and authors
- uses: error-path/opendrs@v0
This only comments and labels. Approval is off until you turn it on in .opendrs.yml on your default branch; see how to auto-approve low-risk PRs and the GitHub Action reference.
How it works
flowchart LR
diff["git diff merge-base...head"] --> signals hist["git history"] --> signals imports["import graph"] --> signals llm["LLM judge (optional)"] --> signals signals["Signals each with evidence and provenance"] --> model["Logistic model score = sigmoid(b + Σ w·x)"] model --> tier["Tier green / yellow / red"] tier --> policy["Policy blocks, size cap, unknowns, AI review, sampling"] policy --> decision["auto-approve deferred-review waiting-ai-review human-review"]
- Signals. Each signal provider reads the diff, the history and the import graph and emits features: size, how spread out the change is, past fixes and reverts in the touched files, the author's experience with them, complexity, blast radius (transitive dependents), critical paths and missing tests. Every signal records how it was obtained (
observed,derived,inferredorunknown) and the evidence behind it. All signals - Model. A logistic regression turns the features into a probability. Each signal's contribution
w·xis reported, so you can see why a PR scored what it did. Out of the box the weights are hand-set priors;opendrs calibratefits them to your repository. Calibration and backtesting - Tiers. The score maps to green, yellow or red, mirroring Meta's gates. Thresholds can be absolute scores or percentiles of your own history.
- Policy. Ordered rules turn the score into a decision. Policy and safety rails
Where opendrs sits in your PR flow
A PR now often gets two rounds of AI review before a human looks at it. Those rounds catch local defects: typos, missing null checks, an obvious off-by-one. By the time a human opens the PR, that work is done, and what is left is a design and architecture judgment call made with less context than before. opendrs is built for that moment: it tells the final human how much attention the PR needs and names up to five architecture and history facts — a new import between modules, a broken public contract, a file that usually changes with one the PR didn't touch — that neither the editor nor the AI review comments showed. See the captain brief.
Features
| Feature | What it does | Default | Docs |
|---|---|---|---|
| Risk signals | Size, spread, file history, author experience, complexity, blast radius, critical paths, tests, language | on | Signals |
| Calibration and backtest | Fit the weights to your history and measure capture at 5 / 10 / 50 % gated | run on demand | Calibration |
| Hard blocks and safety rails | Blocked paths, binaries, submodules, self-modification guard, sampling, stale-approval checks | on | Policy |
| Auto-approval | Approve green PRs after your AI review passes, then auto-merge or the merge queue | off | Auto-approve guide |
| LLM judge | Classifies every hunk into safe or risk categories; can only raise the score | off | LLM judge |
requireSafe gate | Auto-approve only when the judge calls every hunk safe with enough confidence | off | LLM judge |
| Per-source policy | Human, bot or AI-agent PRs get their own stricter green, daily cap and track record | off | Policy |
| Deferred review | A PR just above green lands now and gets a post-merge review | off | Policy |
| Landing delay | An eligible PR waits before approval, so a human can veto | off | Policy |
| Freeze windows | Suspend or tighten auto-approval on weekends or peak dates | off | Policy |
| Content blocklist | Regexes on added lines send a PR to a human | off | Configuration |
| Reviewer assignment | One of the top three experts is asked to review risky PRs | on in the Action | Policy |
| Hotspots | Rank files by risk at rest | run on demand | CLI and MCP |
| Review brief | Ranks hunks to read first, fixed check questions, safe-to-skim list, hard-rule reasons — recipes for claude-code-action, Bugbot, CodeRabbit (limited), Copilot and Codex (paste) | on | LLM reviewers, CLI and MCP |
| Pre-PR self-check | Lists the ids an author agent should fix or explain before opening the PR; opendrs reads the verdicts back from the head commit and adds one advisory line, never part of the gate | off | Self-check recipe |
| Verification pass | One batched LLM call re-checks every captain fact, review-first hunk and check with fresh context and keeps, drops or downgrades each one; never changes the score, tier or policy | off | Verification pass |
| Incident feedback | opendrs feedback records incidents for calibration | run on demand | Calibration |
Every setting lives in .opendrs.yml, read from the base branch so a PR cannot loosen its own gate: configuration reference.
Results
| Benchmark | Result | Details |
|---|---|---|
ApacheJIT (15 Apache Java projects, official 2017–2019 test years, apache/hadoop left out because it has no positive labels) | Calibrated opendrs: AUC 0.823; catches 67 % of buggy commits in its riskiest 30 %, on par with a regression on the classic JIT metrics (0.821, 66 %) | Results on ApacheJIT |
| ApacheJIT with the LLM judge (Claude Sonnet 5, 800 sampled test commits) | At confidence 8, the commits the judge calls all-safe are buggy at 5.3 %, against a 25.5 % base rate | With the structured LLM judge |
| 27 public repositories (calibrate, then backtest) | Calibration beat the default priors on held-out commits in all nine repositories of the first run | Benchmark results |
CLI and MCP
| Command | What it does |
|---|---|
opendrs score | Score merge-base(base, head)..head |
opendrs explain | A file's history, fixes, authors, dependents and path policy |
opendrs hotspots | Rank files by risk at rest |
opendrs calibrate / opendrs backtest | Fit the model to your history; compare default and calibrated models |
opendrs feedback | Record an incident in .opendrs/incidents.jsonl |
opendrs init | Write a commented .opendrs.yml and a comment-only workflow |
opendrs mcp | Run the MCP server |
Flags, exit codes, MCP tools and the agent skill: CLI, MCP server, Claude Code plugin and agent skill.
Documentation
| Page | Read it when you want to |
|---|---|
| Auto-approve low-risk PRs | set up a risk-based approval gate step by step |
| GitHub Action reference | look up inputs, outputs, permissions, branch rules and the scheduled sweep |
| Policy and safety rails | know exactly why a PR was or was not approved |
| Configuration reference | change .opendrs.yml |
| Risk signals | see what opendrs measures and how |
| What is the blast radius of a PR? | understand blast radius |
| LLM judge | turn on the optional LLM judge or the requireSafe gate |
| Feeding the review brief to an LLM reviewer | get opendrs's findings in front of Claude Code, claude-code-action, Bugbot, CodeRabbit, Copilot or Codex |
| The captain brief | know what the final human reviewer sees: priority, reviewer, and the architecture and history facts |
| Verification pass | turn on an LLM re-check of the brief's facts before a human reads them |
| [