Skip to main content

DiffSense CLI

mcp-name: io.github.goldensupremesaltedfish/diffsense

定位:PR 阶段的变更风险守门人(Change Risk Gate),针对当前 diff 判断是否引入回归风险。设计目标:少告警、高精度、低延迟、结果可解释。


快速开始

场景 操作
GitHub PR 审计 将 quickstart 中的 GitHub workflow 复制到目标仓库的 .github/workflows/diffsense.yml,提交并创建/更新 PR 即可触发审计。
本地 diff 审计 执行 pip install -e . 后,运行 diffsense replay <path-to-diff>。

完整步骤与可选配置见 docs/quickstart.md。所有用户文档与契约索引见 docs/README.md。


推荐配置(可选)

在仓库根目录添加 .diffsense.yaml 可启用 官方推荐配置,适用于大多数团队,无需逐项调参。


文档索引

文档 说明
docs/README.md 文档总索引(用户文档与契约列表)
quickstart.md 快速开始:GitHub workflow 与本地审计步骤
recommended-config.md 官方推荐配置与默认行为承诺
ignoring.md 忽略规则与误报处理
ci-cache.md CI 缓存配置与使用
rule-quickstart.md 自定义规则开发入门(10 分钟上手)
signals.md Signal 列表(规则只消费,不产生)
contribute-rules.md 贡献审计规则(上游 vs 插件)

10 分钟写一条规则: rule-quickstart.md · diffsense signals


开发与贡献

pip install -e ".[dev]"
pytest tests/ -v

详见 CONTRIBUTING.md。

Metadata

Release files for diffsense 2.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for diffsense 2.3.0
File Size Uploaded
diffsense-2.3.0.tar.gz 127.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for diffsense 2.3.0
File Interpreter ABI Platform
diffsense-2.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 255.8 kB

Release files / diffsense-2.3.0.tar.gz

Download URL diffsense-2.3.0.tar.gz
Size 127.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1e0d4c747fb70d65d446a8c86f7eccbe62b1c4a3645579a2a624ef34094e99b3
BLAKE2b-256 checksum
How to use checksums
ee27e3ff665aa04a463ee79ce94c6493c4a06a681f01e380f9883f8d2a87f6b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Release files / diffsense-2.3.0-py3-none-any.whl

Download URL diffsense-2.3.0-py3-none-any.whl
Size 128.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07a8171298660190c57e783e9981a26d107b874886c74e6f9a214d66825bd2b1
BLAKE2b-256 checksum
How to use checksums
72c662099c7c19816bda333dbc642c82d63a5b59872a6adb7bf7e0c3f6aefe60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Release history Release notifications | RSS feed

This release

2.3.0 This release

2 release files

2.2.13

2 release files

2.2.12

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page