rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:dongfangxy/dsh-agents-md-settings
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DeepSeek Harness reads AGENTS.md on every new session, but its UI has no way to
open that file. This small bundle adds one row to Settings → General that hands
the file to your editor.

中文说明见文末。
Clicking 用记事本打开 / Open in editor opens the user-global AGENTS.md of the
harness home — %DSH_HOME%\AGENTS.md, or ~/.dsh/AGENTS.md when DSH_HOME is
unset. Nothing else: no telemetry, no network, no changes to the file itself.
On Windows the bundle launches Notepad directly. A .md file usually has no shell
association, so relying on "open with the default app" would show a picker (or do
nothing at all when started through cmd /c start).
A cordis bundle with a host half and a client half:
| File | Role |
|---|---|
cordis.patch.yml |
inserts one row named agents-md-settings into the profile |
index.js |
host: resolves the harness home, registers GET /agents-md/path and POST /agents-md/open, launches the editor |
client.js |
client: registers the row into the settings.general.item slot |
package.json |
dsh.bundle.patch and dsh.client declarations |
The client reads /agents-md/path on mount and posts to /agents-md/open on click.
The host resolves $DSH_HOME/AGENTS.md, falling back to ~/.dsh/AGENTS.md, then
launches an editor — notepad.exe on Windows, open on macOS, xdg-open elsewhere.
On Windows it then waits for the Notepad window, restores it, sizes it to 900×640 and
raises it, because a stale saved window placement can make an opened file look like
nothing happened.
Neither route takes a body or a caller-supplied path, so the only file they can ever
touch is the current user's own AGENTS.md.
This is a bundle, not an npm-published plugin. Use the profile the app actually runs —
on Windows desktop it defaults to %ProgramData%\dsh-data\profiles\desktop; the exact
path is in the app's DSH_PROFILE_DIR.
Install it as a plugin. Never copy the folder into node_modules. A copied folder
is pruned by the next pnpm install, and every plugin install or upgrade runs one —
that is how this bundle can disappear on its own while the patch row that points at it
stays behind. An installed package is a recorded dependency, so later installs keep it.
dsh plugin add github:dongfangxy/dsh-agents-md-settings
The same string works in the app: Settings → Plugins → Add plugin, which accepts a
package name, a Git address, a tarball or an absolute local path. The installer writes
the dependency into <profile>/package.json and applies the bundle's own patch row, so
later installs leave it alone. Restart DeepSeek Harness; the row appears at the bottom
of Settings → General.
If the row is missing after a restart, the patch row did not get applied — add it by hand as shown under From a local checkout below.
Use this while you are editing the source: declare a link: dependency on the folder
you are working in.
In <profile>/package.json, add one dependency:
"dependencies": {
"@local/agents-md-settings": "link:<absolute path to the checkout>"
}
Install it into the profile:
pnpm install --dir <profile>
node_modules/@local/agents-md-settings becomes a link to the checkout, and
pnpm-lock.yaml records it.
Add one row to <profile>/cordis.patch.yml, matching the existing indentation:
- insert:
- id: agents-md-settings
name: "@local/agents-md-settings"
Restart DeepSeek Harness. The row appears at the bottom of Settings → General.
If your build exposes the plugin_manager tool, install_bundle with
target: "<absolute path to this checkout>" does steps 1–3 for you.
Uninstall through the same surface: Settings → Plugins removes the package and its
patch row. By hand, drop the @local/agents-md-settings dependency from
<profile>/package.json and the agents-md-settings insert row from
<profile>/cordis.patch.yml, run pnpm install --dir <profile> so the folder is
cleaned up, and restart.
AGENTS.md is read once, at the first
request of a session, and is not watched for external changes.DSH_HOME. The instruction loader reads $DSH_HOME/AGENTS.md,
or ~/.dsh/AGENTS.md when the variable is unset; this row resolves the same way. A
hard-coded ~/.dsh would silently edit an unread file on every machine that moved
its harness home to another drive, a portable install, or a shared directory.$DSH_AGENTS_HOME/AGENTS.md
(~/.agents/AGENTS.md by default). This row edits only the harness-home file.open / xdg-open but are untested.cordis.patch.yml still parses; a YAML typo prevents the whole patch layer from
loading.| Version | Change |
|---|---|
| 1.0.3 | Resolve the harness home ($DSH_HOME, else ~/.dsh) instead of hard-coding ~/.dsh, and add GET /agents-md/path so the row shows the file it will open. A moved home used to make the row edit a file no session read. |
| 1.0.2 | README: lead with dsh plugin add github:… so a new user installs a real package instead of copying the folder into node_modules and losing it on the next install. |
| 1.0.1 | README: install as a profile dependency. A folder copied into node_modules is deleted by the next pnpm install, which is why the row could vanish on its own. |
| 1.0.0 | Works end to end on Windows. Client posts to the route; host launches Notepad and raises its window. |
| 0.7.0 | Removed detached: true — on Windows a detached PowerShell never launched the editor, so the route answered 200 while nothing appeared. |
| 0.6.0 | Back to fetch(POST): the desktop shell denies target="_blank", so the anchor-based row of 0.4.0 clicked into nothing. |
| 0.5.0 | Find the Notepad window by title, then restore, resize and foreground it. |
| 0.4.0 | Row rendered as a plain link (later reverted). |
| 0.3.0 | Windows launches Notepad directly instead of cmd /c start. |
| 0.2.0 | Host resolves ~/.dsh/AGENTS.md and serves POST /agents-md/open; the client stops sending a path. |
| 0.1.0 | First attempt: client called session/openWorkspacePath with ~/.dsh/AGENTS.md; hosts that expand ~ under Documents opened the wrong folder. |
The four bugs worth remembering, if you build something similar:
~ is not expanded by every host entry point — resolve the home directory in the
host process instead.<a target="_blank"> inside the desktop shell may never navigate.spawn(..., { detached: true }) can silently fail to launch the child's
GUI application.os.homedir()/.dsh is the harness home only while DSH_HOME is unset. Read the
variable first; otherwise the plugin edits a file the loader never opens, and
nothing reports the mismatch.DSH 每个新会话都会读 AGENTS.md,但界面上没有入口能打开它。这个 bundle 在
设置 → 通用 里加一行,点一下就用系统编辑器打开 harness home 里的 AGENTS.md
($DSH_HOME,未设置时 ~/.dsh)。
GET /agents-md/path、点击时发 POST /agents-md/open;路径由宿主解析,
包里不写死任何人的路径。$DSH_HOME,没有才退回 ~/.dsh。写死 ~/.dsh 的版本在
把数据挪到别的盘(或便携版、ProgramData 共享目录)的机器上,会静默编辑一个没人读的
文件——文件"打开了",但下个会话根本读不到。dsh plugin add github:dongfangxy/dsh-agents-md-settings,或在应用里
走 设置 → 插件 → Add plugin 填同一串。安装器会把它写进 profile 的依赖、并应用
bundle 自带的 patch 行,重启后生效。node_modules——下一次 pnpm install 会把它当多余包装清掉,
而 cordis.patch.yml 里那行还留着,表现就是"插件莫名其妙不见了"。要改源码时,把依赖
改成 link:<本目录绝对路径> 再 pnpm install --dir <profile>,并手动补 insert 行。insert 行,重新 pnpm install,重启。MIT © Chengxi Zhang
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。