← Back to list

dsh-write-create-only

DeepSeek Harness Development & Runtime Low risk

Host-side guard that lets the write tool only create new files: when the target already exists it denies the call before execution and tells the model to use edit instead, applied to all sessions.

纯 host 端守卫,让 write 工具只允许创建新文件:目标已存在时在执行前直接拒绝并提示改用 edit,全局所有会话生效。

How to install

DeepSeek Harness dsh plugin add dsh-write-create-only

About

dsh·write 仅创建插件 禁止 write 覆盖已存在的文件:write 只允许创建新文件,目标已存在时在工具执行前直接拒绝并提示改用 edit,全局所有会话生效,防止模型用 write 把已有文件整体冲掉。纯 host 端插件,不碰 DSH 源码。 为什么 write 是全文件覆写。模型一旦误用 write 去改一个已有文件,原内容会被整段覆盖,而 dsh 默认的 fs-observation-policy 只要求「先读过」,并不禁止覆写。与其事后靠模型自觉,不如把「write = 仅创建」立成硬约束。 功能 **只拦 write**:edit、read 等其余工具完全不受影响。 **目标已存在 → 拒绝**:在 tools/pre-execute 瀑布里对 write 调用先 fs.stat 目标,已存在则返回 deny,错误信息明确提示「请改用 edit 做定向修改;只有创建新文件时才使用 write」,模型看到后会改走 edit。 **目标不存在 → 放行**:新建文件一切照常。 **保守放行**:路径无效、stat 抛错等不确定情形一律放行,绝不误伤合法调用。 **全局生效**:所有 agent 与会话统一适用。 安装 **从 GitHub 安装**:源码在 src/,lib/ 不入仓库,安装时 npm 会触发 prepare 脚本现场构建。 powershell …

Recommendation signals

60 Tool quality · Based on stars, downloads, maintenance, security and docs
User interest · Adjusted by in-site views, install copies and download clicks
60 Overall
0views
0unique visitors
0install copies
0download clicks
0outbound clicks

Meta

License
MIT
Language
JavaScript
GitHub stars
1
mo. downloads
325
Last push
2026-09-01
Created
2026-09-01

Links

Basic safety check

Findings
None
Sources
curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
Topics
create-only, deepseek-harness, dsh, dsh-plugin, no-overwrite, safety, write

Related plugins

Claude Code
Score92

claude-code-templates

davila7/claude-code-templates

CLI tool for configuring and monitoring Claude Code

☆ 30.6K ↓ 16.4K Development & Runtime
MCP Server
Score86

semiotic

nteract/semiotic

React data visualization library for streaming, networks, and AI-assisted development

☆ 2.7K ↓ 34.8K Development & Runtime
Claude CodeCodex
Score82

loki-mode

asklokesh/claudeskill-loki-mode

Multi-agent autonomous SDLC framework. Spec to deployed app. PRD, GitHub issue, OpenAPI/JSON/YAML, or one-line brief. 5 AI providers, 8 quality gates.

☆ 1.1K ↓ 11.5K Development & Runtime
DeepSeek Harness Featured
Score80

deepseek-harness-desktop

dsh-tauri-desk/deepseek-harness-desktop

DeepSeek Harness Tauri 桌面版 | Only 5mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.

☆ 1.8K ↓ 1.5K Development & Runtime