DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

xxwjxx-1210 /

xxwjxx-1210/dsh-brain-hub

Verified

Second brain for DeepSeek Harness: Markdown memory + git sync, reviewed card capture, cloud/local split.

★ 1 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@a146c0b7

dsh-brain-hub

给 DeepSeek Harness 用的「第二大脑」:Markdown 当数据库,git 当同步。不用数据库、不用云服务,记忆就是你磁盘上的一堆 .md 文件。

English | English

它解决什么问题

你在网页版和 DSH 之间来回贴东西:网页版聊得深、DSH 能干活,但两边记忆不通。这个插件把三件事做进一个包:

层 干什么
记忆库 MEMORY.md 核心记忆常驻注入系统提示;notes/*.md 一张卡一个文件;index.json 索引;写一次自动 commit + push
卡片确认 网页版按规则拆好的卡片先进 inbox/,你逐张过一眼再决定「存到云端」还是「只存本地」;已经存过的主题会自动挡掉,不再重复出现
网页版笔记 侧栏网页版对话的进度存成 progress.md,旧稿滚进 history/(留最近 20 份),正文尾部再回灌进系统提示

会话顶栏有一枚脑形图标,点开是四步流水线:打开网页版 → 让网页版整理成卡片 → 逐张确认并保存 → 备份到云端。每一步都有状态行;第二步会把库里已有卡片的标题一起发给网页版,避免重复造卡,确认窗口顶部还会显示「生成状态:几点生成几张、跳过几张」。

安装

# 从 npm(推荐)
dsh plugin --profile <profile> add dsh-brain-hub

# 从 GitHub
dsh plugin --profile <profile> add "github:xxwjxx-1210/dsh-brain-hub#main"

# 或从本地 tgz
dsh plugin --profile <profile> add file:/绝对路径/dsh-brain-hub-0.2.0.tgz

装完从系统托盘彻底退出 DSH 再启动(前端 bundle 只在启动时加载,热重载不会换掉它)。升级插件同理。

配置

写在 <profile>/cordis.patch.yml 的 - id: dsh-brain-hub 下,全部可省:

memoryDir: 'D:\notes\memory'    # 记忆库(git 仓库);默认 $DSH_HOME/memory
notesDir: 'D:\notes\webds'      # 网页版笔记;默认 $DSH_HOME/dsh_memory
remote: 'https://github.com/<你>/<私有仓库>.git'
branch: main                    # 默认 main
coreLimit: 3000                 # 核心记忆注入上限(字符)
autoPull: true                  # 启动时 pull --rebase
autoPush: true                  # 写入后自动 push
readOnly: false                 # true 时所有写工具直接拒绝
injectProgress: true            # 把 progress.md 尾部注入系统提示

remote 空着也能用,只是不推送——纯本地记忆库一样能跑。

两张卡:云端 / 本地

确认窗口里每张卡都有两个按钮:

  • 存到云端 → notes/,进 git,会推送。
  • 只存本地 → private/,.gitignore 里永久排除,任何情况下都不会被推送。

判断标准很简单:这张卡被同事或客户看到,你会不会紧张? 会紧张就只存本地(真实客户名、报价、联系方式、未公开项目);方法论、判断标准、脱敏案例走云端。

数据格式

---
id: 20261105-120000-标题
title: "标题"
tags: 标签A, 标签B
created: 2026-11-05T12:00:00.000Z
updated: 2026-11-05T12:00:00.000Z
uploaded: true
---

# 标题

正文

notes/ 的格式与 dsh-memory-github 兼容,可以直接接手旧库。

工具(给模型用的)

memory_write · memory_search · memory_read · memory_list · memory_stats · memory_core · memory_update · memory_forget · memory_sync

readOnly: true 时写类工具直接返回拒绝文案,不产生提交。

RPC

POST /api/plugin-rpc/brain-hub,信封 { type:"client-request", rpcId, method, payload:{ endpoint, payload } }。

端点:status hub.settings hub.rename cards.list cards.save cards.read cards.update cards.discard cards.upload progress.save progress.read progress.history memory.sync prompt.get prompt.save。

已知限制

  • 网页版那一半靠侧栏浏览器自动化:需要你先在侧栏里登录 chat.deepseek.com,且 DSH 每次重启都要重新登录一次。DeepSeek 有时会对内嵌环境弹「使用环境异常」提示,这种情况下第二步会失败,插件会把失败阶段、页面地址、输入框状态、页面尾部文本一起显示出来。
  • 拆卡质量取决于提示词。规则在 <memoryDir>/prompts/distill.md,面板里可直接改,改完立刻生效,不用重启。
  • 只支持单仓库单分支。多人协作要靠 git 自己解决冲突。
  • 不做向量检索,搜索是标题/标签/正文加权打分。

开发

cd dsh-brain-hub
node test\harness.mjs        # 宿主:假 ctx + 临时 git 仓库 + bare 远端,43 项
node test\client-apply.mjs   # 客户端:伪造 ModuleLoader,8 项
npm pack                      # 出 tgz,再 pnpm 装进 profile

无构建步骤、零运行时依赖,dist/ 就是源码。

MIT License.

—/ 5

No ratings yet

Verified DSH bundle

Commit a146c0b7bbc9

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout