dsh-culprit
通过二分法自动定位导致测试失败的提交记录。 适合需要快速排查代码库回归问题、寻找错误源头的开发者。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ca610/dsh-culprit說明文件
閱讀完整 README ↗配置
写在 cordis.patch.yml 的 config 里:
- insert:
- id: culprit
name: dsh-culprit
config:
maxSteps: 24
timeoutPerStep: 300000
| 配置项 | 默认 | 说明 |
|---|---|---|
workdir | 会话工作目录 | 默认在哪儿找仓库 |
maxHistoryScan | 500 | 最多往回扫多少条历史 |
maxSteps | 16 | 二分最多探多少次(上限 40) |
maxAutoProbes | 8 | 自动寻好点最多探几次 |
skipLimit | 3 | 连续跳过多少次就放弃 |
timeoutPerStep | 120000 | 单次判据超时(毫秒) |
totalBudgetMs | 600000 | 单次调用总预算(毫秒) |
stateDir | %TEMP%/dsh-culprit | 续跑状态放哪儿 |
allowDirty | false | 允许在脏工作树上跑(不推荐,checkout 可能失败并记为跳过) |
shell | 自动 | powershell / pwsh / cmd / bash / sh |
firstParent | true | 只看第一父历史 |
requireBadAtStart | true | 先验证坏点确实坏 |
keepState | true | 是否落盘续跑状态 |