rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Zhang1025681484/dsh-md-editor
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
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
*.md / *.markdown,
so the official file tree opens files directly into an editable tab.Ctrl/Cmd+S saves immediately.text), giving you the built-in renderers (Markdown / code / plain text), plus Mermaid
and KaTeX if dsh-md-studio is installed.# 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.
.md file → it opens in a Markdown Editor tabCtrl/Cmd+S)已保存(版本 …) once the write lands0.2.0-rc.2)vendor/monaco (~13 MB), so it works fully offlinereplaceIfVersion
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.dsh-md-studio..client-beacon.log into the plugin directory. It is a debugging beacon (see below)
and is safe to delete.Two halves, declared in package.json:
| Half | File | Responsibility |
|---|---|---|
| Host | index.js |
serves Monaco assets at /api/md-editor/monaco via ctx.connection.fetch.register; registers the /md-save command |
| Host | monaco.js |
same-origin Monaco asset resolution, with traversal and symlink checks |
| Browser | client.js |
registers 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']
ctx.remote.workspaceFiles.read(...) — that service is read-only./md-save command, and the host
writes with ctx.fs.writeText(resolved, content, guard, undefined, policy).cwd when resolving the path — otherwise relative
paths resolve against the process working directory and you get a "successful" write to the wrong
location.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).
See THIRD-PARTY-NOTICES.md. In short:
vendor/monaco)MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。