
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
dsh-input-rewriter
Advanced tools
DeepSeek Harness 插件:发送前用提示词工程 playbook 自动改写用户输入为更优 prompt。官方 bundle 插件,dsh plugin --profile web add
一个 DeepSeek Harness(dsh)插件:帮你把问题问得更好,而且是全自动的。
你正常打字就行。停下来约 2 秒,它就悄悄把你刚才的话改写成更容易得到好答案的样子,直接显示在输入框上方。你不用点任何按钮,也不用学什么「提问技巧」。
先确认你电脑上已经装好了 dsh:打开终端,输入 dsh --version,能看到版本号就说明装好了。
然后,复制下面这一行,粘贴到终端里,回车:
dsh plugin --profile web add dsh-input-rewriter
看到命令最后出现 Done,就说明装好了。
如果上面这行报错装不上,就用这一行代替:
dsh plugin --profile web add github:feiertu/dsh-input-rewriter
dsh web。如果一直没反应,多半是还没选「改写模型」:去 dsh 的设置里选一个模型就行。模型的密钥由 dsh 自己管,这个插件不碰。
src/ 宿主面(Node 进程,完整 Cordis 插件)
├── index.ts 插件入口:加载 playbook → 注册 ctx.rewrite 服务 → 注册 RPC
├── core.ts 框架无关改写核心(LlmLike 抽象 + createRewriter),零 dsh 依赖
├── playbooks.ts 加载 skills/*.md 的 playbook 原文
├── skills.ts 把 playbook 注册为 dsh skill(name 形如 input-rewrite-<scene>)
├── settings.ts 设置命名空间与 schema(provider/model + 防抖时间)
├── rpc.ts 宿主↔浏览器 RPC 通道 /input-rewriter
└── rewrite/
├── engine.ts 纯函数面:场景识别、系统 prompt 组装、附件分段与拼回
├── llm.ts 把 ctx.llm.stream 包装成框架无关的 LlmLike
└── service.ts RewriteService:聚合模型选择、改写、防抖设置
client/ 浏览器面
└── index.tsx 输入框改写 dock + 设置板块(模型选择、防抖时间)
skills/ 7 份 playbook(Markdown,对应 7 个场景)
test/ 单元测试(core / engine / settings)
lib/ 编译产物(lib/index.js 宿主面、lib/client.js 浏览器面)
src/,跑在 Node 进程里,负责改写核心逻辑与模型调用。client/index.tsx,跑在 dsh 的 web 沙箱里,负责输入框 UI 和设置页。core.ts 完全不依赖 dsh,可独立复用;rewrite/llm.ts 只做 dsh → LlmLike 的适配。FAQs
DeepSeek Harness 插件:发送前用提示词工程 playbook 自动改写用户输入为更优 prompt。官方 bundle 插件,dsh plugin --profile web add
The npm package dsh-input-rewriter receives a total of 0 weekly downloads. As such, dsh-input-rewriter popularity was classified as not popular.
We found that dsh-input-rewriter 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
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.