Plugin: dsh-water-reminder - Syncing hydration reminders with a dynamic schedule in DeepSeek Studio

Introduction

When writing code or tuning agents for long periods in DeepSeek Harness (DSH), it’s easy to go an hour or two without touching your water cup. System calendar alarms or fixed hourly reminders are often dismissed immediately—their regularity is too predictable, so the brain automatically ignores them. The community plugin dsh-water-reminder (maintained by Smallballoons01, npm package name @dsh-plugin/water-reminder, current version 0.3.0) makes “hydration reminders” a first-class citizen within the Harness: during a live session, it draws a random interval of 40–60 minutes and triggers simultaneously via three independent channels; if you miss one, the other two may still get through.

The following sections cover what it is, what it does, and how to install and configure it.

What Is This

dsh-water-reminder is a hydration reminder plugin for DeepSeek Harness: it has zero runtime dependencies (the Harness provides peer dependencies such as @deepseek-ai/dsh-tools at runtime) and offers a sidebar countdown, settings page, and an embedded hydration-coach skill under the Web profile.

In the SkillHub community directory, the plugin is categorized as “Fun/Cosplay”; the GitHub repository Smallballoons01/dsh-water-reminder uses the MIT license and requires Node.js ≥ 20. The development target Harness version is around 0.2.1-alpha.4 (the README installation instructions mention that when DeepSeek Harness ≥ 0.2.1-alpha.3 has hot reload enabled, code updates may not require a restart).

Why 40–60 Minutes Random

The README explains: a fixed cycle easily leads to the habit of “shutting off the reminder when it chimes”; after each reminder ends, the next interval is re-randomized from [intervalMinMinutes, intervalMaxMinutes], making the rhythm unpredictable. The goal is to reduce the probability of being ignored. The default range is 40–60 minutes, which can be modified in the configuration (the effective range is clamped to 5–720 minutes).

Core Features

Three Reminder Channels

Channel Implementation Dependency
OS Notification Uses osascript on macOS, WinRT toast on Windows, notify-send on Linux ctx.subprocess (provided by dsh-base)
In-session Nudge Injects plugin messages into every live root session; the assistant delivers a one-sentence reminder agents service
Browser Notification Sidebar panel watches reminderSeq; the tab pops up a notification itself Page open + user authorization

Additionally, there is a sidebar countdown panel, a settings page, and the embedded hydration-coach skill (see below).

Agent Tools

Tool Purpose
water_status Daily intake, remaining amount, cup count, target streak, current interval, quiet hours, next reminder, 7-day sequence (tool output is compact single-line text without nested arrays)
water_log Records a cup (defaults to configured cup capacity; milliliters and note can be passed); append-only, no deduplication
water_snooze Postpone the next reminder, default 5 minutes
water_control start / stop / set-band / set-goal / remind-now / reset

water_control writes runtime overrides to the state file and does not directly modify profile configuration; reset clears overrides and returns to configuration defaults.

Web Interface

  • Sidebar Bottom 💧 Button: Displays a countdown to the next reminder (shows “Paused” when off, ✅ when goal met); the panel contains a daily progress bar, cups/streak/interval, next reminder, 7-day bar chart, +250ml logging, snooze, remind now, pause/resume, and a control to request browser notification permission.
  • Settings Page: Complete form for interval, goal, quiet hours, channels, etc.; writes to $DSH_HOME/settings.yaml and hot-reloads; changing the interval or quiet hours immediately re-arms the timer.

Fields marked “(restart)” such as promptSection and skill are read at load time and require reloading the Harness after changes.

hydration-coach Skill

The same set of instructions has two delivery methods:

  1. Runtime Registration: Registered via ctx.skills.register() upon mounting. The model sees hydration-coach in the skill directory without needing a filesystem skill root.
  2. Disk Copy: skills/hydration-coach/SKILL.md, for deployments using paths like ~/.dsh/skills.

skill.js is the single source of truth; npm test verifies that SKILL.md matches the embedded body byte-for-byte. After editing the body, you must run npm run skill.

Skill convention: When receiving a reminder, the assistant should only say a short sentence, not launch into health lectures, and not interrupt the current task; it covers logging rules, how to adjust rhythm, rough goals based on body weight (30 ml × kg), tone, and safety boundaries (no medical claims).

Reminder Loop Behavior (Summary)

  • State is saved in $DSH_HOME/water-reminder.json (default, configurable via stateFile), written via a temp file and rename to avoid truncation during crashes.
  • No backlog catch-up after restart: An expired nextDueAt triggers a re-randomized interval rather than delivering all missed reminders at once.
  • If a reminder is drawn during Quiet Hours, it is postponed until the end of the window, rather than re-drawn within the window.
  • remind-now only fires once and does not reset the pending next reminder rhythm.
  • Unloading the plugin waits for queued state writes to complete; timers are unref()‘d so they won’t hold the process open on their own.

Installation and Activation

The official README provides the following installation methods (requires DeepSeek Harness ≥ 0.2.1-alpha.3; reload the harness after installation; a restart of dsh web is required for fresh installs or when switching promptSection / skill):

# Local checkout (writes to the profile's package.json and dsh.profile.bundles)
dsh plugin --profile web add link:/path/to/water_reminder

# Or from a packaged tarball
pnpm pack && dsh plugin --profile web add ./dsh-plugin-water-reminder-$(node -p "require('./package.json').version").tgz

Notes:

  • Do not keep two water-reminder entries in the same profile—each will start an independent timer and register /water/api prefix routes; duplicate routes will prevent the entire plugin tree from starting.
  • Rebuilding the profile with dsh … --from-default-profile will replace that profile (including the plugin list), so you need to re-add this plugin afterwards.

Configuration

Override in the profile’s cordis.patch.yml (the plugin comes with a default cordis.patch.yml; user patches replace the entire entry config, so when changing one item, you must write out all fields you still wish to keep):

Field Type Default Meaning
enabled boolean true Whether to run the loop at startup
intervalMinMinutes number 40 Lower bound of random interval (minutes)
intervalMaxMinutes number 60 Upper bound of random interval (minutes)
dailyGoalMl number 2000 Daily goal (ml)
cupMl number 250 Default milliliters per cup
snoozeMinutes number 5 Default postponement minutes for water_snooze
quietHours.enabled boolean false Whether to enable local time quiet window
quietHours.from / .to string 22:00 / 08:00 Window (can span midnight)
notify.os boolean true OS notifications
notify.agent boolean true In-session nudges
notify.sound boolean true Whether OS notifications play a sound
stateFile string $DSH_HOME/water-reminder.json Persistent state path
promptSection boolean true Whether to inject reminder brief into system prompt
skill boolean true Whether to register the hydration-coach skill

The interval, goal, and cup capacity are clamped to [5, 720] minutes, [200, 20000] ml, and [50, 2000] ml respectively.

Typical Usage

  1. Use the command above to add the plugin to the web profile and reload / restart the Harness.
  2. Open the Web interface, view the countdown and daily progress in the sidebar 💧 panel; if browser notifications are needed, use the 🔔 control within the panel to complete user gesture authorization.
  3. In the conversation, ask the assistant to call water_log to record a cup, or water_status to check progress; use water_snooze to postpone, or water_control with remind-now to trigger an immediate reminder.
  4. Adjust goals, intervals, quiet hours, and channels in the settings page; restart dsh web as prompted after changing promptSection / skill.

Use Cases and Caveats

Who it is for: Developers already running DSH Web locally or in a team environment who want to do long-duration pair programming / agent tuning without relying entirely on external alarms or mobile apps.

Runtime and Security: The plugin runs with the current dsh process privileges, calling subprocesses to send OS notifications and reading/writing state and settings under $DSH_HOME. Before installing, you should review the repository source code and the MIT license to ensure compliance with your environment policies.

Known Limitations (from README):

  • Reminders only exist while the Harness process is alive; there are no emails, SMS, or independent push notifications; after the process exits, only the OS channel (if the process is running) may still be effective.
  • Windows toast depends on WinRT; if PowerShell is restricted by policy, the OS channel may degrade to a log line, while the other two channels can still trigger.
  • Browser notifications require user gesture authorization.
  • The 7-day sequence chart is only displayed in the panel; water_status returns compact text.

Links

SkillHub is an independent community site and has no official affiliation with DeepSeek / High-Flyer; the plugin is distributed as part of the “everything is a plugin” DSH ecosystem, rather than as a built-in application in an official app store.

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

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

Xiaoye