Raphaelutumn/dsh-change-budget0

dsh-change-budget

DeepSeek Harness 安全护栏插件:限制 AI 编码代理在单次交互中可以编辑的文件数量、修改调用次数及提交的字节数。

AI 分析

核心用途是防止 AI 编码代理失控或过度修改本地代码库。适合在使用 DSH 自动编程时希望设立安全边界、控制单次修改范围的用户。限制参数可通过 profile 的配置文件进行自定义。

包名
dsh-change-budget
版本
0.1.0
许可证
MIT
最近更新
2026年8月17日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Raphaelutumn/dsh-change-budget

Configuration

FieldDefaultMeaning
maxFilesPerTurn12Maximum distinct normalized paths in one Agent turn
maxMutationsPerTurn24Maximum admitted structured mutation calls in one Agent turn
maxPayloadBytesPerTurn262144Maximum UTF-8 bytes submitted as new text in one Agent turn

Override the plugin row in the profile's cordis.patch.yml:

- id: change-budget
  config:
    maxFilesPerTurn: 20
    maxMutationsPerTurn: 40
    maxPayloadBytesPerTurn: 524288

Every value must be a positive integer. Invalid configuration fails plugin loading instead of silently weakening the guardrail.