Preface¶
When having long conversations or waiting for an Agent to execute in DeepSeek Harness (DSH), developers often have to switch to the system tray, their phone, or another browser tab to check the time. If they need a short countdown (e.g., a break reminder or a timed session), they have to open yet another standalone timer tool. The DSH ecosystem emphasizes “everything is a plugin”: UI capabilities can be extended via bundles without modifying the host core. Below we introduce the community plugin Time & Timer / 时间与计时器 (repo Depar7ure/dsh-time-timer), published by maintainer Depar7ure. It embeds a visual clock in the Harness Web client and comes with a lunar calendar, Chinese statutory holidays, and a timer capped at 15 minutes. The SkillHub directory classifies it as a “networked tool” (optional NTP sync). The directory page and GitHub are independent sources of information and are not officially affiliated with DeepSeek / High-Flyer.
What Is This¶
dsh-time-timer (npm package name dsh-time-timer, current version 0.0.1, license MIT) is a Client + Host bundle for the DeepSeek Harness Web GUI. By default it uses the browser’s system time, refreshing a 24-hour HH:MM:SS display every second. It optionally performs NTP time correction against ntp.aliyun.com via the Host. The homepage / blank session shows a large digital clock card; during a conversation a compact time bar appears in the title bar. Both forms provide a timer entry point. The plugin’s display name is: Time & Timer / 时间与计时器.
Two Clock Forms¶
| Mode | When It Appears | Location and Size |
|---|---|---|
| StartMode | Homepage / blank session (Hero page) | Top-left corner of the conversation area, 256 × 64 px horizontal digital clock card |
| DefaultMode | During any conversation | Far-right end of the left tool area in the title bar (the actions group next to the title), JetBrains Mono 14px |
In StartMode, the top shows the Gregorian year YY/MM/DD (e.g., 26/10/18) plus holiday / rest-day badges (e.g., 国庆节·休 [National Day · Holiday], 春节·班 [Spring Festival · Workday]); the middle focuses on HH:MM:SS visually (HH:MM at 30px, seconds at 18px); the bottom can show the lunar calendar (e.g., 丙午年.九月初九), disabled by default. The DefaultMode time bar has a darker background and a 1px inner border, with the time and a blue timer button centered in the title bar. The timer button is a 64 × 24 rectangle in StartMode and a 24 × 24 square in DefaultMode, with the icon’s accent color set to #27F5F5.
When the session is blank, the DefaultMode slot does not appear; StartMode is rendered via conversation.header.leading, and DefaultMode via conversation.session.header.actions.
Time Source and Host Routes¶
- Default: Uses the browser
Date(system time). - Optional: After enabling “Third-party time server” in the settings, the Host queries
ntp.aliyun.comvia UDP and the Client corrects using the offset; re-syncs every 5 minutes, falling back to system time on failure and showing the error on the settings page.
Browsers cannot send NTP directly (UDP/123), so the Host registers a dedicated fixed-purpose route:
GET /api/time-n-timer/ntp
This route only queries ntp.aliyun.com; it is not a general-purpose NTP proxy. NTP depends on Host and network reachability; offline environments automatically fall back to system time.
Timer¶
- Countdown up to 15 minutes, with presets:
15s / 30s / 1min / 3min / 5min / 10min / 15min; also supports a stopwatch (up to 15:00). - Click the timer button to open a dialog where you can select the mode and duration, and start / pause / resume / reset.
- When time is up, a “Time’s up” prompt pops up automatically and three alert beeps play; the button shows a status dot while running, and the StartMode top badge shows the remaining time during a countdown.
- State is kept in the current page’s memory and resets after a page refresh.
Lunar Calendar and Holiday Data¶
- Lunar calendar: Built-in standard lunar table for 1900–2100 (including leap months).
- Holidays: Built-in 2025 and 2026 State Council General Office holiday arrangements (including adjusted workdays). For years with no data, it falls back to weekend rules (regular Saturdays/Sundays show “周末·休” [Weekend · Holiday]; adjusted workdays show “班” [Work]). The 2026 data follows 国办发明电〔2025〕7 号.
Plugin Settings¶
New “Time & Timer” related items were added under Harness Settings → General:
- Show lunar date (disabled by default)
- Third-party time server (disabled by default; when enabled, shows sync status, offset, and errors)
Persistent storage key: dsh.time-n-timer.settings.v1 (browser localStorage).
Installation and Activation¶
The official README provides two methods; there is no one-line remote install command such as dsh plugin add github:...; a local bundle or an Agent is required.
Method 1: Clone and install locally
git clone https://github.com/Depar7ure/dsh-time-timer.git
In Harness, go to Plugin Manager → Install bundle and select the cloned directory, then refresh the page after installation.
Method 2: Harness Agent
Give the Agent the absolute path of the directory above and ask it to “install this bundle”; Harness completes the installation via install_bundle, then refresh the page.
Requirements: Web client (dsh.client.platform: web); the Host uses node:dgram and requires Node.js ≥ 18. The plugin runs with the permissions of the current DSH process; please review the source code and the MIT license before installing.
Typical Usage¶
- After installing and refreshing, open a blank session to see the StartMode clock and holiday badges in the top-left corner.
- To show the lunar calendar: enable “Show lunar date” under Settings → General.
- To align with Aliyun NTP: enable “Third-party time server” and check the sync status and offset in the settings.
- Enter any conversation to use the compact clock and timer button on the right side of the title bar; click the button to select a countdown or stopwatch and start.
Local development self-check (maintainer scripts):
node scripts/check.mjs
node --check index.js
Use Cases and Notes¶
Suitable for persistently checking the time inside the Harness Web, cross-referencing Chinese adjusted workday schedules, or doing short timers within 15 minutes without leaving the conversation interface. Styling uses Harness theme tokens (--dsw-alias-*) and works with both light and dark themes; slot sizes may need to be re-verified after major host upgrades. Holidays are explicitly covered for 2025–2026; other years are judged only by weekend rules. Community directory: SkillHub - dsh-time-timer; source code and changelog are on the GitHub repo.