DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

Block Placeholder Edits — DeepSeek Harness 插件(DSH Plugin)
← Plugins
B

dsh-block-placeholder-edits

Block Placeholder Edits

阻止将真实代码替换为类似“// ... existing code ...”占位注释的文件编辑,以及会静默删除文件大部分内容的整文件重写。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:acus9345/dsh-block-placeholder-edits#7e52d31a1e0110c53eec59ff4585ecfa2c8f178e
README兼容性版本

兼容性与来源证明

Block Placeholder Edits 以 dsh-block-placeholder-edits 发布,当前版本为 0.2.3。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

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

版本

0.2.3stable
2026/10/18

相关插件

正在加载相关插件…

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

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

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

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

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

相关插件

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

Client Ui Git Graph@linxin666/dsh-client-ui-git-graph外部 dsh Web GUI 插件:空会话 Git 分支选择器和 Git 图,包含实际的主机端 Git 操作与防护,作为 dsh 配置文件包Ssh@linxin666/dsh-sshdsh Web GUI 的远程 SSH 操作:主机配置存储(~/.dsh/dsh-ssh.json,可从 ~/.ssh/config 导入)、支持跳板主机的持久化 ssh2 连接池、exec / PTY Web 终端 / SFTP 传输 / 本地端口转发隧道 / 集群执行Update@linxin666/dsh-update用于 dsh Web GUI 的自更新插件:探测 npm 上是否有更新的系列版本,并在原地运行所属配置的 pnpm 更新;可通过设置图标旁侧边栏中的触发器启动,并显示发布说明面板Opsdsh-ops适用于 Windows x64、Linux x64 和 macOS Apple Silicon 的 DSH 原生文件和 PTC 工具;可选的托管 Bash 和主机 PowerShell 集成

README

dsh-block-placeholder-edits

English | 中文

Models have a habit that quietly wrecks files. They write // ... existing code ... in place of code they didn't feel like retyping, and the edit tool takes it literally. The file now holds a comment where forty lines of real code used to be. You only find out when the build breaks, or worse, when it doesn't.

This DeepSeek Harness plugin checks every write and edit before it lands. If the new text uses a placeholder comment to stand in for code, or a whole-file write throws away most of a large file, the call is refused and the file is left alone. The model is told exactly which line was the problem:

dsh-block-placeholder-edits blocked this edit to src/app.ts: the new text contains
placeholder comments that stand in for code instead of the code itself. Writing them
would delete whatever they replace.
  line 2: // ... rest of the function unchanged
Fix: write out the full code in place of each placeholder, or use a smaller `edit`
that replaces only the lines you are changing (old_string/new_string) so untouched
code stays as it is.

In practice the model reacts well to this. It switches to a narrower edit, or it writes the code out properly.

Install

dsh plugin --profile web add dsh-block-placeholder-edits

That's the web profile, the browser UI you start with dsh web. If you run DSH another way, use headless (scripts and CI) or acp (editor integrations) instead. Each profile keeps its own plugin list, so add it to every profile you use. It turns on as soon as it's installed. Remove it with dsh plugin --profile web remove dsh-block-placeholder-edits.

From a clone

To try local changes, build a tarball and install that:

git clone https://github.com/acus9345/dsh-block-placeholder-edits
cd dsh-block-placeholder-edits
npm install
npm pack
dsh plugin --profile web add ./dsh-block-placeholder-edits-0.2.0.tgz

What counts as a placeholder

These are comments, in any common comment style (//, #, /* */, <!-- -->, --, ;, JSX {/* */}), that talk about code instead of being code:

// ... existing code ...
# rest of the file unchanged
/* ... */
// keep the rest as is
// ... other methods
{/* ... */}

A bare ... line counts too, except in Python, Markdown and other files where ... means something.

Ordinary comments pass, including ones that mention existing code. A placeholder that was already in the old text also doesn't count, so the plugin won't nag the model about a file that already had one.

The second check is for whole-file write calls. If a file of 40 lines or more is replaced with less than half as many lines, the write is refused. That pattern almost always means the model rewrote the file from memory and dropped a chunk. Targeted edits aren't affected by this check, and neither are new files.

When the model means it

Sometimes deleting most of a file is the point. The model is told it can repeat the identical call once to confirm, and the second try goes through. That keeps a real refactor from getting stuck, but the model has to choose it on purpose. If you'd rather have a person decide, set mode: ask.

Settings

The easy way: open Plugins in DSH's sidebar, click dsh-block-placeholder-edits, change what you want and press Save. It applies to the next tool call, no restart needed.

Or add a row like this to ~/.dsh/profiles/<profile>/cordis.patch.yml, or to ~/.dsh/cordis.patch.yml for all profiles. Keys you leave out keep their defaults.

- id: block-placeholder-edits
  config:
    mode: deny                 # or `ask` for an approval prompt
    shrinkRatio: 0.5           # 0 turns the large-deletion check off
    minLinesForShrink: 40      # files shorter than this are never shrink-checked
    allowIdenticalRetry: true  # false: a refusal is final
    extraPatterns: []          # extra regexes for your own placeholder phrasing
    ignore: ['docs/**']        # globs to skip entirely

Development

npm install
npm test           # detector unit tests
npm run test:e2e   # real dsh runs against a scripted local model, no API key needed

The install test runs dsh plugin add, which needs pnpm on your PATH.

MIT licensed. Written by acus9345. Bug reports and ideas are welcome in the issues.