DSH Plugins Marketplace

DSH Plugins

Plugins

/

Memory & Context

/

dsh-knowledge-canvas

d

dsh-knowledge-canvas

Manifest valid

Knowledge base as a canvas in the right sidebar: notes are nodes, and nine tools let the model read, write, link and remove them. A node can carry pictures and documents, and reading one returns their

UI (client)hasBundlePatch

dsh-knowledge-canvas

Notebook and attachment reading (0.4.0)

Diary bases open in a notebook view with a monthly catalog, readable pages, earlier/newer navigation, revision history, and send/drag to chat. Narrow panels provide a catalog button. Switch back to the knowledge canvas to edit. This is a presentation change: encryption, session isolation, node storage and model-call behavior remain unchanged.

DSH settings offer a per-workspace attachment policy: on-demand (default) or required. On-demand reading lets the model choose attachments; required reading includes supported text and images with explicit limits and increases token usage.

English · 简体中文

A knowledge base for DeepSeek Harness that the model retrieves from by judgement, not by similarity — and that you edit on a canvas in the sidebar.

The problem

You explain something, and the next conversation still does not know it — or worse, it thinks it does, and the note is stale.

This is not a context-window problem. Measured in one workspace:

$ node report-kb-use.mjs
50 tool call(s) in the log, 1 session(s)
  写 13 次(ops / …)
  读 1 次(read-animation)
  ⚠ 先写后读:第一次写入之前没有读过

13 writes, 1 read — and that read was from a different base. Knowledge was recorded and never used. Recording is free: the model does it in passing. Using is the hard part: you have to know the entry exists, and which one still holds.

What makes this different

Every node ends with a line beginning 「什么时候该想起它:」 — "when should this come to mind". That line is what the outline shows, so the model matches a situation rather than an embedding. When it picks wrong, you see the wrong node on the canvas and fix the sentence that misled it.

On the panel

WhereWhat
Top rowsearch, read counters, refresh
One row per basetitle, read progress, one switch (does this conversation read it), ⋯ menu (rename, delete, colour, export)
Canvas toolbarzoom, fit, width (the whole base's default width, not one node), shape, colour, layout
「定位到…」 at the bottomtype an id to jump to that node
GestureResult
click a nodeopens the editor; click again to close
Enter / Space (focused)same, from the keyboard
Shift+Enterstart a link; Enter on the target finishes it
drag a nodemoves it; the drop is written to layout.json
hold ~0.26 s then dragdraws a link (orange), not a re-parent
right-drag from a nodesame link
Alt + drag a nodemakes the target its parent (grey line)
right-click a nodemenu: new child / change history
right-click empty canvasmenu: new top-level node
drag a node out to the input boxhands that node to the conversation
the three handleswidth, height, both

Node size means three things in order: this node → the base's default → the canvas zoom. The toolbar's 「宽度」 is the second one.

Four layouts: layers, radial, staircase, compact. Switching only recomputes the default placement.

Install

npm install dsh-knowledge-canvas

Restart DSH once after installing; the 「知识库」 panel appears in the sidebar. Panel-side changes need only a page reload; host-side changes (index.js, lib/*) need a restart — that distinction decides what you do after editing.

The first time you open a workspace, a base called 「怎么用这个知识库」 is seeded with everything the panel can do. It upgrades with each release, and nodes you edited are never overwritten.

Tools the model gets (eight)

ToolWhat it does
knowledge_readread a base or a node; without base, list the bases
knowledge_create_basecreate a base with a root node. Usable immediately — no knowledge_select needed
knowledge_write_nodewrite or edit a node. The return carries the id it just created, ready to use as parent
knowledge_linkconnect two nodes, and say in one line why they are related
knowledge_remove_nodemark a node removed (recoverable, not deleted)
knowledge_unlinkremove an association; the nodes stay, the dashed line goes
knowledge_selectswitch a base on or off for this conversation
knowledge_remove_basemark a base removed (recoverable; the file is not deleted)
knowledge_show_imagesHands a node's pictures to the model as images

Settings, per workspace

Settings → 知识库, one block per workspace: the workspace's path, a 记录调用过程 switch (off by default; when on, every tool call is logged and the panel shows 「正在检索 n3(…)」), and per-base index/full switches.

The workspace list is the directories in the session list ∪ the directories on disk that have .dsh-knowledge/ — the second set is recovered from $DSH_HOME/sessions/, where each session has a directory named after its workspace path with separators turned into -.

Diary mode (optional)

For people who do not want to organise notes — they want something to remember. A switch at the top of the panel, per conversation.

With it on, that conversation writes an entry of its own when a stretch of talk reaches a place worth keeping. Not daily. Not in other conversations.

  • One per conversation: diary-<hash>.json. The switch is per conversation and so is the data — another conversation in the same workspace neither sees it nor can read it.
  • Stored sealed (AES-256-GCM). A model that cats the file gets base64.
  • The prompt gives conventions, not a voice. The persona is yours; the plugin does not write letters on your behalf.

What it will not do

  • It is not a chat log. Nothing is captured automatically; only what you or the model explicitly write.
  • It does not sync anywhere. Everything is under <workspace>/.dsh-knowledge/, plain JSON: open it in Notepad, commit it, copy the folder. No account, no server.
  • The diary's sealing stops accidents, not readers. The key is derived from the base name, so anyone who reads this source can decrypt. Stopping a model that goes looking needs a key that never touches the disk — a password or an OS credential — which is a different design.
  • It does not write a persona. Diary mode injects writing conventions, not a tone.
  • No full-text search. The box does substring matching over titles and bodies; no index, no embeddings.

Where the files are

<workspace>/.dsh-knowledge/
├── <base id>.json        one file per base: nodes, links, seed fingerprint
├── selection.json        which bases this workspace reads, how they are injected, call logging
├── layout.json           positions, widths, shapes, colours
├── .sessions/<id>.json   this conversation's own switches (including the diary)
└── activity.log          tool-call records, only while call logging is on
  • Host (index.js, lib/*): injection, tools, routes, the seeded tutorial, the diary conventions.
  • Panel (client.js): canvas, gestures, editor, settings. It reads those JSON files directly, not through the host — so when the panel "cannot see a base", check what it read, not what the host answered.
  • The outline is assembled before every model call and holds titles, summaries and trigger lines; bodies need an explicit knowledge_read.

For contributors

  • npm run check:all runs four things: identifiers, sprite aspect ratios, a public-tree check (no local paths, addresses or private ids), and its assertions over store/routes/tools (the count is what the run prints).
  • Change a gesture, change the tutorial line that describes it (lib/seed.js, the table at the top), or the tutorial describes something that does not exist.
  • The tutorial is recognised by content (whichever base shares most of the seed's node ids), not by file name — that rule came from three workspaces keeping it under three different names.

Development

npm run check:all     # identifiers + sprites + public tree + assertions
npm test              # assertions only

Publishing needs a real terminal (2FA needs a TTY), and after publishing the version stays Validating until npm's automated review finishes:

cd <this repo>
npm publish --registry https://registry.npmjs.org

While it is Validating, registry.npmjs.org/.../<version>.tgz returns 404 — that is not a failed publish.

License

MIT

Attachment reading policy

DSH Settings → Knowledge base offers a per-workspace choice, independent of index/full-body injection:

  • On demand (default): reading a node or base lists attachment paths and sizes, without file content or images. Pass attachment to knowledge_read with base and node to fetch one referenced file. Text supports offset and limit, measured in characters, up to 8,000 per call. knowledge_show_images remains available.
  • Required: reading a node or base includes supported text and Office content (up to 8,000 characters per file) and up to 6 pictures per call. Continuation instructions identify omitted content. This uses more tokens and does not guarantee model attention.

Unsupported formats, including PDFs and archives, retain their paths for another reader. Missing files and image delivery failures are reported. This policy affects knowledge tools; manually dragging nodes into chat still sends session attachments. Preferences survive restarts and other knowledge settings changes.

Comments

Loading…

Similar plugins

dsh-noteboard

by boogoo619

Workspace-wide sticky notes on an infinite canvas: notes are plain Markdown files, created manually, captured from conversations, or distilled by the AI, and can be handed back as context; ships 12 mo

Development & InfrastructureMemory & ContextManifest valid

★ 1

↓ 124/wk

MIT

JavaScript

Sep 10, 2026

dsh plugin --profile web add dsh-noteboard

Knowledge base (Vault memory + knowledge graph) for dsh: kb__* tools for deterministic memory search/write, knowledge-graph nodes/edges/subgraph/traversal, document-to-graph ingestion and unified cros

Tools & CapabilitiesManifest valid

★ 0

dsh plugin --profile web add axiom-kb-dsh

Built-in Obsidian-style knowledge base for DSH: agents distill conversations, documents and web sources into a structured .wiki graph, with retrieval, graph export, note editing, incremental builds an

Memory & ContextManifest valid

★ 0

↓ 456/wk

dsh plugin --profile web add dsh-knj-obsidian

General-purpose knowledge base for DSH: import md/txt/json/yml/docx/pdf, folder management, FTS5 full-text search (BM25), and a Web management UI.

Memory & ContextManifest valid

★ 0

↓ 210/wk

dsh plugin --profile web add dsh-knowledge-base

by fourzkw

DSH 右侧栏的可编辑画布 + AI 语义绘图工具(diagram_apply / diagram_read),直接读写原生 .drawio 文件

Tools & CapabilitiesTerminal & ClientsManifest valid

★ 26

↓ 998/wk

MIT

JavaScript

Oct 18, 2026

dsh plugin --profile web add dsh-drawai

Keeps notes as local Markdown files grouped by directory under a root folder you choose, with a sidebar page, AGENTS-style rule files surfaced as writing context, and six agent tools.

Memory & ContextManifest valid

★ 0

dsh plugin --profile web add dsh-notes