DeepSHPlugins
dsh-turn-budget 项目预览
GITHUB / COMMUNITY PROJECT

dsh-turn-budget

Agent 与自动化TypeScriptMIT

dsh-turn-budget:可选的回合步数预算提醒——agent 回合超过配置的步数时,追加一条带来源的提醒让模型尽快收尾。

1 Starsranderous 更新时间 2026-08-13
访问 GitHub 仓库
dsh-turn-budget 项目预览

项目介绍

中文

dsh-turn-budget:可选的回合步数预算提醒——agent 回合超过配置的步数时,追加一条带来源的提醒让模型尽快收尾。

English

Optional turn-step budget reminders: when an agent turn exceeds the configured step count, appends a sourced reminder telling the model to wrap up soon.

项目信息与收录信号

快照 2026-09-11
作者 / 组织
randerous
仓库
randerous/dsh-turn-budget
GitHub Stars
1
Forks
0
开发语言
TypeScript
许可证
MIT
最近推送
2026-08-13
Manifest
未检测到 / 未记录

公开仓库不自动等于可商用;许可证与当前兼容性以原项目文档为准。Manifest 和数据评分不构成安装安全认证。

数据评分

42/ 100
维护活跃
80
文档与实用信息
39
生态关注度
9
安装便捷信号
55
项目声明信号
100

文档较简略;关注度尚低(1)。

评分来自已有数据快照的五维模型,仅作浏览参考,不是实际使用评测或安全检测结论。

安装与使用

所有项目资料与许可均以对应 GitHub 仓库为准。

git clone https://github.com/randerous/dsh-turn-budget.git

复制命令不会自动执行。请先阅读仓库文档,确认环境要求与许可证。

项目截图

仓库 README

GitHub 原文

已保存的仓库文档快照;文档抓取时间未记录,可能与上方目录介绍处于不同版本。安装前请核对当前仓库说明。

dsh-turn-budget

English | 中文

Advisory turn step-budget reminders for DeepSeek Harness.

Opt-in advisory step-budget reminders: when an agent turn exceeds a configured step count, the plugin appends a source-attributed reminder telling the model to wrap up. Advisory only — it never rejects or rewrites a step, so it cannot deadlock the loop. Default compositions leave it disabled; opt in through a profile overlay.

Companion to @deepseek-ai/dsh-turn-meta (per-step metadata); a second first-plugin-style example in the guard group.

Config

- id: turn-budget
  name: '@deepseek-ai/dsh-turn-budget'
  config:
    maxSteps: 12    # optional step budget per turn; default 12
    remindEvery: 4  # optional cadence after the budget; default 4
    enabled: true   # optional master switch; default true

maxSteps and remindEvery must be positive safe integers; any other value fails plugin load. With defaults, steps 13, 17, 21, … get one reminder each.

Reminder semantics

The plugin prepends an agent/pre-step listener and delegates first. It derives the current step from the durable session log (turn/start + step/start), so reminders survive resume and replay. When the derived step exceeds maxSteps by a multiple of remindEvery, it appends one sourced UserMessage; rejection or an in-budget step records nothing.

Each reminder uses the exact snapshot source { kind: 'plugin', plugin: 'turn-budget', form: 'snapshot', sections: [{ name: 'turn-budget', text: <same text> }] }. The ./invariant companion validates that shape, checks the named step against the open step boundary, and fails any reminder at or below its budget.

Model Experience

What the model sees

One line per cadence step past the budget:

[turn-budget] turn=<turn> step=<step> exceeds the <maxSteps>-step budget. Wrap up the remaining work now: prefer one decisive action and finish the turn.

Token effect

One short line per cadence step accumulates until compaction shadows it.

KV Cache effect

None: the reminder carries no state that later preparation steps depend on.

Known Limitations and Deferred Work

  • The budget is per turn; there is no per-session budget yet. Add one by scanning turn/start counts the same way dsh-turn-meta counts prior turns.
  • Reminders are advisory text only; a hard stop would need a separate guard policy.

使用前核对

安装步骤、兼容版本与授权范围以原项目当前文档为准。Stars 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目