DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Md Editor — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
M

dsh-md-editor

Md Editor

DeepSeek Harness 右侧边栏中的可编辑 Markdown 标签页——从工作区文件树打开 .md 文件,并在原位置编辑/保存(Monaco + 自动保存)。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:Zhang1025681484/dsh-md-editor#f850602afde04f554c1bc4aad97e76c0e9ef02c6
README兼容性版本

兼容性与来源证明

Md Editor 以 dsh-md-editor 发布,当前版本为 1.0.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/10/10

版本

1.0.0stable
2026/10/10

相关插件

正在加载相关插件…

最新版
1.0.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/10/10
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 developer-tools 分类下经过校验的插件。

Cc Safety Netcc-safety-net编码代理 CLI 钩子——阻止破坏性命令和访问机密文件Remotedsh-remoteDeepSeek Harness 的远程工作助手:连接 SSH(密码/密钥/代理/键盘交互/代理跳转),选择远程工作区,使用 22 个 rw_* 工具操作该工作区(包括 rw_edit/rw_stat/rw_mkdir/rw_remove/rw_move/rw_forward),具备冲突感知的镜像 syFind Plugindsh-find-plugin在代理中查找 DeepSeek Harness 插件——实时搜索 GitHub 上的 dsh-plugin 主题,并按星标数排序。Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)

README

dsh-md-editor

Edit workspace .md files right inside the DeepSeek Harness right sidebar.

Click a .md in the official workspace file tree → it opens in the right sidebar as an editable Monaco tab. Type, pause, and it saves itself. No separate page, no copy-pasting into another editor.

中文说明见 README.zh.md


What it does

  • Opens in place — registers its own Sidebar tab type for *.md / *.markdown, so the official file tree opens files directly into an editable tab.
  • Monaco editor — line numbers, Markdown syntax highlighting, word wrap. If Monaco cannot load it degrades to a line-numbered plain textarea (still editable).
  • Autosave — writes 1.5 s after you stop typing. Ctrl/Cmd+S saves immediately.
  • Reload — discards local edits and re-reads from disk.
  • Preview hand-off — a Preview button opens the same file in the official document tab (kind text), giving you the built-in renderers (Markdown / code / plain text), plus Mermaid and KaTeX if dsh-md-studio is installed.

Install

# from npm (once published)
dsh plugin --profile <your-profile> add dsh-md-editor

# from GitHub
dsh plugin --profile <your-profile> add github:Zhang1025681484/dsh-md-editor

# from a local directory
dsh plugin --profile <your-profile> add file:/absolute/path/to/dsh-md-editor

On the Electron desktop build the desktop profile is owned by the app itself, so the CLI cannot install into it — use Settings → Plugins → Add plugin and paste the local path or package name.

Then fully restart DSH (host-side JavaScript modules are cached per process) and make sure the plugin is enabled in the plugin list.

Usage

  1. Open the right sidebar → Files tab
  2. Click any .md file → it opens in a Markdown Editor tab
  3. Edit; pause 1.5 s (or Ctrl/Cmd+S)
  4. The status bar shows 已保存(版本 …) once the write lands

Requirements

  • DeepSeek Harness >= 0.2.0-rc.2 (developed and verified on 0.2.0-rc.2)
  • Monaco 0.52.2 is bundled in vendor/monaco (~13 MB), so it works fully offline

Known limitations

  • No conflict protection. Saves overwrite unconditionally. The intended replaceIfVersion guard is disabled: the version string returned over the Remote layer has its mtimeNs segment altered in transit (expected …:1781482301616186400:…, actual …:1791482301616186400:… — off by exactly 1e16, a large-integer serialization artifact), so every save would be rejected as a stale conflict. Use the Reload button when you want disk to win.
  • No Markdown rendering. This is an editor, not a viewer — use the Preview button, or install a preview plugin such as dsh-md-studio.
  • Large files are truncated at 5 000 lines/page × 40 pages (~200 000 lines). The status bar warns you; do not save a truncated file.
  • UI strings are hard-coded Chinese — the client locale service is not wired up yet.
  • Writes .client-beacon.log into the plugin directory. It is a debugging beacon (see below) and is safe to delete.

How it works (for plugin authors)

Two halves, declared in package.json:

HalfFileResponsibility
Hostindex.jsserves Monaco assets at /api/md-editor/monaco via ctx.connection.fetch.register; registers the /md-save command
Hostmonaco.jssame-origin Monaco asset resolution, with traversal and symlink checks
Browserclient.jsregisters the tab type and renders the editor

Key APIs, all verified against official implementations:

// browser half — first-layer extension point (stable; body fully self-controlled)
ctx.sidebarRightTabs.register({
  id: 'dsh-md-editor', kind: 'md-editor',
  patterns: ['*.md', '*.markdown'],   // glob — WITH the dot
  priority: 'extension',
  title: () => 'Markdown editor',
});
ctx.slots.inject('sidebar.right.pane.tab', () =>
  ctx.slots.register({ name: 'sidebar.right.pane.tab', key: 'dsh-md-editor' }, Body));

// Cordis service dependencies must be declared verbatim
inject: ['slots', 'sidebarRight', 'remote', 'remote.workspaceFiles', 'remote.commands']
  • Reads go through ctx.remote.workspaceFiles.read(...) — that service is read-only.
  • Writes must be performed by the host: the browser calls the /md-save command, and the host writes with ctx.fs.writeText(resolved, content, guard, undefined, policy).
  • The host must pass the session workspace as cwd when resolving the path — otherwise relative paths resolve against the process working directory and you get a "successful" write to the wrong location.

Debug beacon

The plugin appends one line per lifecycle stage to .client-beacon.log in its own directory (via a /api/md-editor/beacon route). It turns "the UI looks wrong" into numbers readable from disk. Every trap hit while building this is written up in DSH插件开发-避坑指南.md (Chinese).

Third-party

See THIRD-PARTY-NOTICES.md. In short:

  • Monaco Editor 0.52.2 — MIT, © Microsoft Corporation (bundled in vendor/monaco)
  • Monaco loading mechanism — reused from yueyexiayu/dsh-bianji (MIT)

License

MIT — see LICENSE.