dsh-schedule-send: Compose messages in Composer and deliver them to the same conversation on schedule as the user

Preface

When conversing with agents in DeepSeek Harness (DSH), a common requirement is to “write a message now and send it hours later, allowing the model to respond as if it were a normal user message.” The built-in Schedule subsystem in DSH leans more towards reminders: it prompts the model to “present” content to the user in formats like [SCHEDULE REMINDER], rather than treating the text as a user instruction to start a conversation turn.

dsh-schedule-send, published by maintainer Zhiyi-Zhao, is categorized as a client plugin. It provides a scheduled send control next to the input box, delivering drafts to the same session at a specified time. The delivery results in a normal user message with source.kind = 'user', allowing the agent to continue the thread just as if the Send button had been pressed at that moment.

What is this?

In short: You input plain text in the Composer and select a time. Upon expiration, the Host side writes the content into the target session via a public API, triggering an agent reply.

The package name is dsh-schedule-send, with the current release version 0.1.0 (MIT). The plugin is split into a Host half (index.js: queue, commands, delivery) and a Browser half (client.js: controls and cards). It requires no build step and has no additional runtime dependencies beyond the page-shared react / react-dom.

Core Features

The following capabilities listed in the README can be verified in the repository description.

  • Composer Control: A clock button to the left of the send button; supports quick times (30 mins, 1 hour, 3 hours, tomorrow 09:00) or precise local date and time.
  • Queue & Cards: The draft is cleared immediately upon confirmation; a persistent “Scheduled send” card appears in the conversation, recording the queued content and send time, which can be Canceled before expiration.
  • Persistent Queue: The queue is stored outside the workspace at $DSH_HOME/schedule-send/queue.json; tasks expiring while the app is closed are catch-up delivered on the next startup.
  • Delivery Semantics: Delivered via ctx.sessionController.prompt(...); the send id serves as the requestId, combined with exponential backoff retries to prevent duplicate delivery after a crash.
  • Difference from Built-in Schedule: The built-in reminder follows “reminder presentation” semantics; this plugin builds its own queue with “user message + start a turn” semantics.

Installation and Activation

Installation commands follow the GitHub README. The desktop profile name is desktop; for dsh web deployments, replace --profile desktop below with --profile web (or your profile name).

Recommended: Release Package

Download dsh-schedule-send-0.1.0.tgz from Releases, then execute:

dsh plugin --profile desktop add ./dsh-schedule-send-0.1.0.tgz

Install from GitHub

dsh plugin --profile desktop add github:Zhiyi-Zhao/dsh-schedule-send

Example for Web profile:

dsh plugin --profile web add github:Zhiyi-Zhao/dsh-schedule-send

You can also paste the above spec (github:Zhiyi-Zhao/dsh-schedule-send, tarball URL, or absolute path) into the Plugins page in the sidebar; installing from a running app requires danger-full-access permission or approval.

After installing into the desktop profile, it usually takes effect via HMR; if it doesn’t appear, restart DeepSeek Harness. To uninstall:

dsh plugin --profile desktop remove dsh-schedule-send

The plugin runs with the permissions of the current DSH process; please review the source code and MIT license before installing.

Typical Usage

  1. Type a message (plain text) in the Composer of any conversation.
  2. Click the clock button to the left of Send.
  3. Select a quick time, or set a local date and time.
  4. Click Schedule to confirm. The draft clears, and a scheduled send card appears in the conversation.
  5. When the time arrives, the message enters the conversation as a normal user message, and the agent replies here; the card can be Canceled before delivery. Canceling after delivery will indicate that the message has left the queue.

The package also registers internal conversation commands schedule-send and schedule-send-cancel (visible in the slash menu), but daily operations rely on the clock control; manual command input is not necessary.

How it Works (Brief)

Step Location Behavior
Creation Browser The control submits the message, target timestamp, id, and browser IANA timezone via ctx.remote.commands.execute('/schedule-send <json>')
Persistence Host After validation, atomically writes to $DSH_HOME/schedule-send/queue.json
Scanning Host Scans for expired items approximately every 5 seconds, calling ctx.sessionController.prompt({ requestId, sessionId, mode: 'queue', content, clientTimeZone })
Delivery Host Resumes the session if necessary and submits the user message
Feedback Browser Renders a persistent card via conversation.chat.commandview

The README documents a real delivery test (Europe/Copenhagen local time): targeted for 12:24:00, delivered around 12:24:03, with a latency of approximately 3.2 seconds, falling within the 5-second scan interval.

Use Cases and Notes

Suitable for: When you need the agent to process a specific instruction at a fixed time and want to leave a real user message in the thread (e.g., writing “Summarize for me at 9 AM tomorrow” before leaving work, or delayed follow-up questions after a meeting).

Limitations and Risks (Excerpted from official instructions):

  • App must be running at expiration. DSH has no system-level background scheduling; tasks expiring while closed are sent later on the next startup, and cannot be sent while closed.
  • Plain text only; drafts with attachments cannot be scheduled, and the control will be disabled.
  • Delivery resumes the target session and runs a turn, even if the session is not open, potentially consuming tokens and calling tools; approvals still follow that session’s policy.
  • Time accuracy is approximately ±5 seconds (scan interval).
  • Single schedule, no recurring tasks, cannot change time on the card; requires canceling and rescheduling.
  • If the session does not exist or there is no routable model, it will back off and retry (max 60 times), then mark as failed and write to Host logs.
  • Corrupted queue files are moved to queue.json.corrupt-<timestamp>, and the plugin starts with an empty queue.

Compatibility: The README states verification on the desktop app for DeepSeek Harness 0.2.1-rc.2; the Host uses only public services. If ctx.sessionController is missing, tasks remain in the queue and log a warning, without crashing the profile.

Node engine requirements are listed in package.json: ^22.19 || >=24.

Conclusion

If you need “the model to execute what I wrote at a specific time” rather than “remind me to look at it at a specific time,” dsh-schedule-send complements the Composer’s scheduling capabilities using an independent queue and sessionController.prompt.

The community plugin directory is an independent site and has no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem emphasizes “everything is a plugin,” please evaluate permissions and behavior according to your own environment before selecting.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye