Central Brain: DSH Knowledge Atom / Skill / Role 3-in-1 Plugin

Introduction

The plugin-based architecture of DeepSeek Harness (DSH) allows developers to decouple tools, skills, and personas into separate modules. However, in practice, knowledge entries, skill entities, and agent roles are often scattered across multiple directories or documents, making retrieval and switching costly. To invoke all of them simultaneously during a conversation, users must repeatedly switch context or manually stitch together prompts. Below we introduce a three-in-one plugin that unifies these three capabilities under a single sidebar entry point and provides an inline selection chain alongside the chat input box.

Plugin Overview

Hub Brain (dsh-hub-brain) is a DSH plugin maintained by qiyaogongfang. It provides three core capabilities:

  • Knowledge entries: A local knowledge base that is searchable, adjudicable, and rollback-capable;
  • Skills: Searchable, loadable, and creatable SKILL.md skill entities;
  • Roles: Agent personas equipped with a CORE frozen layer, a PROMPT capability layer, a skill whitelist, and a knowledge view.

All three share a single sidebar entry point, one set of local data, and one in-conversation selection chain. All data resides on the local machine — the plugin does not access the network and does not upload any content.

Core Features

Knowledge Entries

  • List, search (by title / body, minimum 2 characters), filter by status (Active / Pending / All);
  • View body content (Markdown: headings, lists, tables, code blocks);
  • Edit title, primary category, and secondary category;
  • Suspend (active → pending, excluded from default retrieval) and approve (pending → active);
  • Create a new knowledge entry: say “Note this down…” in conversation, or invoke ke_save.

Skills

  • Card grid: name, Chinese description, shared/specific tag, and owning role;
  • View the full SKILL.md;
  • Create a new skill (name + Chinese description + body), with the Chinese summary auto-synced;
  • Delete a skill (with confirmation; removes the directory and summary).

Roles

  • Role cards: skill count / knowledge entry count;
  • View CORE, PROMPT, acquired skills, and acquired knowledge;
  • Create a new role (name + mission + guardrails; auto-generates core.md, prompt.md, role.json, and core_hash);
  • Delete a role (with confirmation; if it is the currently selected role, the selection is cleared);
  • Add/remove skills in the role’s whitelist;
  • Learn / Evolve (see below).

In-Conversation Selection

The “Knowledge Hub” button to the left of the input box opens a dialog with three tabs:

Tab Selection Mode
Role Single-select (click again to deselect)
Skills Multi-select
Knowledge Entries Multi-select

After confirming, the selected items appear as pills above the input box, each with an × that can be clicked to deselect and the change is persisted. Skills / knowledge entries can also be selected without a role; the system prompt will list the items chosen for this turn.

Installation & Activation

Method A: GitHub Release (recommended)

  1. Go to Releases and download dsh-hub-brain-<version>.tgz;
  2. Install the tgz via the DSH plugin manager;
  3. Refresh the page — “Hub Brain” will appear in the sidebar.

Method B: Public npm

npm install @qiyaogongfang/dsh-hub-brain

Package URL: https://www.npmjs.com/package/@qiyaogongfang/dsh-hub-brain

Method C: GitHub Packages (npm, requires GitHub token)

npm config set @qiyaogongfang:registry https://npm.pkg.github.com
npm config set //npm.pkg.github.com/:_authToken <YOUR_GITHUB_TOKEN>
npm install @qiyaogongfang/dsh-hub-brain

Method D: Local packaging

git clone https://github.com/qiyaogongfang/dsh-hub-brain.git
cd dsh-hub-brain
npm pack
# Produces dsh-hub-brain-<version>.tgz; install via the DSH plugin manager

This plugin is a DSH plugin (cordis bundle + client), not a standalone Node.js application.

Typical Usage

Knowledge Entry Operations

Type “Note this down…” in the conversation and the plugin will create a knowledge entry and attach it to the currently selected role. You can also save entries via the ke_save tool in the sidebar’s “Knowledge Entries” tab.

When searching, at least 2 characters in the title or body will trigger a match. Active knowledge entries are returned by retrieval; pending entries are excluded by default and must be approved via the “Approve” button on the knowledge entry page.

Skill Loading

After selecting multiple skills in the sidebar’s “Skills” tab, corresponding pills will appear above the input box. During processing, the model will load the respective SKILL.md files based on these skills and produce output according to the constraints defined in each skill.

Role Binding & Learning

Once a role is selected, the sidebar’s “Roles” tab displays that role’s skill count and knowledge entry count. In the conversation, type “Learn: …” or “Remember this” and the plugin will write the material as a knowledge entry attached to the selected role. Type “Evolve: …” or “Upgrade this role” and it will append to the prompt, add/remove skills in the whitelist, and increment the version by +0.1. Neither of these actions modifies the CORE frozen layer; to modify the core, an explicit command is required and core_hash must be recomputed.

Use Cases & Notes

This plugin is suited for scenarios where you need to simultaneously manage knowledge entries, skills, and roles within a conversation. All data is stored locally — the plugin does not access the network and does not upload any content, making it suitable for privacy-sensitive workflows.

The plugin runs with the permissions of the current DSH process. Review the source code and license before installation. DSH’s philosophy is “everything is a plugin”; the community directory is an independent site with no official affiliation to DeepSeek or High-Flyer.

Conclusion

Hub Brain unifies the three capabilities — knowledge entries, skills, and roles — under a single entry point, providing selection chains in the sidebar and alongside the chat input box. It is well suited for developers who need to accumulate knowledge long-term, manage skills, and define roles. Plugin repository: https://github.com/qiyaogongfang/dsh-hub-brain

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

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

Xiaoye