D
dsh-turn-budget
v0.1.0 · 4 天前发布
Fail-closed per-turn step, tool-call, and provider-token budgets for DeepSeek Harness
README
dsh-turn-budget

dsh-turn-budget is a fail-closed resource governor for DeepSeek Harness. It limits model steps, root and nested tool executions, and exact provider-reported token usage independently for every Agent turn.
The plugin uses public Harness extension points only:
agent/pre-step rejects a model request that would exceed the step or provider-token ceiling.tools/pre-execute denies a tool body before dispatch when the turn has consumed its tool-call allowance.tool/result and turn/end records preserve the resulting policy outcome in the c版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ✅ 兼容 | cordis patch ✅ |
dsh@0.1.0 | ✅ 兼容 | 标准 patch ✅ |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- dsh-turn-budget
- Repo
- git+https://github.com/Nunchakus888/dsh-turn-budget.git
- Engines
{"node":">=22.19.0 <23 || >=24.0.0"}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"}}