dsh-hub: Floating Panel for TODO / Note / Prompt in DSH

Foreword

When running agents or long conversations in DSH (DeepSeek Harness), to-do items, quick notes, and frequently used prompts often get scattered across chat windows, external notes, or clipboards. They are hard to keep in sync across sessions or machines, and not suited for long-term maintenance as structured data. The community plugin @hanmaxiao/dsh-hub (repository HanMaXiao/dsh-hub) consolidates all three entry types into a single floating panel: one panel, three tabs, full CRUD support, with data persisted to a single JSON file in the host process — no reliance on browser localStorage, no cloud sync, no multi-user collaboration. This article introduces what it is, what it can do, and how to install and use it in DSH.

What Is This

  • Package name: @hanmaxiao/dsh-hub (renamed from @local/dsh-hub starting at 1.0.0 — a breaking change; you must remove the old bundle before installing the new package)
  • Maintainer: HanMaXiao
  • Category: Client-side (DSH community directory skillhub plugin page)
  • License: MIT
  • Positioning: A floating unified management panel for TODO, Note, and Prompt; supports docking to all four edges, grid and list views, configurable sorting and grouping

The plugin deliberately does three things: no cloud sync, no multi-user collaboration, no stuffing data into browser localStorage.

Core Features

Four-Edge Docking with Auto Collapse/Expand

The panel can dock to the top, right, bottom, or left edge of the window. When collapsed, only a narrow handle remains, without obstructing content; the handle is the sole entry point for opening/closing. To expand: hover over or click the handle. After the pointer leaves the panel, it will automatically collapse after a period of idle time. The previously selected docking edge is remembered.

Three Tabs and Two Views

A pill-style tab bar at the bottom: TODO / NOTE / PROMPT, only one type is edited at a time.

View Description
Grid Cards laid out; column count auto-adjusts with window width
Item list One row per entry; suitable for many entries that need scanning

The view preference is remembered. The empty state shows only the add button; there are three modals: create, delete confirmation, and detail. The detail modal has copy and close buttons at the top-right. The UI is bilingual (Chinese/English), driven by the application locale, controls are inline SVG with aria-label attributes.

Fields for the Three Entry Types

TODO Note Prompt
Title title title title
Body description + note text text
Category category — —
Flag priority: low / normal / high / urgent — —
Status status (customizable list) — —
Images attachments images images
Timestamps createdAt, updatedAt same same

The title is stored separately; the display name in the list prefers the title, falling back to the first line of the body if empty. Both title and body being empty is blocked; saving a short TODO with only a title is allowed. The host validates fields like kind, priority, status, etc., and rejects invalid values with specific error messages.

The TODO completion status is an editable enum (six factory presets: Pending, In Progress, Done, etc.), not a simple checkbox; you can add, delete, reorder, and set colors via “Manage Status”. The list is sectioned by status; legacy boolean done data is mapped to “Done” or “Pending”.

Sorting and Grouping

Sorting is one field + one direction + optional grouping, not a multi-level comparator chain. Available fields include Name, Modified Date, Created Date, Size (computed on the fly from title, body, note, and attachment bytes), Category (TODO), Priority (TODO), etc.; ties are resolved by createdAt and id in ascending order. Grouping: TODO can be grouped by category or priority; Note/Prompt can be grouped by has-images or plain-text. Completion status is not a sorting or grouping criterion — it is the sectioning framework of the TODO list itself.

Data Storage

All data is stored at:

$dataDir/store.json

When the default dataDir is empty: $DSH_HOME/plugin-data/dsh-hub, or ~/.dsh/plugin-data/dsh-hub if DSH_HOME is not set. You can change it to an absolute path (e.g., a sync drive) via hub-core’s config.dataDir. Writes use a temp file then rename; a corrupted file will raise an explicit error, not silently wiped. Images are inlined as base64 data URLs in the JSON (convenient for single-file backup, size increases by about one-third; the entire store is rewritten on each save). maxImageBytes defaults to 2097152 (2 MiB, counted by pre-decode bytes).

Installation and Activation

DSH plugin installation uses spec uniformly, consistent with the sidebar Plugins → Add plugin or plugin_manager’s install_bundle.

Method A: GitHub (recommended)

plugin_manager { action: "install_bundle", target: "https://github.com/HanMaXiao/dsh-hub" }

On the page, the equivalent is pasting https://github.com/HanMaXiao/dsh-hub and pressing Enter.

Method B: npm (the package is configured with publishConfig.access = public, available after publishing)

plugin_manager { action: "install_bundle", target: "@hanmaxiao/dsh-hub" }
plugin_manager { action: "install_bundle", target: "@hanmaxiao/dsh-hub@1.0.0" }

Method C: Local absolute path (development)

plugin_manager { action: "install_bundle", target: "D:\\path\\to\\dsh-hub" }

Must be an absolute path; do not hand-write package.json or cordis.patch.yml in the profile directory, do not run pnpm in the profile. After installation, confirm via list_bundles that this bundle is visible, via list_plugins that @hanmaxiao/dsh-hub is not failed, and that the detail title is “Hub · Unified Management Panel”. Installed plugins do not auto-upgrade; you must remove and reinstall for new versions.

If you see incompatible-version, it is related to this package’s pinned @deepseek-ai/dsh-typert-protocol 0.1.7-rc.2 and the DSH peer; in most cases, restart the process first before troubleshooting, and if necessary, use set_version_exemption per the README (requires acceptRisk: true).

Activation rules:

  • Host side (host.js, lib/, remote.js): after code changes, restart the DSH process
  • Client side (client.js): refresh the page

Migration from @local/dsh-hub: first remove_bundle, then install via the above methods; data is in $dataDir/store.json, uninstalling does not delete the store.

Typical Usage

  1. After installing and confirming the bundle and plugin status are normal, open the panel via the edge handle in the DSH client UI.
  2. Switch between TODO / NOTE / PROMPT tabs, view entries in grid or list; adjust field, direction, and grouping via the sort menu.
  3. Create an entry: fill in title and body (at least one non-empty); TODO can set category, priority, and status; add images in the form if needed (note the default 2 MiB per-image limit).
  4. Backup or migration: copy store.json; change hub-core’s dataDir to place the store in a specified directory.

The package depends on Node >=24, loaded in-process with the DSH runtime; specific Typert / remote capabilities are subject to the repository’s exports and cordis.patch.yml.

Use Cases and Caveats

Suitable for: Users who want to manage to-dos, notes, and prompt templates in place within the DSH window; need a single-file JSON store that is diff-able and manually backup-able; accept a single-user workflow without cloud sync or multi-user collaboration.

Caveats:

  • The plugin runs with the current DSH process’s permissions; before installing, please read the GitHub source and the MIT license, and assess the trust boundary yourself.
  • Large or many images will bloat store.json; since the entire file is rewritten on each save, performance may degrade.
  • The community directory skillhub.cn has no official affiliation with DeepSeek / Hiaka (幻方); the DSH ecosystem is “everything is a plugin”, and the directory is an independent community site.

Conclusion

@hanmaxiao/dsh-hub consolidates TODO, Note, and Prompt into a dockable, sortable floating panel, with data persisted to a host-side store.json, suitable for long-term maintenance of a personal workflow set within the Harness. Installation uses official specs (e.g., GitHub URL or @hanmaxiao/dsh-hub); do not invent CLI commands based on the package name. For more information, see the community directory page and the repository README.

  • Directory page: https://www.skillhub.cn/plugins/HanMaXiao/dsh-hub
  • GitHub: https://github.com/HanMaXiao/dsh-hub
羽毛球分组比赛记分
小程序二维码

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

Xiaoye