AI Agent Hub
Back to plugins
🧩

dsh-tool-budget

admin-security Updated 2026.08.29

Run the following command in DeepSeek Harness:

dsh plugin install 173787247/dsh-tool-budget

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install 173787247/dsh-tool-budget in DeepSeek Harness to install; the source code is available at https://github.com/173787247/dsh-tool-budget .

About this plugin

In long sessions, an agent rarely repeats the same tool call; it simply rotates through different tools and still burns through your API quota. dsh-repeat-stop blocks identical repeated calls; this plugin caps the total number of tracked tool calls per session. Together they form a complete usage safety net.

The mechanism is straightforward: a configurable maxCalls limit (default 80) governs how many tracked calls are allowed per session, and the 81st is denied outright. Job-status tools (job_*) are excluded by default so long-running shell jobs remain observable. You can fine-tune which tools count via include and exclude, raise maxCalls, or disable the plugin entirely. It is a safety rail, not a licensing constraint.

Ideal for anyone running extended WSL tasks who wants a hard stop before an agent consumes unbounded API quota. No new tools are added; blocked calls appear as dsh-tool-budget: blocked in Trajectory for easy post-hoc review.

Use Cases

  • Prevent tool-call quota burn in long WSL sessions
  • Hard-stop protection when API budget is limited
  • Pair with repeat-stop for a complete usage guard

Best For

  • Users running long WSL sessions
  • Cost-conscious API administrators
  • Ops teams needing usage audit trails