Shi Ye (dsh-knowledge-library): DSH Local Repository and Traceable Knowledge Notes

Preface

When doing Agent development in DeepSeek Harness (DSH), context often comes from the current workspace or a single paste. Web articles, subtitles, and scattered Markdown are hard to accumulate over the long term, and even harder to reliably cite specific paragraphs in conversations. The common approach is to build your own notes or vector database, but that becomes fragmented from the Harness sidebar, default model, and conversation flow—collection and organization then require a separate toolchain.

拾页 (Shi Ye, npm package dsh-knowledge-library) is a community-maintained DSH plugin that keeps collection, local directory classification, full-text search, and knowledge notes within one local-first workflow, and makes them available to conversations through native Agent tools. The following covers its positioning, capabilities, installation, and typical usage; facts follow the GitHub repository README.

What is this

拾页 is a local-first DeepSeek Harness knowledge library plugin, maintained by Alan-dong-dong. It saves web pages, text, files, and video subtitles to the local machine, organizes them by category and topic, then lets the Agent search, cite, and form knowledge notes with sources.

The plugin has declared a native dsh loading configuration, so it auto-loads after being installed via dsh plugin add, with no need to register an account or apply for a plugin ID. It is a community plugin and has no affiliation with DeepSeek; being published on npm does not mean it has been included in any official or third-party plugin directory. In the SkillHub directory it is categorized as “Memory”.

Compatibility baseline (as stated in the README): DeepSeek Harness 0.2.1-rc.2, Cordis 4.0.5, Node.js 22.23.0; uses the built-in Node SQLite, minimum Node 22.13.0. DSH is still in preview; other versions must be verified on your own. The native UI has been verified against the local DSH Web; desktop distributions and remote deployments have not yet been verified.

Core features

Interface and data storage

  • Native dsh sidebar “Knowledge Library”, following the host’s dark/light theme, fonts, and button styles, supporting reading in narrow windows.
  • The default data directory is Documents/DSH-Knowledge-Library under the current user’s home directory, not the plugin install directory or chat workspace. Uninstalling the plugin or deleting chats will not delete this data directory.

Collection and import

  • Web page body extraction, raw HTML saving, recording of source URL and author.
  • Optional web page body image recognition (since 0.3.0): retains original images, text in images, illustration interpretation, and source, participating in search and knowledge organization; disabled by default, and enabling it may incur model costs.
  • Text / Markdown collection; import of UTF-8 text, HTML, SRT, and VTT files.
  • Video, audio, PDF, and other files archived as-is, clearly marked “archive only”.
  • Web collection tasks are persisted; failed tasks can be retried, and interrupted tasks resume after a restart.

Normal collection, local archiving, and search do not call models, nor do they monitor the clipboard.

  • Categories correspond to local directories; tags and topics are used for cross-category organization.
  • Chinese full-text and short-word search, type filtering, and deduplication of materials.
  • Stable material IDs, paragraph references, subtitle timestamps, and sourced knowledge notes; clicking a reference locates the original paragraph.
  • Per-article analysis, intelligent grouping of scattered materials, local classification after confirmation, and generating separate knowledge drafts per group; reuses the Harness default model.
  • Compares with related existing knowledge notes and suggests appending supplements, creating new notes, or only linking sources; saved after review; old body text and paragraph references remain unchanged.
  • Since 0.3.0, knowledge organization and image recognition output quotas uniformly follow the current model configuration, with no separate token limit.
  • 10 native Agent tools that directly use dsh’s model and conversation, including knowledge organization and progress queries.

When proactively initiating knowledge organization, or when the Agent reads materials, the corresponding body text and image-recognition supplementary text enter the context of the configured model; if the model is in the cloud, the corresponding content will be sent to the model provider.

Maintenance and export

  • Export a single Markdown, download original attachments.
  • Delete materials from the list and details, view and restore from the trash, and permanently clear the trash after confirmation.
  • Rebuild the SQLite index from the raw data directory; verify body and paragraph files to prevent external modifications from silently altering references.

Installation and activation

First install DeepSeek Harness and make sure the terminal can run dsh. In PowerShell or another terminal, run the following command to install the pre-built plugin from npm (current documentation version 0.3.0):

dsh plugin --profile web add dsh-knowledge-library@0.3.0 --registry=https://registry.npmjs.org/

Restart DSH Web, press Ctrl+Shift+R in the browser to refresh, and click the sidebar Knowledge Library. The example uses the web profile; if you use another profile, first confirm the host version and UI compatibility, then replace the profile name. The verified host is 0.2.1-rc.2.

You can also install the same version from the GitHub Release:

dsh plugin --profile web add "https://github.com/Alan-dong-dong/dsh-knowledge-library/releases/download/v0.3.0/dsh-knowledge-library-0.3.0.tgz" --registry=https://registry.npmjs.org/

If there is no entry after installation: confirm the installed profile matches the started profile, restart and refresh, then use dsh --profile web --dump-config to check for an enabled knowledge-library.

Uninstall:

dsh plugin --profile web remove dsh-knowledge-library

Saved materials remain in the separate data directory.

Configuration notes

Modify the knowledge-library entry in the dsh config, or switch the library via the UI under Settings → Select Directory. A manual patch example:

- id: knowledge-library
  config:
    root: D:/KnowledgeLibrary
    allowProxyFakeIp: false

Loading method:

dsh --profile web --patch ./library.patch.yml

root must be an absolute path. Switching directories does not automatically migrate old materials; to migrate, first shut down Harness, copy the entire library (including .system) to the new directory, and then switch.

If web collection reports detecting 198.18.*, and the local machine uses Clash/Mihomo’s TUN fake-IP mode, you can enable proxy compatibility in Knowledge Library Settings → Web Collection, or set allowProxyFakeIp to true. This switch is off by default and only targets fake-IP DNS scenarios.

Typical usage

Using the library within Harness

After installation and refresh, open Knowledge Library in the sidebar, sharing the same local data with Agent tools: collect web pages or import files, use categories, tags, and search to locate content, and search and cite through Agent tools in conversations.

Knowledge organization workflow (since 0.2.0)

The README describes the organization path as: Materials → per-article analysis → intelligent grouping → confirm classification → knowledge drafts per group → knowledge notes, with support for comparing and supplementing existing knowledge. On the list side, click Smart Organize, select up to 10 materials, then run Smart Analysis & Grouping, and follow the UI to confirm classification and drafts. After upgrading the npm plugin, restart Harness and refresh the page.

Web page body image recognition (since 0.3.0)

  1. In Harness, select a default model that declares support for image input; the plugin verifies the capability from the host model info.
  2. Open Knowledge Library Settings → Body Image Recognition, enable automatic recognition, and save the settings; it only applies to subsequent web link collection.
  3. Collect web pages normally; the queue first saves the body text, then processes body images. After completion, text in images and illustration interpretation enter search and knowledge organization, marked as model output.

Knowledge notes can be generated only after image processing is complete or stopped.

Standalone preview (optional)

You can open the library UI without model keys:

npm run build
npm start

Visit http://127.0.0.1:4317. The same library can be opened by only one writing instance; before using the dsh plugin, close any standalone preview using the same directory.

Use cases and notes

Who it’s for: developers and individual users who need to retain web pages and files long-term in local DSH Web, manage them by directory and tags, and reference paragraphs or organize knowledge notes in Agent conversations.

Permissions and security: the plugin runs with the permissions of the current dsh process, reading and writing the data directory you specify and performing web collection. Before installation, review the source code and MIT license, and understand the scope of data egress when using cloud models.

Network and site limitations: links such as WeChat official accounts may time out or require browser verification due to environment or site policies; tasks will be marked requires browser verification, which can be worked around by opening the original web page and pasting the body text. fake-IP compatibility does not guarantee the target site itself is accessible.

Ecosystem note: DSH’s philosophy is “everything is a plugin”; community directories like SkillHub are independent sites with no official affiliation with DeepSeek / High-Flyer.

Conclusion

拾页 connects local collection, classified search, and traceable knowledge notes to the DSH native sidebar and Agent tools, making it suitable for turning “web pages and files you’ve read” into a searchable, citable local library rather than something scattered across chat history.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye