Introduction¶
In DeepSeek Harness (DSH), a common approach to making an agent “remember” a piece of information is to write the content into a Markdown or note file. However, such directories often lack review mechanisms: source texts, summaries, and retrieval entries are mixed together, making it difficult to verify later whether conclusions still align with their sources. When conflicts arise, the model often makes arbitrary choices.
dsh-kb-curator is a DSH bundle published by the maintainer Mark-mph. It mounts a read-only skill, kb-curator, into the Harness configuration and comes with a PowerShell-based knowledge base engine that has no dependency on external vector or embedding APIs. It stores materials in layers and enforces a workflow that requires your approval of proposals before writing to the retrievable memory and topic pages. Below, we describe the problems it solves, how to install it, and the steps for setting up a knowledge base directory for the first time.
What is this¶
The package name for dsh-kb-curator on npm is dsh-kb-curator (version 0.1.2 in current materials, MIT License). It is not a standalone executable application; instead, it inserts a kb-curator plugin line into the profile composition layer via cordis.patch.yml, and lib/index.js registers the bundled read-only skill. The skill body and engine resources are located in assets/kb-curator/ within the package.
The skill instructs the agent to maintain a local three-layer knowledge base: L1 stores the raw source library, L2 stores retrievable propositions marked with [src:kb-YYYYMMDD-NNNN] for traceability, and L3 stores topic pages aggregated by category. No content that has not been approved may enter L2/L3; before the review is complete, the agent is restricted to writing only to designated locations such as _inbox/, _review/queue/, and _system/log.jsonl.
The community catalog SkillHub classifies it as “Memory”; GitHub Repository: https://github.com/Mark-mph/dsh-kb-curator .
Core Features¶
Three-Layer Division of Labor¶
| Layer | Content | Location | Who can write |
|---|---|---|---|
| L1 Raw Library | Original Markdown with fixed frontmatter, append-only, no in-place editing | library/<category>/<subcategory>/<yyyy-mm-dd>-<slug>.md |
Via review processes like kb.cmd approve |
| L2 Retrieval Layer | Single-sentence propositions (facts/preferences/decisions/snippets/skills, etc.), searchable | engram SQLite, via engram_* tools |
Agent, after you approve the proposal |
| L3 Topic Pages | One page per category: comprehensive understanding, indices, pending conflicts | pages/<category>.md |
Agent, after you approve the proposal |
Design constraints include: raw text remains in L1; L2 contains only refined propositions; L3 does not contain large verbatim copies—if large original passages are needed, they should go into L1 and be linked. When a topic page becomes too long (approx. 200+ lines), details should sink back down to L1/L2.
Review Gate¶
The proposal state transitions as follows: inbox → Agent writes proposal → proposed → You approve → approved → Enter database → indexed; it can also be rejected as rejected, or require modification as needs_edit before returning to proposed. Content with a status other than approved cannot enter L2/L3; there is no path for “write to index first and wait for approval later.”
Traceability and Conflicts¶
Cited conclusions must include [src:kb-YYYYMMDD-NNNN] pointing back to the L1 document. When multiple sources contradict each other, the skill defines a fixed arbitration order; if the order is exhausted and a decision cannot be made, the agent must report the conflict rather than choosing a side on its own (see references/arbitration.md within the skill and the engine _system/ spec for details).
Categories and Engine¶
init creates eight top-level category directories: Technical Engineering, Product Business, Academic Research, Lifestyle Health, Finance Investment, Humanities & Social Sciences, Tools & Workflow, and Uncategorized. Subcategory directories appear upon the first approval of a document in that subcategory. The engine does not call paid embedding or vector search APIs; retrieval and organization rely on the cloud models you already use in Harness and local engram storage.
The bundle does not declare configurable items; removing or disabling the kb-curator line from the composition uninstalls the skill.
Installation and Activation¶
The runtime environment requires Node.js ^22.19.0 || >=24.0.0. Peer dependencies are resolved by Harness: @deepseek-ai/cordis (README table shows ~4.0.4, package.json shows ^4.0.1 in materials), @deepseek-ai/dsh-skill >=0.1.0-rc.1 <0.2.0-0.
The official installation command is as follows:
dsh plugin add dsh-kb-curator
After installation, a configuration similar to the following is inserted into the profile (see cordis.patch.yml in the repository):
- insert:
- id: kb-curator
name: 'dsh-kb-curator'
The DSH ecosystem adopts an “everything is a plugin” philosophy; SkillHub (https://www.skillhub.cn/plugins/Mark-mph/dsh-kb-curator) is a community directory site and has no official affiliation with DeepSeek / High-Flyer. It is recommended to review the repository source code and MIT license yourself before installing. Plugins and skills run with the permissions of the current dsh process; the knowledge base directory should be located in a path you control and can back up.
Typical Usage: Creating a Knowledge Base for the First Time¶
The plugin does not automatically create the knowledge base root directory for you; you need to select a folder yourself and complete the engine copy and initialization according to the README.
-
Locate the skill resource directory
Theassets/kb-curator/inside the installation package containsSKILL.md,references/, andengine/. -
Copy the entire engine directory
Copy all ofengine/to your chosen knowledge base root;kb.ps1self-locates via$PSScriptRoot, so wherever the engine lands, the root is there. Therootfield inkb.config.jsonis for human reading only and is not read by the program.
$KB = "D:\KnowledgeBase" # Your root directory
Copy-Item -Recurse "<skill-base>\engine\*" $KB
A complete copy is required because the `_system/` spec and `_templates/` must exist before the first `init`.
- Initialize the directory tree
initis idempotent: it only creates missing items and does not overwrite existing content.
& "$KB\kb.cmd" init
- Check status
This generates a read-only report of the root path, disk thresholds, pending/approved/rejected proposal counts, file counts per layer, etc.; it does not write logs or modify files. It is suggested in the materials to run this before every ingest or batch write.
& "$KB\kb.cmd" status
For details on subsequent ingest, proposal review, approve, and engram tools, see the skill’s SKILL.md and the seven reference documents including references/kb-cli.md and review-workflow.md.
Use Cases and Notes¶
Suitable for: Users who want the agent to continuously organize personal or team materials during DSH conversations, while requiring that source texts remain unaltered and that retrieval entries and topic pages must be approved by you before entering the database; users who wish to avoid additional vector SaaS bills and accept a local directory + SQLite retrieval solution.
Notes:
- The engine entry point is Windows-friendly
kb.cmd/ PowerShell (kb.ps1); when deploying the knowledge base root on Linux, you need to verify PowerShell availability yourself or follow the engine README. - Disk guards, paid service switches, and other thresholds are written in
kb.config.json; refer to the engine documentation for details. - Do not use installation methods not provided in the materials (e.g., manually concatenating
dsh plugin add github:...); use thedsh plugin add dsh-kb-curatorfrom the README as the standard.
Conclusion¶
dsh-kb-curator transforms “memory” from simply stacking files into a local knowledge base workflow featuring L1/L2/L3 layering, mandatory human review, source tagging, and conflict arbitration rules. The installation command is one line, while the knowledge base root and review rhythm remain under your control.
- Directory Page: https://www.skillhub.cn/plugins/Mark-mph/dsh-kb-curator
- GitHub: https://github.com/Mark-mph/dsh-kb-curator