
Security News
OpenCode User Hit with Hostile Backlash After Reporting Free AI Loophole
An OpenCode user faced harassment after reporting a free AI usage loophole, drawing a bitter backlash in a GitHub thread that has since been deleted.
dsh-diff-writer
Advanced tools
Precise file editing for DeepSeek Harness: apply search/replace patches to files instead of full-file rewrites, minimizing accidental changes.
精确文件编辑插件(v0.1.0):用 search/replace 补丁修改文件,避免整文件覆盖带来的误改风险。与 dsh-file-manager-cli(整体读写)和 dsh-git-helper(提交)形成互补的文件工作流。
npm install dsh-diff-writer
apply_patch对目标文件按顺序应用一组 search/replace 补丁。
| 参数 | 类型 | 说明 |
|---|---|---|
path | string | 必填,目标文件(必须位于工作目录内) |
patches | array | 必填,{ search, replace, all? } 列表,按顺序应用 |
create | boolean | 可选,新建文件(此时 patches 可为空) |
匹配规则:
search 必须与文件内容精确匹配(含缩进与换行)all: true 时全量替换所有匹配search 不允许;空 replace 表示删除安全边界:
create=true 不能用于已存在的文件npm test
覆盖唯一匹配替换、多处匹配防护、all 全量替换、多补丁顺序执行、失败中止、create 新建、路径越界拒绝等 16 项断言。
{ startLine, endLine, replace })FAQs
Precise file editing for DeepSeek Harness: apply search/replace patches to files instead of full-file rewrites, minimizing accidental changes.
The npm package dsh-diff-writer receives a total of 7 weekly downloads. As such, dsh-diff-writer popularity was classified as not popular.
We found that dsh-diff-writer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
An OpenCode user faced harassment after reporting a free AI usage loophole, drawing a bitter backlash in a GitHub thread that has since been deleted.

Threat Research
/Security News
319 browser extensions installed by 13.4 million users hijack searches, capture queries, and collect referral payments from Yahoo and Bing.

Threat Research
Malicious Firefox extensions mimic Phantom, Jupiter, and Bitget wallets to steal recovery phrases and private keys, with one fetching its payload remotely.