DeepSeek Harness Knowledge Cockpit Plugin

Introduction

Once you start building a local knowledge base with Markdown, questions like “how much have I stored, where is it organized, what’s been growing recently, and what’s structurally missing” tend to pile up. Without a dedicated tool, you’re forced to manually browse through file explorers or editors one by one — slow and prone to oversights. DeepSeek Harness (DSH) follows the philosophy of “everything is a plugin.” The community provides this kind of plugin, which opens a dashboard in the Web interface sidebar, using charts and metrics to directly answer those questions.

Plugin Overview

The plugin is named dsh-knowledge-cockpit, also known as “Knowledge Cockpit,” developed by maintainer ElonBright-sudo. It is a client-side plugin that provides a real-time dashboard in the DSH Web interface sidebar for overview and structural health checks of a local Markdown knowledge base. It only reads from the local disk, does not access the network, does not invoke models, and does not send telemetry data.

Core Features

The dashboard includes the following:

  • Six metric cards: note count, file count, topic count, new this month, active topics this month, and structural gaps.
  • Knowledge distribution: a donut chart of all topics by note count, with a legend showing full names on the right.
  • Knowledge growth trend: an area chart of new notes over the past 6 months, with peak month, 6-month total, and month-to-date displayed below.
  • Recent updates: the 10 most recent notes, each color-coded by its parent topic.
  • Topic summary: note count, size, last update time, and presence of index.md / 项目记忆.md for each top-level topic.
  • Knowledge intelligence insights: new note distribution this month, attachment-to-Markdown ratio, notes not updated for a long time, and structural gaps.
  • Structure health check: coverage rates for index / memory / active-this-month, along with a composite score.
  • Actionable to-dos: for structural gaps, you can “Generate All” skeletons (or expand to generate per individual topic), with undo support after generation; for maintenance items (stale notes, attachment size), you can “Dismiss,” which automatically reappears once the underlying numbers change.

Installation & Activation

In-App Installation

  1. Open the DSH Web interface.
  2. Navigate to Plugins → Discover.
  3. Search for dsh-knowledge-cockpit.
  4. After installation, refresh the page.
  5. A new entry named Knowledge Cockpit (dashboard icon) appears in the sidebar panel list.

Command-Line Installation

dsh plugin --profile <your-profile> add dsh-knowledge-cockpit

After installation completes, the corresponding entry will appear in the sidebar.

Configuration

By default, the plugin scans the ~/知识库 directory. If your knowledge base is not in the default location, you can set root in your profile patch; this setting persists across upgrades.

- id: ui-knowledge-cockpit
  name: 'dsh-knowledge-cockpit'
  config:
    root: /your/knowledge-base/path
    cacheTtlMs: 60000
    staleDays: 60
    recentCount: 10
    monthWindow: 6

Configuration options explained:
- root: Knowledge base root directory.
- cacheTtlMs: Result cache TTL in milliseconds; set to 0 to force a full rescan on every request.
- staleDays: Day threshold for flagging notes as “not updated for a long time.”
- recentCount: Number of rows in the recent updates list.
- monthWindow: Number of months included in the growth trend chart.

Data Routing

The plugin exposes three API endpoints:

  • GET /api/knowledge-cockpit/data: Retrieves the data needed for the dashboard. Append ?refresh=1 to bypass the cache.
  • POST /api/knowledge-cockpit/fix: Creates missing skeleton files. Request body format: { "kind": "index" | "memory", "topic"?: "name" }. Returns created[].rel.
  • POST /api/knowledge-cockpit/undo: Reverts skeleton files. Request body format: { "paths": ["Topic/index.md"] }. Only deletes files that still carry the <!-- knowledge-cockpit:generated --> marker and have not been edited by the user.

Write Behavior & Limitations

The plugin only writes files when you explicitly trigger it, and the scope is very narrow:
- Only writes to files named index.md and 项目记忆.md.
- Only writes to topic directories that do not already contain those two files; existing files are never modified.
- Generated files carry an invisible <!-- knowledge-cockpit:generated --> marker.
- The undo function only deletes files that still bear that marker and have not been user-edited.

Beyond this, the plugin is strictly read-only with respect to all other files on disk.

Statistical Methodology

  • File counts and sizes are measured on-disk, skipping directories such as .obsidian, .git, .trash, node_modules, __pycache__, etc.; symbolic links are not followed.
  • New additions and growth trends are bucketed by month based on file modification time (mtime).
  • Structure coverage only checks for the presence of index.md / 项目记忆.md in top-level topic directories; the composite score is the average of the three coverage rates, not a content quality score.

Use Cases & Notes

Suitable for developers or knowledge workers who manage a local Markdown-based knowledge base and want to quickly grasp the state of their assets and structural health in a single view. The plugin runs with the permissions of the current DSH process; review the source code and license before installing. The plugin requires DSH version >=0.2.2-rc.1 <0.3.0-0.

Conclusion

Knowledge Cockpit brings together the overview, growth, structure, and maintenance items of a local Markdown knowledge base into charts and metrics, and provides an undoable skeleton generation capability. It scans the local disk in a read-only manner, with no network dependency or model invocation, making it a practical complement to everyday knowledge management.

  • Directory page: https://www.skillhub.cn/plugins/ElonBright-sudo/dsh-knowledge-cockpit
  • GitHub: https://github.com/ElonBright-sudo/dsh-knowledge-cockpit
羽毛球分组比赛记分
小程序二维码

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

Xiaoye