Chuyển đến nội dung chính

dsh-anchored-gpt-patch

Đã xác minh

dsh-anchored-gpt-patch · v1.0.0 · MIT

Anchored Standard preset with GPT Patch mode: task-aware first-request anchors using the bundled OpenAI Codex apply_patch instead of edit/write. Built for GPT/Codex models.

Cài đặt

dsh plugin add dsh-anchored-gpt-patch

Xác nhận layer đã áp bằng dsh --profile default --dump-config — xem hướng dẫn cài plugin.

Mã nguồn

Thẻ

Tác giả

Readme

dsh-anchored-gpt-patch

锚定标准模式(GPT Patch):把 anchored-standard 的两阶段锚定拿过来,首轮和全量目录里的 edit / write 全部换成内置的 OpenAI Codex apply_patch。适合 GPT / Codex 模型。

Forked from Jungod1121/dsh-anchored-standard (MIT, itself inspired by xiaobright/dsh-anchored-standard). Community project — not an official DeepSeek preset, not affiliated with or endorsed by DeepSeek.

与上游的差别

上游 anchored-standard 本包 anchored-gpt-patch
首轮 spec 锚定 bash + read + edit bash + read + apply_patch
首轮 react 锚定 bash + read + write bash + read + apply_patch
晋升后全量目录 全部 25 个 Standard 工具(含 edit/write) 过滤掉 edit/write,文件改动只走 apply_patch
工具后端 无 自带 preset/bin/apply_patch 二进制(见下)
UI 无 建议同装 dsh-apply-patch-ui,把 apply_patch 调用渲染成 diff 卡

安装

dsh plugin --profile web add dsh-anchored-gpt-patch
dsh plugin --profile web add dsh-apply-patch-ui

重启 DeepSeek Harness,bundle 会把 preset 拷到 $DSH_HOME/.agent-presets/anchored-gpt-patch/(幂等:本地改过的文件不会被覆盖),然后新建空白会话选择 锚定标准模式(GPT Patch)。设为新会话默认:

# $DSH_HOME/settings.yaml
agent-presets:
  default: anchored-gpt-patch

验证

导出会话 JSONL,看 request/header 事件:首个 header 只有 bash/read/apply_patch 三件套,第一次 tool/call 之后恢复全量目录(不再含 edit/write)。

当前限制

  • preset/bin/ 目前只带 Windows 的 apply_patch.exe,macOS / Linux 暂不支持(装得上但工具执行会失败)。
  • apply_patch 二进制是 OpenAI Codex 的产物,遵循 preset/bin/LICENSE-OpenAI-Codex.txt,随包再分发。
  • Harness 处在 developer preview,升级前先看上游 breaking changes。

卸载

dsh plugin --profile web remove dsh-anchored-gpt-patch
rm -rf "${DSH_HOME:-$HOME/.dsh}/.agent-presets/anchored-gpt-patch"

兼容性

从 harness 0.1.1-rc.2 + anchored-standard 的 0.1.0-rc.6 验证基线 fork,实测以你本地为准。

License

MIT — LICENSE,第三方二进制见 NOTICE。