XieZongChen/dsh-md-notes
DeepSeek Harness(DSH)的笔记插件。它提供完整的MD笔记管理器和MD笔记编辑器,让您能快速将对话内容捕捉到笔记中。通过同步到Git仓库,可以维护和管理笔记。
项目介绍Project Overview
dsh-md-notes 是 DeepSeek Harness 的第三方插件,提供 Markdown 笔记管理与编辑器,支持侧边栏笔记列表、对话一键追加到笔记、@ 引用笔记注入模型上下文。文件存于工作区本地 .dsh-notes 目录,可选 Git 仓库同步(共享或每工作区独立)。适用于需要本地化、结构化记录对话内容的用户。注意:助手推理过程不写入笔记,仅写入最终回复。
dsh-md-notes is a third-party plugin for DeepSeek Harness that adds a Markdown notes manager and editor. It provides a sidebar notes entry, one-click capture of assistant replies into notes, and @-mention of notes to inject their content into the model context. Notes are stored as plain .md files under each workspace's .dsh-notes directory, with optional Git sync in shared or per-workspace mode. Use it to capture, organize, and reference conversation content locally. Caveat: assistant reasoning is not captured, only the final answer.
请帮我了解并安装插件:【dsh-md-notes】【https://github.com/XieZongChen/dsh-md-notes】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add dsh-md-notes
把 XieZongChen/dsh-md-notes 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-md-notes
DSH third-party plugin (bundle): MD Notes Manager
User Guide · Features · Architecture · Context · Roadmap · Changelog
Overview
A note-taking plugin for DeepSeek Harness (DSH). It provides a full MD notes manager and MD notes editor, letting you quickly capture conversation content into notes. Notes can be maintained by syncing to a Git repository.
Who it's for: DSH web users who want local, file-based notes (no database, no cloud) — capture a conversation into a note with one click, keep editing the .md anywhere, and back up / sync with a Git repository.
Current features:
- Sidebar notes entry → full-screen notes manager: per-workspace note list (grouped, collapsible), markdown edit/preview, save, delete (in-page confirm), create with one click.
- Assistant-message action (next to copy) → pick or create a note and append that conversation (user question + answer) to it instantly — the text is captured from the conversation itself, so there's no waiting; section labels are localized (reasoning is not captured — only the final answer).
- Reference notes in chat (
@): type@to pick notes (cross-workspace included); on send the host injects each note's content into the model context, so the model can cite it without being asked to read files. - Git sync (optional, URL-driven): shared repo mode (one repo for all workspaces, per-workspace folders) or own repos mode (per workspace: URL + branch + subpath). Push = mirror-sync (deletions included), Update = pull with three-way conflict confirmation, auto-pull on open, merge-remote-and-retry. Each workspace shows a Git sync card in the manager: "Synced" / "N unpushed" status, plus a hint when the remote has new commits.
- Note write mutex: writes to the same note are locked across sessions — the sidebar entry, picker and manager stay in sync until the write finishes.
- Settings panel (dsh Settings → MD Notes): mode, repo URL/branch/subpath, auto-pull, commit author — with dsh-styled form controls.
- Theme & i18n: token-based colors (light/dark), UI copy follows dsh's language (Chinese / English), error messages localized.
- Update notifications: a yellow "Update available" tag appears when a newer npm version exists.
On the roadmap (see docs/TODO.md): visual Git conflict rendering & resolution, note capability enhancements (search / TOC / wiki links), and interaction UX polish (dirty-editor reminders, save shortcut, etc.).
Compatibility
- Verified plugin version: 0.8.0 (see CHANGELOG.md for history).
- Verified dsh version: deepseek-harness mainline
0.1.1-rc.2. - The plugin is not pinned to a specific mainline commit; pin the plugin version at install time if you need a fixed combination. Runtime dependencies (
@deepseek-ai/*,react) are declared as optional peer dependencies and resolve from the dsh installation.
Install / Uninstall
Prerequisites: dsh CLI installed, target profile is web.
Install from npm (recommended):
dsh plugin --profile web add dsh-md-notes
Then restart dsh web (bundle layer and client package metadata are cached in the process; a restart is required for changes to take effect).
Upgrade:
dsh plugin --profile web update dsh-md-notes
A restart of dsh web is required for it to take effect.
Uninstall:
dsh plugin --profile web remove dsh-md-notes
For development/debugging from source: run
dsh plugin --profile web add ./dsh-md-notesfrom the parent directory of the plugin project.
Quick start
- Install the plugin (above), restart dsh web.
- Create a note: click the notes entry at the bottom of the sidebar (above Settings) → click + on a workspace row (an "Untitled note " title is generated) → type in the editor → Save.
- Capture a conversation: below any assistant answer, click the notes icon (next to copy) → pick a target note (or create one on the spot) → Write to note. The user question + answer are appended to the note as a " -- " section.
- Reference a note: type
@in the chat input to pick a note (cross-workspace included); on send the note's content enters the model context automatically.
Note files live in each workspace's .dsh-notes/ directory (<workspace>/.dsh-notes); you can open and edit them directly with any editor. Git sync is optional — point the plugin at a repo URL and it keeps notes in sync (shared repo or per-workspace repo).
For everything the plugin can do — the notes manager, capturing conversations, Git sync (shared / per-workspace repos), pushing/updating, conflict handling, and the settings panel — see the User Guide.
Configuration
All options are plugin Config keys, overridable in the profile's cordis.patch.yml (a patch replaces the whole config of the row):
- id: md-notes
config:
route: '/plugins/md-notes' # HTTP API prefix; default is fine
gitMode: 'off' # 'off' | 'shared' | 'own'
gitAutoPull: true # pull remote before opening a note
| Key | Default | Meaning |
|---|---|---|
route |
/plugins/md-notes |
HTTP API prefix served by the plugin; also hosts the icon at <route>/icon.svg. |
gitMode |
'off' |
Git sync mode: 'off' off / 'shared' shared repo / 'own' per-workspace repos. |
gitAutoPull |
true |
Pull the remote before opening a note. |
There are no environment variables and no secrets in this plugin's configuration.
Permissions & data
- Filesystem: reads and writes notes as plain
.mdfiles (plus ameta.jsonsidecar) under each workspace's.dsh-notesdirectory (notes are workspace-bound); git operations touch only the plugin-managed clones under$DSH_HOME/md-notes-repos/. - Network: a loopback HTTP API (
POST <route>, browser ↔ local dsh server) and the icon served from the same origin. No external network calls, no telemetry. - Credentials: none collected or transmitted.
Troubleshooting
| Symptom | Fix |
|---|---|
| Changes don't appear after install/upgrade | Restart dsh web — bundle layer and client metadata are cached in the process. |
| Icon looks stale | Hard-refresh the page; the icon is served with no-cache and reflects assets/dsh-md-notes.svg on every request. |
| Plugin doesn't load | Verify the layer: dsh --profile web --dump-config and look for the md-notes row. |
Installed from git and add failed |
pnpm ≥10 blocks build scripts by default; add the printed package key under allowBuilds in the profile's pnpm-workspace.yaml, then re-run add. |
| Notes can't be created/saved | Make sure the workspace's .dsh-notes points to an existing writable directory (create a workspace in the dsh sidebar first). |
Rollback: dsh plugin --profile web remove dsh-md-notes restores the previous state (notes files are untouched).
Contributing
See CONTRIBUTING.md for details.
Repository structure
| Path | Contents |
|---|---|
src/ |
Source code (host half + client half) |
src/host/ |
Notes domain (notes.ts) + Git (git.ts) + HTTP layer (http.ts) + context injection (context-inject.ts) + write mutex (keyed-lock.ts) |
src/client/ |
Browser half: entry (index.ts) + feature modules under features/ |
src/client/features/locales/ |
zh/en UI dictionaries (dsh locale namespace md-notes) |
assets/ |
Plugin icon (SVG source + PNG) |
docs/ |
Docs: usage.md/usage.zh.md (user guide), features.md (functional), architecture.md, context.md (@ references), git.md (Git sync), state.md / write-lock.md (state & write-mutex design), manager-redesign.md (manager redesign), TODO.md |
scripts/ |
Dev tooling (e.g. link-deps.mjs) |
lib/ |
Build output (gitignored; what npm publishes) |
License & security
Licensed under the MIT License (see LICENSE).
Security issues: please report them privately via the repository's Security Advisory rather than a public issue, so they can be addressed before disclosure.
nexu-io/open-design
ruvnet/ruflo
amruthpillai/reactive-resume
esengine/DeepSeek-Reasonix
volcengine/OpenViking
Molunerfinn/PicGo
titanwings/distilly
titanwings/colleague-skill