跪拜 Guibai
← All articles
Artificial Intelligence

Off-Duty Bell: A Timed Off-Duty Reminder Plugin for DeepSeek Harness

By 程序员Oak ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

Off-Duty Bell demonstrates the full range of client-side capabilities in a DSH bundle: timers, Web Audio synthesis, localStorage persistence, and UI animation all work in a single file with an empty Host half. That makes it a useful reference for developers who want to build their own lightweight, pure-client extensions for DeepSeek Harness.

Summary

DeepSeek Harness gains a playful productivity add-on: Off-Duty Bell, a bundle plugin that schedules a reminder for your set quitting time and presents it with a slide-in banner, rotating custom texts, and one of six synthesized Web Audio chimes. The plugin is entirely client-side; the Host half is an empty implementation, and configuration plus punch records live in the browser's localStorage. You set a daily time in HH:mm, optionally restrict alerts to weekdays, and toggle reminders on or off with one click. It fires once per day, and punching out silences further notifications. A "work a bit longer" button postpones the next nudge by 15 minutes.

Reminder content is fully editable: a multi-line text box holds one message per line, and the plugin rotates them in order at an interval you choose between 1 and 60 seconds. Five default messages ship with it, including playful lines like "Are you ready? Go go go! Clock out?" and "Thanks for your hard work today, have a big chicken leg 🍗." The display supports three animations (slide from left, fade, typewriter) and two presentation modes (top-right banner or full-screen overlay). Audio, generated via the Web Audio API rather than external files, offers chords, bell, ding-dong, marimba, electronic, or off, with a preview button. Punching out triggers a confetti animation and logs the day on a calendar that shows the current month with completed days highlighted and today outlined. Stats track consecutive days, monthly count, and cumulative total. A test/preview button lets you see the animation immediately, and settings persist after pressing save. Installation is straightforward: the bundle is MIT-licensed, available via npm or GitHub, and after refreshing the Harness Web UI, the plugin appears in the left sidebar.

Takeaways
— Package name @oakzhong/dsh-off-duty, version 1.0.1, MIT-licensed ES module.
— The Host half is empty; index.js has no implementation, and client.js carries all logic.
— Configure a daily time (HH:mm), opt for weekdays only, and enable/disable reminders with a single toggle.
— Fires once per day; punching out stops further reminders that day; a "work a bit longer" button delays by 15 minutes.
— Messages edit in a multi-line box, rotate in order at a 1–60 second interval; five defaults included.
— Three animation styles (slide, fade, typewriter) and two display modes (banner or overlay).
— Six Web Audio synthesized tones available with no external files; preview button included.
— Punching out triggers confetti and records the date on a monthly calendar with stats for streaks, month, and total.
— Configuration and records persist in localStorage; test/preview buttons show effects immediately.
— Install via npm or clone from GitHub, then refresh Harness Web UI and open the sidebar entry.
Conclusions

Keeping the Host half empty means all state and logic stay in the browser, which simplifies distribution and makes the plugin a personal tool rather than a multi-user service.

Synthesizing chimes with the Web Audio API instead of shipping audio files keeps the bundle self-contained and reduces install size.

The punch calendar and streak stats turn a simple timer into a light behavioral nudge that gamifies leaving work on time.

Concepts & terms
DeepSeek Harness (DSH)
An open-source environment for building and running applications on DeepSeek models, supporting plugin bundles that extend its UI and behavior.
DSH bundle
A packaged plugin for DeepSeek Harness, with optional Host- and Client-side halves. The Host half runs server-side, the Client half runs in the browser and can manage UI and state.
Web Audio API
A browser API for generating and manipulating audio in JavaScript, used here to synthesize notification tones without external audio files.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗