@fonlan/dsh-apply-patch
DSH plugin: a codex-style apply_patch tool (*** Begin Patch / *** Update File / *** Add File / *** Delete File) injected into the model toolset through DSH's built-in sandbox, with a settings card to choose injection scope (off / GPT models only / all models).
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:fonlan/dsh-apply-patch说明文档
阅读完整 README ↗使用
模型(尤其是 GPT 系列)会像在 Codex 中一样直接调用 apply_patch,例如:
*** Begin Patch
*** Update File: hello.py
@@
-print("hello")
+print("hello, world")
*** Add File: new.py
+x = 1
*** Delete File: old.py
*** End Patch
工具返回 codex 风格的摘要:
Success. Updated the following files:
M /path/to/hello.py
A /path/to/new.py
D /path/to/old.py