dsh-notes: DeepSeek Harness Notes Workspace Plugin

Preface

The design philosophy of DeepSeek Harness (DSH) is “everything is a plugin.” During agent development or conversation, we need a separate area for taking notes that does not interfere with the central conversation area. The dsh-notes plugin provides an independent “Notes” workspace in the right sidebar of the DSH interface, aiming to solve issues related to left/right sidebar duplication, note tree distortion, and the disconnection between the Agent and notes.

What It Is

dsh-notes is a note workspace plugin for DeepSeek Harness.

  • Positioning: Independent note area in the right sidebar + CodeMirror 6 live preview editor.
  • Maintainer: DynaMyhome
  • License: MIT
  • Core Value: Notes are ordinary Markdown files, organized by workspace, offering an editing experience similar to Typora/Obsidian.

Installation and Activation

The plugin requires build artifacts to be installed into the current profile. Please use the plugin_manager tool and do not manually edit the profile configuration file.

# 1) Build client artifacts
cd "<directory where you cloned dsh-notes>"
npm run setup && npm run build

# 2) Install into current profile
#    action: install_bundle, target: <absolute path to this directory>

After installation, a “Notes” entry will appear in the right sidebar.

Core Features

1. Independent Note Area in Right Sidebar

The right sidebar is divided into two parts: a collapsible note tree on the left and a Markdown editor on the right. This provides a clear distinction from the left “Conversation/Workspace” and the central “DSH Conversation.”
- Note Tree: Displays the note index of the current workspace.
- Editor: Based on CodeMirror 6, supporting preview/source toggling.

2. Editor Capabilities

  • Preview Mode: Markup is hidden by default; you edit text directly. Heading levels, lists, quotes, bidirectional links, and real tables are rendered in-place. The source code expands only when the cursor enters the block.
  • Formula Support: Inline formulas $...$ and block formulas $$...$$ are rendered using MathML with zero font dependencies.
  • Real Tables: Table cells support in-place editing without expanding columns or shifting positions.
  • Code Cards: Code blocks are rendered as rounded cards with language names, syntax highlighting, and copy buttons.
  • Auto-save: Defaults to auto-saving every 800ms. Unsaved content is automatically committed before switching modes or closing tabs.

3. Note Tree and Organization

  • By Workspace: One workspace corresponds to one tree. Notes are essentially ordinary .md files and must include dsh-note-id in the frontmatter.
  • Adoption: Unmarked files within the workspace are automatically categorized as “Unfiled.” You can perform batch adoption or ignore operations in this panel.
  • Category Right-click: Supports renaming and deleting categories. Deleting a category only changes tree attribution and does not touch disk files.

4. Native Agent Integration

The plugin adds a knowledge tool for the Agent. The Agent can manage notes (register, unregister, categorize, rescan) via this tool, while content operations continue to use existing file tools.

5. Outline and Quick Open

  • Outline: Switch to the “Outline” view to see the heading tree; drag-and-drop reordering is supported.
  • Quick Open: Press Ctrl/Cmd+P (or Ctrl/Cmd+K) in the editor area to quickly open notes.

6. Trash

Right-clicking to delete a note moves it to the .dsh-notes/.trash/ directory within the workspace. The disk file is only truly unlinked when “Delete Permanently” is clicked.

Typical Usage

Creating Notes

Select “New” from the right-click menu in the note tree or on a category. Notes are essentially ordinary Markdown files; it is recommended to add a dsh-note-id: "uuid" preamble.

Agent Operations

In Agent conversations, use the newly added knowledge tool. For example:
- knowledge register <note-id>: Register a note as knowledge.
- knowledge unfiled: View the unfiled list.

File Management

  • Delete: Right-click a category or note -> Delete -> Move to Trash.
  • Restore: Click the 🗑 icon in the tree toolbar to enter the trash, then select restore or permanent deletion.

Data Storage and Configuration

Storage Location

Plugin data (category tree, ignore rules, trash) follows the workspace by default and is stored in the <workspace>/.dsh-notes/ directory.
- Index File: index.json, containing tree structure, attribution relationships, etc.
- Trash: .trash/, storing deleted files.

Key Configuration Keys

Key Default Value Meaning
notesDir notes Root directory for notes (relative to workspace root)
storeScope workspace Data storage scope: workspace follows the workspace, home places it in $DSH_HOME/knowledge
autosaveMs 800 Silent auto-save duration; 0 means disabled
watch true File watching for detecting renames/deletes

Behavior Switching

  • No Reload: Switching away from right sidebar tabs or collapsing the entire bar does not unmount the component. Content is preserved when switching back, and data is not re-fetched.
  • Machine Switching: Simply copy the workspace directory; the index and trash inside .dsh-notes will follow automatically.

Notes

  • Icon Source: The plugin’s icon and title metadata do not come from the plugin code but are read by DSH from package.json configuration via dsh-app-boot at startup.
  • Permissions: The plugin runs with the permissions of the current DSH process. Please check the source code and license before installation.
  • Permanent Deletion: Files are only truly removed from the disk when “Delete Permanently” is clicked in the trash.
羽毛球分组比赛记分
小程序二维码

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

Xiaoye