dsh-desk-kit: DSH Handy Desk

Preface

In agent development, you frequently need to record information, manage reminders, and save account credentials. These operations are scattered across different tools, and constantly switching between them breaks your workflow. DSH (DeepSeek Harness) itself has a plugin-based architecture, and most existing sidebar plugins only handle a single function without a unified entry point. The dsh-desk-kit introduced below consolidates scheduled reminders, sticky notes, web bookmarks, and an encrypted vault into a single phone-style panel. It also provides 27 Agent tools, allowing the model to directly record information into your quick-capture desk.

What Is This

dsh-desk-kit is a plugin for DSH, developed by maintainer Tera-Dark. Its core value is providing a unified entry point that consolidates four commonly used functions: reminders, notes, web bookmarks, and an encrypted vault. Data is stored locally in the ~/.dsh/desk-kit/ directory only. By default, no network requests are made. Network access to corresponding sites only occurs when “Website Favicon” is enabled or when you actively paste a web page image.

Core Features

Four Categories

  • Reminders: Supports one-time, daily, weekly, monthly, yearly, and lunar birthday reminders. On-time by default, with a manual offset of 1–10080 minutes available. A card pops up when due, with options for “Snooze 10/30/60 min” or “Don’t remind today.”
  • Notes: Quick capture with support for tags, pinning, completion, archiving, and trash. Long content automatically moves to “Long-form Reference” and collapses. When editing, you can keep or delete images individually. Frequently viewed or copied items automatically rise to the top.
  • Web: Card-style list with a rounded icon on the left (first character, or favicon when “Website Favicon” is enabled), title and domain on the right, a fixed three-line description below, and a copy-link button on the card. Automatic URL normalization, tracking parameter removal, deduplication by URL, grouping by category, and frequently opened sites rise to the top.
  • Vault: Account/password/backup codes/arbitrary long text, encrypted at rest with AES-256-GCM. Can be grouped into “Collections” for centralized viewing. The list only shows titles; clicking “Show” decrypts the entry, and plaintext auto-collapses after 30 seconds.

Sorting Logic

Note and Web lists don’t require manual organization: the order is calculated based on “how much you actually use it.”

  1. Pinned items always come first — pinning means “don’t touch its position.”
  2. Then frequency: how many times you’ve used it (log-saturated, so a record viewed 200 times doesn’t permanently dominate) × how long ago you last used it (10-day half-life).
  3. When frequencies are equal, newer items come first (a small 3-day “freshness” bonus; if untouched for a few days, it naturally sinks).

As a result, newly added items are almost always in view, items you repeatedly checked a week ago gradually surface, and items untouched for three months sink to the bottom. For notes, “viewed once” = opened for editing or copied; for web items, it means opened from the panel.

Vault Collections

When you have many vault entries, scrolling through them one by one is tedious. When creating or editing an entry, you can assign a collection name. Collection buttons with entry counts appear at the top of the list; clicking one filters to that category only.

  • Single level, no nesting: collections are just names — no folder trees, no manual directory maintenance.
  • Drag-to-reorder: after selecting a collection, drag the ≡ handle on the left of entries to move them up or down; on mobile where dragging isn’t available, use ↑↓ buttons.
  • Search still spans collections: the search box matches both titles and collection names, unaffected by the current filter.
  • No change to encryption: collection names and sort order are stored in plaintext metadata within vault.json; body content and attachments remain encrypted.
  • Auto-collapse beyond 3: shows 3 items and a “More N” button; click to expand all categories so the screen isn’t full of pills.
  • Split page header: entry count/collection count/encryption status on the left, “New Entry / Attachments” on the right; entries themselves follow a “title on one line, actions on one line” layout, so long emails and URLs aren’t squeezed by a row of buttons.

Attachments: Screenshot and Paste Directly

  • Ctrl+V (screenshot) anywhere in the panel: instantly saved as a note, with an undo option in the toast.
  • Notes page → New Note → Paste / Drag file: attached to the draft, saved together with your text.
  • Notes page → “Attachments” / “Read Clipboard”: file picker (any format), or read directly from the system clipboard.
  • Vault → New Entry → Paste / “Attachments”: encrypted together with the body, visible only after clicking “Show.”
  • Notes → Edit → “Images/Attachments” section: images displayed as independent units, click the × in the top-right to delete individually; original is cleared only after saving.

Thumbnails are 64px; click to view full size (press Esc to close), with a direct download button in the bottom-right; non-image files show their extension. For images copied from elsewhere: if a file exists, it’s stored as a file; web page images (only an <img> URL) are downloaded by the host before being saved locally; if the clipboard contains only a local file path, a clear message reads “Browser cannot read this file,” and the path is not pasted as text into the note. Single file limit: 24MB, max 12 per entry; vault attachments are encrypted as a whole block before being written to disk. Attachment originals are in ~/.dsh/desk-kit/blobs/, not included in the exported JSON — for a complete backup, copy the entire directory.

Search & Cleanup

Quick Search on Home: One search box across the entire library — notes (body/tags), reminders (title/notes), web (title/URL/notes/category), attachments (filename), vault (title). Chinese-English aliases interoperate: searching “脸书” (Facebook) also matches entries written as Facebook. Results show only “which category + matched field + a brief snippet,” never assembling a second copy of the body. Vault search defaults to titles only; if no title match, you can click “Search in content,” which explicitly decrypts in memory for comparison — the result only returns “Vault · content hit” without revealing field values. Clicking a result navigates directly to the corresponding page: notes carry the keyword into the Notes page; vault auto-scrolls to that entry and expands it, then collapses after 30 seconds. Vault can group entries by “Collection”; search matches both titles and collection names. The search box at the top of the Notes page also uses the same cross-library logic, convenient when you’re already on the Notes page.

Cleanup is under Settings → “Storage & Cleanup.” Three things can be cleaned: expired trash records (including attachment originals), attachments whose host no longer exists, and temporary attachments uploaded for over a day without being attached. Vault does not participate in auto-cleanup (deletion is irreversible); retention of 0 days = no auto-cleanup. Auto-cleanup runs at most once every 6 hours (while DSH is running), or click “Clean Now” to run immediately.

Security Boundaries

  • Other devices on the LAN: No — the API only accepts loopback addresses; wrong origin returns 403.
  • Web pages you browse: No — no CORS allowance; write operations require a custom header x-desk-kit, which fails cross-origin preflight.
  • Peeking at vault.json: ciphertext only.
  • Anyone who can read ~/.dsh/desk-kit/: can decrypt — vault.key is in the same directory. This is the current design ceiling.
  • Other local programs: Yes — processes with the same permissions can read files and call the API.
  • Sync drives / cloud backup: will sync along — do not place this directory in OneDrive/iCloud.

Full details (including “what to do for stronger security”) are in docs/SECURITY.md.

Agent Tools (27)

Group Tools
One-liner entry desk_capture
Notes desk_note_add desk_note_list desk_note_update desk_note_delete desk_note_restore desk_note_purge desk_note_complete
Reminders desk_reminder_add desk_reminder_list desk_reminder_checkin desk_reminder_delete desk_reminder_restore desk_reminder_purge desk_due
Vault desk_secret_add desk_secret_list desk_secret_get desk_secret_delete
Web desk_link_add desk_link_list desk_link_delete
Attachments desk_file_add desk_file_list
Search / Maintenance desk_search desk_cleanup desk_item_move

Saying these to the Agent will trigger the right action: “Note down: go fix my earbuds this weekend” / “Remind me to take my medicine at 9 every day” / “I checked in today” / “Save the account demo_user / password xxx for that site” / “Save that screenshot” / “What have I noted before?”

Installation & Activation

Before installing, please review the source code and license to ensure compatibility with your current DSH version. DSH requires engine version >=0.2.0-rc.2 <0.3.0-0, and Node.js >=20.18.

Installation command:

dsh plugin --profile desktop add github:Tera-Dark/dsh-desk-kit

After installation, restart DSH and open from any of the following entry points (use whichever is available):

Entry Point When to Use
Sidebar “Quick Desk” tab Daily primary entry (requires dsh-better-sidebar)
Clipboard icon in the session top bar In the middle of a chat, jot something down quickly
Ctrl/Cmd + Shift + K Hands already on the keyboard
Type /desk-kit in the input box Same as above, no shortcut to memorize
Settings → Plugins → Quick Desk card Most intuitive place when you can’t find an entry
Floating button in the bottom-right Fallback when the sidebar plugin isn’t installed

Once opened, the top is a single input box — just type in natural language. After saving, a categorized toast appears at the top clearly stating which category it went into (“Notes / Reminders / Web / Vault”), the success status, the item title, and a time summary, fading out after a few seconds. Want to undo? Click “Undo” directly. Mis-categorized? Click “Move to.” Saving doesn’t auto-navigate away (recording three things in a row doesn’t require clicking “Home” back and forth) — to view that category, click “View” in the toast.

Typical Usage

You say it, it does it:

  • Note down: feed the cat at 4 PM tomorrow → Reminder: 2026-11-19 16:00 (one-time, remind when due)
  • Remind me to pay the electricity bill at 10 tomorrow → Reminder: 2026-11-19 10:00 (one-time, remind when due)
  • Remind me to take my medicine at 9 PM every day → Reminder: Daily 21:00
  • Check in at 8:30 Mon–Fri → Reminder: Weekdays 08:30
  • Note: go fix earbuds this weekend → Note
  • https://example.com is a great site for research → Web: name taken from domain, purpose in notes
  • Example site account demo_user password abc123 → Vault: title from domain, credentials encrypted at rest
  • Pay credit card on the 15th of each month → Reminder: 15th of each month 09:00 (no time specified, defaults to 9 AM; the receipt will clarify)
  • douban.com Douban Movies, check reviews → Web: bare domain at the start also counts (doesn’t have to start with https://)

URL without password/account → goes to “Web”; vault requires actual credential values. If a sentence includes “backup code / recovery code,” it’s stored as an independent encrypted field in the vault, not stuffed into the title.

Mobile Quick Capture (Optional)

After accessing via DSH Pocket / DSH Mobile, you can add this URL to your home screen:

https://your-DSH-address/?dk=capture

It opens directly to the Quick Desk home with the input box focused. After processing, the dk parameter is automatically removed from the address bar, so refreshing or tapping the home screen icon again won’t repeatedly trigger it. You can also pre-fill text:

https://your-DSH-address/?dk=capture&text=note-fix-earbuds-weekend

Note: The desktop Quick Desk only accepts local Host/Origin. Directly opening http://your-LAN-IP:3080 from a phone will return 403. Please use a mobile gateway that rewrites Host/Origin (e.g., DSH Pocket), or set up your own loopback tunnel.

Cross-Category Conversion

The four categories can be converted to each other: after saving, the toast includes “Mis-categorized? Move to,” and each record has a ⇄ icon on the right. Conversion creates the new entry first, only deleting the old one on success; a “Conversion successful” receipt is provided; rapid successive clicks on the same entry count as one (the server maintains a conversion ledger, and duplicate requests reuse the previous result); vault entries with passwords cannot be converted to plaintext categories.

Data Directory & Backup

~/.dsh/desk-kit/        # Default; DSH_HOME can change the root directory
├── data.json   Notes + Reminders + Web + Attachment metadata + alerts (plaintext, cat/diff-able)
├── vault.json  Vault entries (each with independent AES-256-GCM ciphertext)
├── vault.key   Master key material (0600; if lost, vault.json is unrecoverable)
└── blobs/      Attachment originals (plain .bin, vault-owned .enc)

The Settings page offers “Export as JSON”; reminders and notes are plaintext, while vault exports are ciphertext. Export does not include attachment originals — when switching machines, copy blobs/ as well, and include vault.key.

Use Cases & Caveats

Suitable for DSH users who need unified management of reminders, notes, web bookmarks, and account credentials, especially those who frequently need the model to persist information.

Important: The plugin runs with the current DSH process permissions. Review the source code and license before installation. Vault does not participate in auto-cleanup (deletion is irreversible). Sync drives / cloud backup will carry the data along — do not place this directory in OneDrive/iCloud.

In Brief

dsh-desk-kit consolidates four commonly used functions into a single phone-style panel, stores data locally only, makes no network requests by default, and provides 27 Agent tools so the model can directly record information into your quick-capture desk. Full documentation and source code are available on the directory page and GitHub.

References

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

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

Xiaoye