Connect Trilium notes to the DSH agent via ETAPI with 20 agent tools: durable memory (remember/recall + auto-injected index), note management (CRUD/clone/attributes/revisions), full-text search, weekly-report workflow, attachments, calendar notes, backup/import, and a settings card.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-trilium
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:MineRPi/dsh-trilium
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time. Only install sources you trust, and pin a commit (github:owner/repo#sha).
README
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.6 <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.0published ✅ - 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
Links
More in this category
volcengine/OpenViking#examples/dsh-memory-plugin★ 28936
OpenViking memory and context bundle for DeepSeek Harness: pre-step auto-recall and profile injection, session capture, `viking://` URI guarding, and recall/write memory tools backed by an OpenViking server.
vectorize-io/hindsight#coding-agents★ 20118
Hindsight, agent memory that learns: long-term project memory with auto recall and retain, knowledge pages, deep reflection, and per-repo memory banks.
Ikalus1988/MisakaNet★ 404
Failure-recovery memory: search and record failure-recovery lessons from real engineering sessions, with BM25 + semantic RAG retrieval and a lessons knowledge base.
text2future/flowix#dsh-flowix-memory★ 315
Registers the local flowix-cli MCP server so the agent can search, read, create, and edit Flowix memos and mind-map artifacts.
dsh-engramory★ 155
The Engramory curated-memory discipline as an installable plugin ([npm: dsh-engramory](https://www.npmjs.com/package/dsh-engramory)): a deterministic 200-line / 25 KB cap on the `MEMORY.md` index via `ctx.tools.guard()` — growth denied, a shrinking rewrite always passes — plus the protocol registered as a runtime skill. The store is plain markdown, one file per fact, shared with Claude Code, Codex, Kiro, and OpenClaw.
omdsh-dev/dsh-mnemon★ 78
Cross-agent, local-first persistent memory plugin for DeepSeek Harness (DSH), powered by Mnemon. It shares long-term memory across Mnemon-enabled agents and adds runtime memory, searchable project documents, semantic recall, knowledge graph, and a Sidebar UI.