ChatGPTClaudeGrok / X / CursorGemini

dsh-tool-wait-until: An Event-Driven Waiting Primitive for DeepSeek Harness

tongsh6/dsh-tool-wait-until

Skills & AgentsVerified
Listed on 2026-11-05
Page last updated 2026-11-19

An event-driven wait_until tool for DeepSeek Harness that returns the moment a job settles, fails or stalls, and blocks sleep-polling and over-long waits.

dsh-tool-wait-until is a DSH plugin that fills in the waiting step for DeepSeek Harness, replacing the model's habitual sleep polling with a single call that yields a verdict. For waiting on background jobs, teammates, file appearance or log matches, it returns a structured result the moment conditions are met, a target fails, or progress stalls, instead of burning the full timeout. It also injects waiting discipline into the system prompt and blocks long foreground sleeps and over-long waits so the model uses this primitive. Zero dependencies under the MIT license, suited to developers orchestrating long tasks.

How to Install

install
npmdsh plugin --profile web add dsh-tool-wait-until

Replace --profile with the profile name you actually run (see ls ~/.dsh/profiles/): usually web in the browser UI, desktop or desktop-NNN in the desktop app.

Category
Skills & Agents
Platform
DSH Plugin
Author
tongsh6
Distribution
Plugin

dsh-tool-wait-until Key Features

Event-driven waits return on conditionFive-state result with failure reason and output tailStall detection returns on no progressBlocks sleep-polling and over-long waitsZero dependencies, standard JSON Schema
Listed on dsh-plugin.org

dsh-tool-wait-until Repo Summary

What Does It Do?

wait_until is a DSH plugin for DeepSeek Harness that turns idle waiting into an event-driven primitive returning a verdict in a single call. It solves the problem of models sleep-polling for background jobs, teammates, files or log lines, or burning a full timeout: the wait returns immediately when conditions are met, a target fails, or progress stalls. Maintained by tongsh6 under the MIT license, it has zero dependencies and requires DSH 0.2.1 or later.

Core Features

  • One call, one verdict: returns completed / failed / stalled / timeout / cancelled plus elapsed, failure_reason and output_tail, with no second query needed.
  • Event-driven wakeup: job settlement or output growth wakes the wait immediately, independent of the poll interval.
  • Stall detection: no progress for N seconds returns stalled instead of waiting out the timeout.
  • Behavior guard: foreground sleep of 20 seconds or more and waits over 120 seconds are rejected with a ready-to-use replacement call.
  • Multi-condition wait_all: combines job, agent, file and log conditions, and fail_fast returns as soon as any failure signal matches.
  • Sharper failure detection: when the platform records a nonzero exit as completed, the plugin reads the exit code and EXIT=N in output and reports failed itself.

How to Use This Plugin?

After enabling it in DSH, the model calls wait_until whenever it needs to wait for a background job, a teammate, a file or a log match, passing a conditions array, for example waiting on a job and a log line together. Turn on fail_fast or pass a specific signal list for earlier failure, set stall_after_sec as the no-progress threshold, and keep timeout_sec as the overall fallback. The plugin also injects waiting discipline into the system prompt and blocks sleep polling and over-long waits so the model uses this primitive instead.

How to Troubleshoot This Plugin?

When a wait returns failed, read failure_reason and output_tail first and decide whether to retry instead of querying status again. A stalled result means the target made no progress for a long time, so check whether the job or teammate is stuck rather than raising the timeout. A rejected call usually means foreground sleep was too long or the wait exceeded 120 seconds; rewrite it using the replacement call given in the rejection reason.

This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: tongsh6/dsh-tool-wait-until. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.

Install, update, and uninstall this plugin in the Plugin Market of DeepSeek Harness's DSH Plugin Hub
ChatGPTClaudeGrok / X / CursorGemini

DSH Plugin FAQ