Introduction¶
When developing agents in DeepSeek Harness (DSH), you frequently need to accumulate external knowledge into workspace files. When faced with a large volume of documents, the absence of a unified reading and management interface forces you to either open files in a generic editor or scroll through the CLI, resulting in a fragmented experience. The TCM Learning plugin (dsh-plugin-tcm-learning) transforms DSH’s “workspace Markdown” directly into a Traditional Chinese Medicine (TCM) bookshelf: folders become sections, files become volumes, reading is rendered in serif typography, and it provides a configuration panel along with full-text search. It does not rely on any cloud services—all content is stored locally in the workspace.
Plugin Overview¶
- Name: dsh-plugin-tcm-learning (TCM Learning)
- Maintainer: lsh-lenvast
- Category: Memory
- Problem solved: Establishes a local, searchable, and configurable reading and management system for TCM documents within the workspace, replacing generic editors or file browsers.
Core Features¶
- Sidebar entry: A “TCM Learning” entry appears in the navigation bar (above the workspace list). Clicking it opens a full-page view at the same level as the official “Plugins” page.
- Sections & book spines: Each workspace folder automatically becomes a section; the folder name is the section name. Book spines are equal in height and stand upright; hovering enlarges them via
transform(no reflow). Shelves fill the available width, with a fixed maximum shelf width. - Reading view: Serif typography, a right-side table of contents with scroll-based highlighting, font-size adjustment, previous/next volume navigation, and a reading progress bar.
- Configuration panel: CRUD operations for sections and documents, Markdown source editing with live preview,
Ctrl/⌘+Sto save, and deleted items moved to trash. - Full-text search: Supports searching across titles and body text, returning up to 40 results.
- Fully local: All content is based on
.mdfiles in the workspace. No network access, no telemetry, and invisible to the model.
Installation & Activation¶
Requires DSH 0.2.x (the Web GUI version with sidebar.panellist / main slots).
Install from GitHub (Recommended)¶
dsh plugin add https://github.com/lsh-lenvast/dsh-plugin-tcm-learning
After installation, refresh the page. The “TCM Learning” entry will appear in the sidebar.
Manual Installation (Local Development / No CLI Available)¶
- Make the package discoverable by the profile (symlink or directory junction):
# Windows
New-Item -ItemType Junction `
-Path "$env:USERPROFILE\.dsh\profiles\desktop\node_modules\dsh-plugin-tcm-learning" `
-Target "D:\path\to\dsh-plugin-tcm-learning"
# macOS / Linux
ln -s /path/to/dsh-plugin-tcm-learning ~/.dsh/profiles/desktop/node_modules/dsh-plugin-tcm-learning
- Append the following to the end of the profile’s
cordis.patch.yml:
- insert:
- id: tcm-learning
name: dsh-plugin-tcm-learning
- If HMR is enabled, it will hot-reload automatically; otherwise, restart DSH.
Typical Usage¶
- Open a workspace in DSH (this workspace serves as the data root; the plugin only reads from and writes to it).
- Click “TCM Learning” in the sidebar.
- On first entry, folders in the root directory are automatically scanned as sections; if no sections exist, create one in the “Configuration” panel.
- Add content: create new entries in the configuration page, or simply drop
.mdfiles into the corresponding folder, then click the refresh button in the upper-right corner.
Data Layout Example¶
<workspace>\
├── .tcm\
│ ├── config.json # Section display info (title/color/order/visibility)
│ └── trash\ # Deleted content, recoverable manually
├── Herbs\
│ ├── Ephedra.md # One .md = one volume
│ └── Exterior-Releasing Herbs\ # Folder = book series (contains multiple volumes)
│ └── 01-Acrid-Warm Exterior-Releasing.md
├── Case Records\Taiyang Wind-Stroke Case.md
└── Formulas\Guizhi Decoction.md
Markdown supports frontmatter: title, tags, summary. If title is absent, the file name is used.
Use Cases & Caveats¶
- Ideal for accumulating TCM-related documents, medical case records, herbal formulas, and classical text notes within DSH, managed through a unified reading interface.
- The plugin runs with the permissions of the current DSH process. It is advisable to review the source code and license before installation.
- Known limitations: The data root is “the first registered workspace in the list”; you can switch via the dropdown in the top bar. Book spines do not yet support drag-and-drop reordering. The section “hidden” field exists in the data model but is not yet exposed in the UI. Agent tools (allowing the model to write directly to a section) are not yet implemented.
In Summary¶
Building a local TCM bookshelf within a DSH workspace—reading with serif typography, managing via a configuration panel, and retrieving content through full-text search—is a practical solution for organizing TCM documents.
- Plugin directory page: https://www.skillhub.cn/plugins/lsh-lenvast/dsh-plugin-tcm-learning
- GitHub: https://github.com/lsh-lenvast/dsh-plugin-tcm-learning