Introduction¶
DeepSeek Harness (DSH) adopts an “everything is a plugin” architecture. For Agent developers requiring long-term memory or private document management, building a local knowledge base is essential. The following is an introduction to dsh-knowledge-lite, a local knowledge base plugin for DeepSeek Harness. Each note is a Markdown file, and the data remains entirely on your local machine, without relying on any cloud services.
Core Features¶
The plugin primarily provides the following capabilities:
- Local Plain Text Storage: Each note corresponds to a
.mdfile, supporting direct modification with any external editor. - Full-text Search + Tag Filtering: Supports searching through all content within the library.
- Hierarchical Directories: Directories correspond directly to disk folders; you can manually move files in your file manager, and the library will recognize the changes automatically.
- Attachment Handling:
- Text files (
.txt/.md/.py/.json/.csv, etc.) are inserted directly into the body. - Office documents (
.docx/.xlsx/.pptx) have their text extracted with zero dependencies and written into the body, while the original files are stored in thefiles/directory. - Other types (
.pdf/images/archives, etc.) are stored as-is in thefiles/directory and can be opened with a double click.
- Text files (
- Drag-and-Drop Moving: Move files by dragging notes to any directory node within the interface.
- Conversation Export: Supports organizing DSH conversations into notes (writeback).
Installation and Activation¶
Plugin Market Installation¶
Search for dsh-knowledge-lite in DSH’s Settings → Plugin Market and click to install with one click.
Manual Installation¶
For development mode or specific host versions (dsh 0.2.0-rc.2):
git clone https://github.com/fangqiing/dsh-knowledge-lite.git
cd dsh-knowledge-lite
pnpm install
After installation, you need to link the plugin into DSH’s plugin directory and restart the host (you must completely exit DSH before installation to avoid EPERM errors).
Configuration and Compatibility¶
Path Configuration¶
This plugin is primarily validated on Windows + dsh 0.2.0-rc.2.
The default note root directory is hardcoded as E:/dsh-kb (Windows specific). For non-Windows platforms, you need to edit DEFAULT_ROOT in lib/config.js, or modify it in the settings after the first launch.
Dependency Requirements¶
The host version must match @deepseek-ai/dsh-* 0.2.0-rc.2.
Directory Structure¶
The plugin’s core files are located in the lib/ directory:
* store.js: Responsible for storing, scanning, moving, and deleting notes and hierarchical directories.
* index.js: Host (Node) side entry point and RPC.
* client.js: Browser-side UI (directory tree, editor, attachment list).
* attachments.js: Zero-dependency text extraction for Office documents (ZIP + XML, no third-party libraries).
* writeback.js: Extracts conversations as note candidates.
* config.js: Path configuration such as the note root directory.
* writeback-prompts.js: Extraction prompts.
Use Cases¶
Suitable for Agent developers who need to manage personal knowledge bases, search private documents, or desire deep integration with their development workflow. When using this, please note that the plugin runs with the permissions of the current DSH process; it is recommended to review the source code and license before installation.