dsh-brain-hub
Second-brain for DeepSeek Harness: notes in Markdown + git, reviewed card capture from the DeepSeek web chat, cloud/local split, and a toolbar menu in the session header.
What it is
Second-brain for DeepSeek Harness: notes in Markdown + git, reviewed card capture from the DeepSeek web chat, cloud/local split, and a toolbar menu in the session header.
How to install
Run this in the DSH web profile, then refresh the page.
$ dsh plugin --profile web add dsh-brain-hub@0.1.1
DSH versions accepted
>=0.2.0
Author and traction
xxwjxx-1210 · ★ 2 · Updated 2026-11-09
About this plugin
dsh-brain-hub
给 DeepSeek Harness 用的「第二大脑」:Markdown 当数据库,git 当同步。不用数据库、不用云服务,记忆就是你磁盘上的一堆 .md 文件。
[English](README.en.md)
它解决什么问题
你在网页版和 DSH 之间来回贴东西:网页版聊得深、DSH 能干活,但两边记忆不通。这个插件把三件事做进一个包:
| 层 | 干什么 |
| --- | --- |
| 记忆库 | MEMORY.md 核心记忆常驻注入系统提示;notes/*.md 一张卡一个文件;index.json 索引;写一次自动 commit + push |
| 卡片确认 | 网页版按规则拆好的卡片先进 inbox/,你逐张过一眼再决定「存到云端」还是「只存本地」 |
| 网页版笔记 | 侧栏网页版对话的进度存成 progress.md,旧稿滚进 history/(留最近 20 份),正文尾部再回灌进系统提示 |
会话顶栏有一枚脑形图标,点开是四步流水线:
1. 打开网页版 —— 在侧栏打开 chat.deepseek.com
2. 让网页版整理成卡片 —— 把提炼规则发给网页版,等它按格式吐出卡片
3. 逐张确认并保存 —— 弹窗里每张卡都有「看看全文 / 保存这张 / 不要了」
4. 备份到云端 —— commit + push,推到没推完的提交会自动补推
每一步都有状态行(第几步、共几步、当前卡在哪),第 3 步会显示「生成状态:几点生成几张、跳过几张」。
不查重:同一主题想存几次就存几次,文件名冲突会自动加 -2、-3 后缀,不覆盖也不静默跳过。
安装
# 从 npm(推荐) dsh plugin --profile add dsh-brain-hub # 从 GitHub dsh plugin --profile add "github:xxwjxx-1210/dsh-brain-hub#main" # 或从本地 tgz dsh plugin --profile add file:/绝对路径/dsh-brain-hub-0.2.6.tgz
装完从系统托盘彻底退出 DSH 再启动(前端 bundle 只在启动时加载,热重载不会换掉它)。升级插件同理。
配置
写在 /cordis.patch.yml 的 - id: dsh-brain-hub 下,全部可省:
backend: git # git | folder | local 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 空着也能用,只是不推送——纯本地记忆库一样能跑。
> 配置写在 profile 层,不要写进 node_modules/<包>/cordis.patch.yml:那个文件会被下次安装覆盖。
第一次打开
装完重启 DSH,第一次点会话顶栏那枚脑子图标,会弹一次新手引导:三步用法 + 三种云端存法。选一种会给出可直接粘贴的 YAML 片段,点「知道了,开始用」后不再出现(标记存进 /hub.json)。
三种云端存法
backend 决定记忆库怎么备份出去:
| backend | 存哪 | 要 git 吗 | 适合谁 |
| --- | --- | --- | --- |
| git(默认) | 记忆库目录 → 推自己的私有仓库 | 要 | 多设备同步、想有版本历史 |
| folder | 记忆库目录直接放在 OneDrive / 坚果云这类已同步的文件夹 | 不要 | 不想碰 git,让同步盘负责上传 |
| local | 只在这台电脑 | 不要 | 内容敏感,不联网备份 |
# git config: backend: git remote: 'https://github.com/<你>/<私有仓库>.git'
Compare in this category
The five most-starred plugins in the same category.
| Plugin | Author | Stars | Version | Updated |
|---|---|---|---|---|
| open-design | nexu-io | 106.9K | 0.25.1 | 2026-11-10 |
| huashu-design | alchaincyf | 29.1K | 3.3.0 | 2026-11-10 |
| dsh-web | zhu1090093659 | 10.3K | 0.0.1 | 2026-11-10 |
| baoyu-design | JimLiu | 6.3K | 2.12.2 | 2026-11-10 |
| dsh-wallpaper-engine | elysia395 | 6.3K | 1.4.2 | 2026-11-10 |