
Blast Scope
io.github.Atharva-Jayappa由 GitHub 帳號 Atharva-Jayappa 發布v0.6.1更新於 Oct 24, 2026
Contextual blast-radius scoring for shell commands an AI agent is about to run
發布方自己的服務:Scope (AEC) - Preview
概覽
在 AI 代理執行 shell 指令前評估其破壞性影響範圍,回傳嚴重程度、證據與復原快照。
- 可以做什麼
- Blast Scope 是一套針對 shell 指令的後果評估引擎。它會解析指令,先判斷是否為潛在破壞性指令,再透過安全的唯讀探測(git status/reflog、docker inspect、讀取鎖定檔、SQLite SELECT 計數)估算指令實際會影響什麼。它回傳評分、嚴重等級、理由、證據、可復原性、受影響的相依圖節點,以及逐段拆解的鏈式分析。工具包括 assess_command、index_project、list_snapshots 與 restore_snapshot;PreToolUse 掛鉤可對高風險指令提出建議並建立快照。
- 適用情境
- 當代理或開發者要執行可能刪除檔案、改寫 git 歷史、移除 Docker 磁碟區、解除安裝套件或刪除 SQL 資料表的 shell 指令,並希望在執行前取得建議性風險評分時使用。在具有相依圖的專案中尤其有用,因為同一道指令可能因情境不同而落在低風險或嚴重風險。
- 執行需求
- 透過 stdio 在本機執行,通常使用 uvx blast-scope 或固定版本的本地檢出搭配 uv。未宣告驗證、環境變數或標頭。部分探測需要本機工具或狀態(git 儲存庫、Docker 守護程序、SQLite 檔案、鎖定檔);無法探測時會退回標註為估算的結果。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Blast Scope,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Blast Scope
A consequence engine for shell commands. Blast Scope scores what a command would actually do — before an AI agent (or you) runs it. It doesn't pattern-match syntax into a blocklist; it figures out the command's real target, observes that target with a safe, read-only probe, and returns a structured risk score with evidence.
The whole point is contextual blast radius. The same command gets a completely different score depending on what it would actually hit:
Two commands can be byte-identical and score four bands apart. That gap is the product.
Not a blocklist. Not a replacement for Shellfirm. Not a syscall monitor. It scores structural consequence — advisory, never blocking — and for the rare critical command it captures an undo snapshot first.
How it works
A command flows through a cheap funnel: almost everything is recognized as non-destructive in microseconds and exits silent. Only a flagged destructive candidate pays for a probe.
The eligibility filter is the design boundary. A command class earns a live probe only when both hold: (1) its impact is observable by a strictly side-effect-free read (HTTP-GET sense — never mutate state to assess state), and (2) its undo story is well-known enough to encode in a static table. When a probe can't run here and now (no docker daemon, no DB driver, no creds), the tool degrades to a labeled estimate — it never guesses silently, and it never blocks.
See docs/heuristics.md for the per-class tables, the exact filesystem formula, and calibration.
The five command classes
New classes drop in behind one protocol (triage / assess)
in src/blast_scope/classes/; each class confines
assess to strictly side-effect-free reads.
Status
Calibrated multi-class guardrail with command resolution and a precise dependency graph.
Calibration. Two harnesses, both run-it-yourself:
- In-repo corpus (
tests/fixtures/eval_corpus.jsonl, 58 cases spanning every recoverability category, git working-tree state, infra/config,rm -rf .git, a graph-indexed central module, the git/docker/pip/SQL classes, and the resolution layer — unset-var collapses, glob/env-var targets,sh -cpayloads, npm pre-hooks, opaque wrappers, mass destruction of tracked source) — 58/58 exact severity, gate F1 1.00, pinned bytests/test_eval.pywith headroom so changes can't silently regress. - SABER — 716 real coding-agent
workspaces. Against ~1725 safe commands, blast-scope's false-positive rate is
0.58%; on its core competency (
data_destruction) it catches 82.4% of injected attacks on realistic workspaces — on the fast hook path, no graph required, thanks to command resolution (env/glob binding + script transparency). Wrapper transparency also liftscode_tamperingfrom ~0% to 50%. The per-category recall is deliberately uneven, and the table says so: blast-scope scores destructive consequence — filesystem/data loss plus git/docker/pip/SQL state. Network exfiltration and persistence are a different threat model, out of scope by design — not an unfinished corner. That's the boundary, drawn on purpose. Seebench/.
Installation
The fastest path for any MCP client is zero-install via uvx (no clone, no venv):
Claude Code users — one line wires up both the MCP tools and the advisory hook:
For development, or to pin a checkout:
Usage
As an MCP server
Add to your MCP client config (e.g. Claude Code settings.json):
Tools exposed:
As a hook (tiered advice + auto-snapshot)
Intercept Bash commands before they run — advisory, never blocking. Volume scales with stakes: silent on low/medium, advise on high, advise + snapshot on critical. The snapshot skips what's already recoverable (git-clean, regenerable) and warns rather than tars anything over a hard size cap, so the undo net stays fast and trustworthy.
The hooks also keep the dependency graph alive on their own — no MCP call
needed: SessionStart cold-builds it in a detached background process, and
every PreToolUse refreshes it incrementally before scoring (a ~20 ms stat
sweep when nothing changed), so verdicts track the current tree even after a
burst of agent edits. Add to .claude/settings.json:
Full details and the undo flow: docs/hook.md.
Example output
A filesystem command, scored against the dependency graph:
A command class that couldn't probe — note the labeled estimate (no Postgres driver, server possibly remote, so the tool refuses to guess silently):
Development
Project structure
Roadmap
- Lift recall on the destruction classes (glob targets over tracked files,
find-based deletion variants) — the SABER per-category table is the worklist. - Optional live probes for Postgres/MySQL (in-process, read-only) once a driver policy is settled — today those engines degrade to labeled estimates.
- PowerShell-shell awareness in the hook path (the MCP tool already supports it).
- Optional richer interception modes beyond advisory.
See CLAUDE.md for the full spec, contracts, and design rules.
License
Apache 2.0 (versions ≤ 0.3.1 were MIT). The vendored code-review-graph sources remain MIT under their upstream notice — see NOTICE.
來源:README.md,提交 c73f4b5
工具
0版本歷史
1- v0.6.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Scope 整合

Scope (AEC) - Preview
bid.scope官方發布者
Scope(AEC)預覽版伺服器:查詢分包採購層的狀態與路線圖、列出規劃中的服務類別、加入候補名單,並改期已決標專案。

Scope (Legal)
bid.scope官方發布者
Scope(法律版)讓 AI 助理瀏覽法律服務專業人員、派發案件,並管理由此產生的委託事項。

Scope (Claims) - Preview
bid.scope官方發布者
Scope 理賠端專業採購的預覽版伺服器:查詢 V2 狀態與服務類別、加入等候名單,並改期已決標的理賠專案。

MintScope — NFT collection analysis
由 GitHub 帳號 ert1981 發布
NFT系列風險與質量分析,以及新系列發現(OpenSea + 鏈上)。AI 翻譯

FedScope MCP
由 GitHub 帳號 CYAN-ECLIPSE-TECHNOLOGIES-LLC 發布
FedScope MCP 讓助理搜尋聯邦與州政府採購機會,並提供契合度、新進者評分與白話摘要。