Introduction¶
When the DSH (DeepSeek Harness) Agent works across multiple sessions, the files it produces tend to scatter across various workspaces, making them hard to organize, search, and reuse. Existing approaches either rely on manual tidying within a session or lack version control altogether. The elegant01/dsh-wb-desk plugin provides a native artifact space where files produced by the Agent are automatically filed, managed, and available for further reading and processing.
What It Is¶
dsh-wb-desk is a DSH plugin modeled after the WorkBuddy library design. It provides tiered file writing, automatic filing, and pinned revision references. Maintained by elegant01 and categorized under “Memory,” its core value lies in building a centralized file repository within DSH.
Core Features¶
Tiered Writing¶
When the Agent creates a new file, it is written to disk automatically without confirmation. When modifying an existing file in the library, the change first enters a persistent “Pending Confirmation” queue. It only overwrites the original after you approve it in the panel; rejected content is archived and recoverable.
Automatic Filing¶
Artifacts written outside the library are routed as a copy according to configurable rules. Filing methods include matching by session/workspace. The default path is inbox/, editable in the panel under “Auto Filing.” Duplicate filenames automatically receive a timestamp and never overwrite existing files.
Pinned Revision References¶
When the Agent first reads a file in the library, the version at that moment is pinned. If the file is later modified, the Agent still reads the pinned version and receives a drift notification. The panel allows one-click release. Pinned references automatically expire after the retention period (default 7 days) following session end.
Local Artifacts View¶
All Agent outputs are aggregated in a three-level hierarchy: “Workspace → Session → File.” Clicking a file opens a right-side drawer for direct preview.
Artifact Bubbles¶
Whenever any session produces a file, a bubble pops up in the bottom-right corner, displaying a file icon based on format. It disappears after a few seconds. Clicking the bubble jumps to “Local Artifacts” and locates the corresponding session.
Recent / Favorites¶
Files you’ve opened are automatically added to Recent (library files and session artifacts are marked separately). Favorites are aggregated across the entire library regardless of directory, all on the same page.
Directory Management¶
Supports recursive directory tree, text preview, library-wide line-by-line search, create/rename/move/delete, and upload. Deleted items go to the Trash, where they can be restored or permanently deleted individually or in bulk (“Recent → Trash”). Items in the Trash are auto-cleaned after 30 days.
Binary File Fallback¶
For files that don’t support preview (PDF, Office, images, audio/video, etc.), the detail page offers one-click “Open with Default App” or “Open Containing Folder” (locate in File Explorer).
Create & Use Immediately¶
Built-in blank templates for documents, spreadsheets, web pages, and folders, as well as Word/Excel/PPT templates. After creation, files can be opened directly with your local Office suite.
Cloud Sync (Optional)¶
Supports Tencent Cloud COS mirroring. Local-first with automatic push after writes. Designed for single-user backup only, not for multi-user collaboration.
How It Works¶
The plugin hooks into tools/pre-execute / tools/post-execute waterfall points to handle tiered writing and auto-filing, and only applies to write/edit/read tool calls. File bodies are plain files stored directly in the library directory; the plugin’s own metadata lives in library/.dsh-library/. Local artifacts are indexed incrementally by mtime through parsing DSH session logs (~/.dsh/sessions), requiring no Agent-side reporting.
Installation & Activation¶
Install from npm:
dsh plugin --profile desktop add dsh-wb-desk
Or install directly from GitHub (tracks the latest commit on the main branch):
dsh plugin --profile desktop add github:elegant01/dsh-wb-desk
Fully quit DSH (including the tray background process) and restart for changes to take effect.
Typical Usage¶
After installation, when the Agent creates or modifies files during a session, the files are automatically filed into the library directory. Newly created files are written directly to disk; modifications to existing files enter the “Pending Confirmation” queue and require approval or rejection in the panel. When the Agent first reads a file in the library, that version is pinned, and subsequent modifications will trigger a drift notification. Pinned references automatically expire after 7 days following session end. In the panel, you can view Recent, Favorites, Local Artifacts, and the Pending Confirmation queue, as well as manage the directory tree, search files, and restore deleted files.
Use Cases & Cautions¶
Well-suited for scenarios requiring centralized management of Agent-produced files, with confirmation-based modifications and version control. The plugin runs with the current dsh process permissions—review the source code and license before installing.
Conclusion¶
dsh-wb-desk provides a library-based solution for extracting files from sessions and managing them centrally, addressing the problems of scattered Agent outputs, difficult retrieval, and version confusion. Through tiered writing, automatic filing, and pinned revision references, it makes file management more controllable.