dsh-no-long-sit: Desktop Cat Pet and Reminder for Prolonged Sitting and Drinking Water in the DSH Web Interface

Introduction

Developing agents and tuning plugins in DeepSeek Harness (DSH) often means sitting in front of the screen for hours: timers are elsewhere, health reminders rely on self-discipline, and closing the page breaks the context. The community plugin dsh-no-long-sit (maintained by wangzhanchao883) embeds reminders directly into the DSH Web GUI: a draggable cat desktop pet in the bottom right corner, a centered popup with three notification sounds when a focus cycle ends, “Wait a bit” options that provide case studies with source links, and a “End” option that outputs a session evaluation. The timing and ledger are persisted on the host side, so refreshing the page does not reset the cycle.

The following guide explains the plugin in the order of “What it is → What it does → How to install → How to use → Notes”. Facts are based on the GitHub Repository README; for the community directory page, see SkillHub (an independent site with no official affiliation to DeepSeek or High-Flyer).

What is this

dsh-no-long-sit is a client-side (Web) plugin for DSH: the browser renders the desktop pet and popups, while the Node host side is responsible for authoritative timing, state ledgers, and the read-only API. The current version in package.json is 0.1.3; License: MIT.

In one sentence: It reminds you to stand up, walk around, and drink water after a 30–90 minute focus cycle ends; the desktop pet is the carrier, the sedentary reminder is the first implemented capability, and the README indicates that desktop pet capabilities will be expanded later.

Core Features

The Pet

  • Default position is the bottom right corner of the page, with states corresponding to loop animations: idle (lying down), rise (stretching), drink (holding a cup), sleep (sleeping). The animations are Animated WebP played natively by the browser; the plugin does not use frame-by-frame timing.
  • Draggable: Drag it to any position; the position is written to localStorage and remains after page refreshes or DSH restarts. Dragging and clicking are separated: movement exceeding 4 px is considered a drag to avoid accidentally opening menus.
  • Opacity is configurable (petOpacity, default 0.75). If resources are missing or incomplete, it degrades to a built-in cat SVG, avoiding blank spaces.

Sedentary and Hydration Reminders

When the focus cycle ends:

  • Centered overlay popup + three notification sounds (synthesized via Web Audio, no audio files needed; preview available in settings).
  • Three buttons: 【Ready to go】 starts the next round · 【Wait a bit】 shows cases · 【End】 finishes the session.

When the rest countdown ends, it rings again and prompts you to return; if there is no user operation within awaitReturnTimeoutMinutes (default 10 minutes), it automatically starts the next round.

When clicking 【Wait a bit】, the case window displays 1 sedentary case + 1 dehydration case each time, drawn from a built-in library of 17 items (each containing a real source URL and date). The extraction method is a shuffle bag: no repetition within the same cycle, and two consecutive visits will not be identical; the bag state is in localStorage, continuing from the previous progress after a refresh or DSH restart rather than starting over from item #1.

Clicking 【End】 provides a session report: work duration, completed rounds, successful interruption count, postponement count, suggested water intake, and a good / mid / bad rating.

Host and Browser Division of Labor

  • Host (index.mjs + lib/): Authoritative timing and ledger, state file <DSH_HOME>/data/dsh-no-long-sit/state.json (atomic writes); case library; five read-only routes /dsh-no-long-sit/ (routes self-validate CORS, resource path whitelist + sanitization).
  • Browser (client.js): Classic script, no build step; registers to shell.overlay, renders the desktop pet and three windows, polls the host; renders settings cards via ctx.configForms. Config is re-read via settings.describe() on every entry, as changing settings does not automatically reload the plugin.

Installation and Activation

Environment requirements (README):

  • DSH 0.1.7–0.2.x, configured with a Web GUI (web profile, or desktop application).
  • Node.js ^22 or >=24.

A DSH restart is required after installation (bundles are composed at boot).

Official installation command:

dsh plugin --profile <profile> add dsh-no-long-sit
# restart DSH afterwards: bundle layers are composed at boot

You can also add it via the repository URL:

dsh plugin --profile <profile> add https://github.com/wangzhanchao883/dsh-no-long-sit

Replace <profile> with the DSH profile you actually use.

Typical Usage

  1. Install and restart DSH, open the DSH page in the browser, and confirm the cat appears in the bottom right corner (if “Floating Desktop Pet” is off, enable it in settings).
  2. Open Settings → Plugins → Cat Pet · Sedentary Reminder, and configure salutation/address, focus cycle (30–90 minutes), rest cycle (3–15 minutes), postponement interval and limit, bell switch and volume, pet opacity, “return” timeout, rating thresholds, case refresh, and whether to show the floating pet, etc.; changes take effect within approximately 2 seconds.
  3. Work normally in DSH; when the focus cycle ends, listen for three notification sounds and select Ready to go / Wait a bit / End as needed.
  4. To verify the bell sound, use preview in settings; a click or key press on the page is required before the first ring (browser autoplay policy; the plugin unlocks audio upon first interaction).

There are two safety items in the settings card: Restore defaults (two-step confirmation, atomic write to clear all user overrides and return to schema defaults in one go); a warning bar appears when the debug time scaling is below 1, allowing a one-click restore to normal speed.

Scenarios and Notes

Who it is for: Users who develop or debug agents/plugins in the DSH Web interface for long periods, hoping to complete periodic reminders and case explanations within the same GUI, without losing timing state upon refresh.

Runtime and Permissions: The plugin runs with the permissions of the current dsh process; please check the source code and the MIT license before installing to confirm you accept its behavior (local state files, read-only HTTP routes, optional case refresh calling the host’s web search and host LLM).

Usage Boundaries (README Notes):

  • The desktop pet and popups only appear when the DSH page is open; if all pages are closed, there is no interface to pop up.
  • When case refresh succeeds, only entries with returned URLs from the search are kept; if it fails, the old library is retained, and the reason is shown in settings.

Conclusion

dsh-no-long-sit turns “Focus—Rest—Hydrate” into a configurable, persistent set of workflows within the DSH client: the desktop pet provides visible feedback, the popup and three rings at the designated time pull you away from your chair, the cases come with source links rather than empty slogans, and there is a comparable session report at the end. In the DSH “everything is a plugin” ecosystem, it belongs to the client-side category of health reminder plugins.

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

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

Xiaoye