MineRPi/dsh-trilium
DSH 记忆知识库插件:通过 ETAPI 把 Trilium 笔记库接入 agent(记忆/笔记/搜索/周报/附件/日历/备份)。
已收录
0
Memory
Bundle 已验证
预览
功能介绍
通过 ETAPI 把 Trilium 笔记库接入 agent,提供 20 个工具:记忆读写(remember/recall + 自动注入索引)、笔记管理(CRUD/克隆/属性/修订)、全文搜索、周报工作流、附件、日历笔记、备份导入,独立设置卡片,配置 0600 落盘。
适合
- 把长期记忆和工作知识保存在 Trilium 笔记库中的 DSH 用户。
- 需要通过统一集成执行笔记增删改查、全文搜索、克隆、属性、修订、附件或日历笔记操作的 agent。
- 需要从 Trilium 中已有材料汇总并保存周报的团队。
- 需要向 agent 开放 Trilium 备份、导出和导入操作的用户。
不适合
- 没有启用 ETAPI 的 Trilium 实例的用户。
- 不在已注明 DSH >=0.1.0-rc.7 且 <0.2.0 兼容范围内的环境。
- Node 版本不符合 ^22.19.0 或 >=24.0.0 的系统。
- 只处理简单本地 Markdown、无需 Trilium 服务端笔记与 ETAPI 能力的工作流。
README
dsh-trilium
| English | 中文 |
A DeepSeek Harness (DSH) Web GUI plugin that connects your Trilium notes to the agent through the ETAPI: durable memory, note management, full-text search, a weekly report workflow, attachments, calendar notes, backups, and a settings card.
Highlights
-
Memory:
trilium_remember/trilium_recallscoped to a memory directory, plus auto-injected memory index at session start (toggleable). - Notes: create / read / update / delete / undelete, tree browsing, cloning (multi-folder reuse), attributes (label/relation), revisions.
-
Search: Trilium full-text syntax (
"exact phrase",#label, subtree scoping). -
Weekly report:
trilium_weekly_reportcollects the week’s material and stores the finished report withstartDate/endDatelabels. -
Attachments & calendar:
trilium_attachment,trilium_calendar. -
Backup & migration:
trilium_backup,trilium_export,trilium_import. - Settings card: 设置 → 插件 → 可配置 (server URL, token, memory directory, switches, connection test).
-
Safe by default: config in
~/.dsh/dsh-trilium.json(0600); token never enters cordis.yml or the model context; deletes requireconfirm.
Install
dsh plugin --profile web add dsh-trilium # npm
# or: dsh plugin --profile web add github:MineRPi/dsh-trilium
Restart dsh web. The repository ships lib/, so git installs normally need no
build approval.
Tools
trilium_app_info trilium_search trilium_get_note trilium_list_children
trilium_create_note trilium_update_note trilium_delete_note trilium_undelete_note
trilium_clone trilium_attribute trilium_attachment trilium_calendar
trilium_remember trilium_recall trilium_weekly_report trilium_revisions
trilium_backup trilium_export trilium_import trilium_history
Verify after install
# the agent tools should be listed in the session (or just ask the agent)
# connection test:
curl -s -o /dev/null -w '%{http_code}\n' http://127.0.0.1:3080/api/dsh-trilium/config
Requirements
- DSH
>=0.1.0-rc.7 <0.2.0, Node^22.19.0 || >=24.0.0 - Trilium with ETAPI enabled (TriliumNext 0.10x+ or classic Trilium)
Development
npm install
npm run typecheck
npm run build
npm test
Listing status
- npm:
dsh-trilium@0.1.2published ✅ - awesome-dsh-plugin PR: #1045 open (pending merge)
- Flow: publish to npm → add a YAML entry under
data/plugins/→ runnode scripts/generate-readme.mjs→ open a PR → dshmarket picks it up after merge
License
常见问题常见问题
在启用了 DSH 的终端中执行已验证命令 dsh plugin --profile default add github:MineRPi/dsh-trilium。命令会解析公开 package 元数据,并保持插件与本页展示的目录身份一致。
兼容性以页面上展示的 bundle 与 profile 状态为准。如果某个 profile 尚未检测到,请先保持禁用,并在生产启用前阅读仓库文档。
GitHub 链接和 activity 元数据是 release 与维护状态的来源。新版本发布后重新查看本页,确认目录已经观察到最新版本。