dsh-think-budget: Set a character budget for single-step thinking, and force a conclusion when no content is generated consecutively.

Introduction

When running agents with DeepSeek Harness (DSH), the model sometimes spends a long time only outputting its reasoning process and tool calls, delaying the appearance of substantive content in the conversation. It becomes difficult to determine whether the agent is making progress or stuck.

The community plugin dsh-think-budget (maintained by superSizzzz) adds a layer of “thinking beats” to the agent loop: it sets a character limit for single-step reasoning, and inserts a reminder into the session after several consecutive steps with no visible conclusion, requiring the model to write out its current conclusion in the main content before continuing. Once installed, it is effective by default, does not make additional model calls, and only intervenes when limits are exceeded.

What is this

dsh-think-budget is a Cordis plugin for DSH, categorized under model reasoning capabilities. It addresses the “thinking visibility” problem: for the user, invisible content is as if nothing happened. Based on this, the plugin counts steps and reasoning characters, and prompts the model to output a readable conclusion segment first when rules are triggered.

The current version of the plugin is 0.1.0 (see package.json in the GitHub repository), released under the MIT license. You can view the entry on the community directory page skillhub.cn/plugins/superSizzzz/dsh-think-budget, and the source code and documentation are at github.com/superSizzzz/dsh-think-budget.

Core Features

The plugin manages two things and intervenes if either condition is met (both conditions require that the step has not produced visible content; if the reasoning is long but a conclusion has been written, it will not interfere).

  1. Several consecutive steps without visible content: Defaults to 3 consecutive steps. “Visible content” here refers to the parts you can see in the conversation; the model’s reasoning process does not count.
  2. Single-step reasoning exceeds limit: Defaults to a limit of 4000 characters for single-step reasoning, where the step still fails to write visible content.

The implementation is divided into two layers: normally, it writes beat rules into the system prompt to let the model self-regulate; when a limit is truly exceeded, it injects a reminder into the conversation. Example reminder text (the tag is configurable, defaulting to “Thinking Beat”):

[Thinking Beat] Your last 3 consecutive replies have not written visible content, containing only reasoning and tool calls.
Please immediately write your current conclusion in visible text now — it can be short, incomplete, or
"unsure because...", but you must write it out.
After writing it, if you need to continue, then proceed with tool calls.

“Being unsure counts as a conclusion” is an intentional loophole: it only requires the model to say something, not to have figured it out, avoiding fabricated answers just to meet a quota.

Installation and Activation

Environment requirements (from README):

Item Requirement
dsh ≥ 0.1.7-rc.2
Node ≥ 22.6
profile Any; web / tui / headless all supported
Model Any; only routes that generate reasoning processes will trigger “thinking over budget” related rules

The following example uses the web profile for installation. A single command is sufficient; dsh will read the dsh.bundle.patch within the package and merge it into the current profile, eliminating the need to manually write plugin registration:

dsh plugin --profile web add github:superSizzzz/dsh-think-budget

To install to other profiles, replace the name after --profile with your profile name, and install once for each profile.

Uninstallation:

dsh plugin --profile web remove dsh-think-budget

No additional operations are needed after installation. The plugin counts characters as the streamed response passes through; the README states it will not slow down the session. The plugin runs with the permissions of the current dsh process; it is recommended to browse the source code and LICENSE on GitHub before installation to ensure compliance with your environment and requirements.

Configuration Thresholds

Configuration is written into the merged patch logic upon installation, with no separate configuration file or settings UI. To adjust tightness, append a fragment to the end of the corresponding profile’s cordis.patch.yml (the README example path is ~/.dsh/profiles/web/cordis.patch.yml), writing only the fields you wish to change:

- id: think-budget
  config:
    maxStepsWithoutConclusion: 5      # Steps without visible content before reminder, default 3
    maxReasoningCharsPerStep: 8000    # Max reasoning chars per step, default 4000

Changes take effect immediately upon saving; there is no need to restart dsh. If field values are incorrect, the reload will error directly rather than silently falling back to defaults. To be stricter, you can set maxStepsWithoutConclusion: 2 or maxReasoningCharsPerStep: 2500.

Common fields (default values and meanings are from the README):

Field Default Meaning
enabled true Master switch; if false, listeners are not installed
maxReasoningCharsPerStep 4000 Max reasoning chars per step, counted only if no visible content is written; 0 disables
maxStepsWithoutConclusion 3 Consecutive steps without visible content before reminder; 0 disables
minConclusionChars 12 Length of visible content (after whitespace removal) to count as “visible content”, used to filter transitional phrases like “let me see”
cooldownSteps 2 Minimum step interval between two reminders of the same type
maxRemindersPerTurn 5 Max number of reminders per turn
includeSubagents true Whether to include sub-agents; false watches only top-level
systemPromptSection true Whether to write beat rules into the system prompt
downgradeReasoningEffort '' Downgrade reasoning effort when over budget; leave empty for none, documentation suggests keeping empty
reminderTag Thinking Beat Tag inside the brackets of the reminder text
logPath '' Event log path; leave empty for no logging

Typical Usage and Logs

Default usage: Remains quiet after installation, inserting reminders only when limits are exceeded. Two JSONL style event examples provided in the README (session id omitted):

{"at":"2026-09-26T09:15:30.056Z","kind":"no-conclusion-streak","streak":3,"reasoningChars":1840,"visibleChars":0,"toolCalls":2}
{"at":"2026-09-26T09:43:38.767Z","kind":"reasoning-over-budget","streak":1,"reasoningChars":4432,"visibleChars":0,"toolCalls":2}

The first corresponds to 3 consecutive steps with only reasoning and tool calls, and 0 visible content; the second is a single step with 4432 reasoning characters still lacking visible content. The documentation states that after these two triggers, the model’s next reply will include visible content.

Troubleshooting if it is running: The plugin has no UI. You can enable logging in the patch, for example:

- id: think-budget
  config:
    logPath: 'D:/logs/think-budget.jsonl'

Once enabled, the file will first appear with a loading record, where the config field contains the actual effective configuration; each intervention will append an event line. If there are consistently no lines, check if the installation command reported an error.

Permissions and Use Cases

Permissions (Summary from README): Does not make network requests, does not execute commands, does not add or modify the tool list, does not rewrite or delete user messages; on the conversation side, it only appends messages, does not cancel turns or intercept steps; on the disk, it may only write to the file specified by logPath, which is disabled by default.

Who is it for: Tasks with long-chain agents, dense tool calls, and routes that output lengthy reasoning processes; users who want readable progress to appear regularly in the conversation rather than long periods of “silent thinking”.

Notes:

  • Only routes that generate reasoning processes will trigger rules related to reasoning character counts.
  • Can coexist with other plugins that use dsh public extension points.
  • The community directory skillhub.cn is an independent site with no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem philosophy is “everything is a plugin”, and this plugin is one such optional enhancement.

For more detailed judgment rules, dsh interfaces, and known limitations, see How it works in the repository; for development loading and testing, see Development and Testing.

Conclusion

dsh-think-budget uses two simple rules—character count and step count—to write “give a conclusion first, then continue” into the agent loop, improving observability when there is no visible content for long periods. The installation command is fixed as dsh plugin --profile <name> add github:superSizzzz/dsh-think-budget, and thresholds can be overridden as needed in the profile’s cordis.patch.yml.

  • Directory Page: https://www.skillhub.cn/plugins/superSizzzz/dsh-think-budget
  • GitHub: https://github.com/superSizzzz/dsh-think-budget
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye