DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Personal Wiki — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

@dsh-enhanced/personal-wiki

Personal Wiki

A safe, searchable, approval-gated Markdown knowledge vault for DeepSeek Harness.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add @dsh-enhanced/personal-wiki@0.1.32
READMECompatibilityVersions

Compatibility and provenance

Personal Wiki is published as @dsh-enhanced/personal-wiki and currently resolves to version 0.1.32. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
npm
Registry updated
9/20/2026

Versions

0.1.32stable
9/13/2026
0.1.31stable
9/12/2026
0.1.30stable
9/12/2026
Show 15 more versionsCollapse versions
0.1.24stable
9/5/2026
0.1.23stable
9/4/2026
0.1.22stable
9/4/2026
0.1.21stable
9/4/2026
0.1.20stable
9/4/2026
0.1.19stable
9/4/2026
0.1.18stable
9/3/2026
0.1.17stable
9/3/2026
0.1.14stable
9/3/2026
0.1.12stable
9/1/2026
0.1.7stable
8/30/2026
0.1.6stable
8/30/2026
0.1.5stable
8/29/2026
0.1.4stable
8/29/2026
0.1.3stable
8/27/2026

Related plugins

Loading related plugins…

Latest
0.1.32
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
224.1 kB
Files
44
Surface
any
License
MIT
Source
npm
GitHub
★ 2
Weekly downloads
266
Security scan
✓ v0.1.32 scan passed
Last push
9/13/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in productivity-workflow.

Acp App@deepseek-ai/dsh-acp-appThe dsh ACP profile bundle: automation-only JSON-RPC stdio and process lifecycle over dsh-baseClient Ui Task Board@linxin666/dsh-client-ui-task-boardHost-authoritative task board for the DSH Web GUI with real session execution, Host cron scheduling, and optional cross-platform idle-sleep protection; mounted without DSH source changes.Web All@linxin666/dsh-web-allDSH Web UI 全家桶聚合插件:一键安装全部功能插件(task-board / git-graph / pet / remote-web-ui / web-ui-settings / skin-center / community-plugins / compat shim)。compat 桥接层已并入本包(src/client),无需独立 compat npm 包。Agent Teams@nanmicoder/dsh-agent-teamsAgentTeams for DeepSeek Harness: multi-agent team collaboration (captain, members, tasks with dependencies, messaging) driven by natural language, with a tree monitor in the web GUI

README

@dsh-enhanced/personal-wiki

面向个人助理的 Markdown 知识库。页面是人可读、可备份的唯一真源;进程内目录、段落检索索引、反链与 lint 报告都可从页面重建。它保存研究、项目、人物、概念、来源与决策等长资料;每轮都可能有用的短事实和偏好应交给 personal-memory。

安装

本插件要求 @dsh-enhanced/assistant-policy 先提供 ctx.assistantPolicy。生产聊天审批还应组合可选的 @dsh-enhanced/assistant-delivery;Wiki 只依赖它的公开类型与 Cordis service,不把 Delivery 打进自己的发布包:

dsh plugin --profile web add @dsh-enhanced/assistant-policy
dsh plugin --profile web add @dsh-enhanced/assistant-delivery
dsh plugin --profile web add @dsh-enhanced/personal-wiki
dsh --profile web --dump-config

默认页面位于 $DSH_HOME/personal-wiki/vault/wiki/,提案状态位于 $DSH_HOME/personal-wiki/state.sqlite。默认 policy 没有 allow 规则,因此所有模型操作都会 fail closed。按真实 preset 与绝对 workspace 放行所需服务和工具:

- id: dsh-enhanced-assistant-policy
  name: '@dsh-enhanced/assistant-policy'
  config:
    databasePath: !!js dshHomePath('assistant-policy/policy.sqlite')
    rules:
      - id: allow-primary-wiki-service
        effect: allow
        subject: { kind: agent, id: primary, workspace: /absolute/workspace }
        actions: [lint, propose, read, rebuild, search]
        resource: { kind: wiki, id: "*" }
        context: { initiators: [foreground] }
      - id: allow-primary-wiki-tools
        effect: allow
        subject: { kind: agent, id: primary, workspace: /absolute/workspace }
        actions: [execute]
        resource: { kind: tool, id: wiki_* }
        context: { initiators: [foreground] }
    budgets: []

工具和写入语义

  • wiki_search:显式搜索页与段落,支持 ASCII 和中文 unigram/bigram,返回有界 snippet、稳定 page id、相对路径、revision 与直接来源。
  • wiki_read:用 wiki://<ULID>、ULID、精确标题或别名读取一页;输出受字节/段落双预算约束,并以 <knowledge_source> 标记为“不可信数据而非指令”。标题和正文会先做 XML 文本转义,页面无法闭合该数据边界。
  • wiki_upsert:只提交完整 create/update 提案。update 必须带 page_id 与 expected_revision;模型没有直接写页的方法,也不能提供 principal、workspace、飞书 binding、审批 TTL 或页面 authority。TTL 与 authority 分别由可信配置 defaultProposalTtlMs、toolProposalAuthority 决定。
  • wiki_lint:只读报告坏 frontmatter、重复 id/标题/别名、大小写路径碰撞、死链、孤页、来源哈希、派生 provenance 和进程索引漂移;不会修复或重建。

wiki_search、wiki_upsert 和 wiki_lint 的模型可见结果也分别放在有界、XML 转义的 <wiki_search_results>、<wiki_proposal_results>、<wiki_lint_results> 数据 framing 中。

插件还注册一个短的 personal-wiki-workflow Skill,要求 search/read 后再提案、保留 wiki:// 引用、把来源视为数据,并禁止绕过审批直接用 shell 改 vault。

wiki_upsert 会从当前 Agent 的 Delivery owner binding 派生 exact principal、workspace 和 binding,并让 Policy 在创建提案的同一事务中持久化审批投递。模型无法改写该路由。没有 Delivery 的可信 headless 宿主仍可通过 ctx.personalWiki.propose(..., { principal }) 显式指定 principal;模型工具没有这个兼容入口,缺少路由时会 fail closed。

ctx.personalWiki.decideProposal(...) 面向可信通道/UI。提案绑定 principal、TTL、版本和完整目标 Markdown。direct decide 与重启 reconcile 都使用 Policy 的共享 settlement validator,逐项核对 proposal id、requester、principal、action、resource、summary、expiry、version、decider 和本地 exact diff 的 SHA-256;任一不一致会持久化为 conflicted,绝不写 vault。批准 update 时还会重新读取 SHA-256 revision;外部编辑同样令提案进入 conflicted,不会覆盖新内容。policy 与 Wiki 状态分别持久化;Wiki 会先保存含 absolute deadline 和 exact dispatch 的恢复意图,再调用 Policy 的单事务 recover-or-create。Policy 会优先返回已存在的 exact proposal;若 deadline 已过且 proposal 不存在,则永久 tombstone 该 idempotency key,阻止另一个进程随后创建孤儿审批或续期。即使 Policy proposal 已提交、投递或批准而本地 attachment 尚未提交,重启后的 reconcile 也能找回同一 proposal,无需原 Agent 再提一次。只读 scoped lookup 仅用于诊断,不参与创建决策。

页面与重建

页面只位于固定目录 wiki/{sources,people,projects,concepts,decisions,questions,meta}。严格 JSON-compatible YAML frontmatter 包含 ULID、标题、类型、状态、authority、tags、aliases、直接 sources、创建/更新时间;未知字段和坏 SHA-256 会明确报错。curated 页面是独立真源;derived 页面必须指向直接 curated evidence,禁止 derived page 再总结 derived page。

启动时构建不可变进程快照。人工编辑后需显式 rebuild 才进入 search/read;失败的 rebuild 保留上一个可用快照。页面写入使用同目录 0600 临时文件、文件 fsync、atomic rename 和目录 fsync。页面目录为 0700,拒绝相对 root、..、绝对子路径、symlink、非普通文件、越界 realpath、大小写碰撞和超限页面。

备份时以整个 vault/wiki 为准;state.sqlite 只需在还要保留未决审批时一并备份。删除进程索引无需恢复,因为它只存在内存中。

配置上限

字段默认值作用
maxPageBytes1048576单页 Markdown 最大 UTF-8 字节数
searchLimit20默认搜索命中上限(硬上限 100)
maxSnippetBytes2048单条搜索片段字节上限
readMaxBytes8192单次读取总字节上限
readMaxParagraphs40单次读取段落上限
lintLimit200默认 lint finding 上限
defaultProposalTtlMs900000默认提案有效期(15 分钟)
toolProposalAuthoritycurated可信部署为所有模型 wiki_upsert 固定的 curated/derived 分类;模型不可覆盖
reconcileIntervalMs15000提交“会话结束后才被批准”的提案的轮询间隔;0 关闭定时器
reconcileLimit50每轮 reconcile 检查的本地待决提案上限

延迟审批的提交闭环

wiki_upsert 只创建提案。审批可能发生在原 turn 结束之后(例如几分钟后在飞书卡片上点击),因此本插件会周期性调用 reconcileProposals():读取 policy 账本中该提案的终态,再走与 decideProposal 相同的写入路径(同目录 temp + fsync + 原子 rename)。

五条边界:

  • 不推断批准:pending 仍然是 pending;只有 policy 账本给出终态才写 vault。
  • 幂等:重复 reconcile 不会重复写页面或重复结算。
  • 公平扫描:reconcile cursor 和每轮固定 high-water 都持久化;本轮开始后的新增提案留到下一轮,前面的长期 pending 不会饿死后面已批准的提案,重启也不会回到第一页。
  • 不复活旧意图:Policy 尚未提交且 absolute deadline 已过时,会在 Policy 同一写事务中 tombstone idempotency key,并把本地意图置为 conflicted;多进程竞争也不能随后生成孤儿卡片。
  • 冲突不丢决定:expectedRevision 已变化或 Policy settlement 的不可变字段不匹配时,提案持久化为 conflicted,而不是覆盖文件或反复重试。

需要完全由宿主驱动时,把 reconcileIntervalMs 设为 0 并自行调用 reconcileProposals()。

权限与非目标

  • 文件系统:只读写显式 vaultRoot、databasePath 及 SQLite WAL/SHM;不会扫描工作区或任意绝对路径。
  • 网络、子进程、凭据、浏览器、安装脚本:本插件自身无;组合 Delivery 时只提交不可变审批 dispatch,由 Delivery/Lark 各自声明并持有网络与凭据权限。
  • Git:不执行 add/commit/push;用户可在 vault 外部自行纳入版本控制。
  • 非目标:PDF/DOCX/web ingest、向量数据库、Web UI、自动摘要写入、自动 archive、自动 Git commit、远端/多 vault 同步、Memory 双向同步、图数据库和多用户 ACL。

兼容性

已针对 DeepSeek Harness 0.1.2-rc.1 验证。详见仓库兼容性基线。