XiaoWind/dsh-loop0

dsh-loop

DeepSeek Harness plugin: a /loop slash command for timed recurring agent loops

AI 分析

核心用途是创建固定时间间隔的自动化任务循环。适合需要高频或定期轮询执行任务(如每 30 分钟修复测试)的用户,支持多种时间单位组合。

パッケージ
dsh-loop
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/08/21

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:XiaoWind/dsh-loop

ドキュメント

README 全文を読む ↗

Usage

CommandResult
/loop 30mStart a loop: tick now, then once every 30 minutes. Keeps any current objective.
/loop 30m fix the testsStart a 30-minute loop toward an objective.
/loop fix the testsStart a loop toward an objective at the default interval.
/loop 1h30mCombined durations are supported.
/loop resumeResume the loop saved before a restart.
/loop or /loop statusShow the running loop.
/loop stopStop the loop.
/loop helpShow help.

Intervals are a whitespace-free sequence of `` tokens where unit is one of ms, s, m, h, d — for example 90s, 30m, 1h30m, 2h.

A leading duration token is the interval and the remainder is the objective; with no leading duration, the whole input is the objective and the default interval applies.

Semantics

  • First tick is immediate. Each later tick fires interval after the agent returns to idle, so a running turn is never interrupted.
  • Saved across restarts. The loop config is persisted to $DSH_HOME/dsh-loop/.json. When you reopen the session after a restart, the plugin asks whether to continue the saved loop (Continue / Stop); /loop resume restarts it manually when no prompt is available. /loop stop discards the saved loop.
  • Manual stop. The loop runs until you run /loop stop, the agent is disposed, or the plugin is unloaded. There is no automatic completion detection.

Configuration

Set config.defaultIntervalMs (milliseconds) to change the interval used by a bare /loop with no leading duration token. The default is 600000 (10 minutes).