Перейти к основному содержимому
R

dsh-anchored-gpt-patch

roc-20/dsh-anchored-gpt-patch

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.

Установка

dsh plugin --profile web add github:roc-20/dsh-anchored-gpt-patch

README

dsh-anchored-gpt-patch

English | 简体中文

A DeepSeek Harness preset for GPT / Codex models, based on anchored-standard. It replaces the edit / write tools with OpenAI Codex's apply_patch.

Everything else works like the original: the model starts with just bash, read, and apply_patch, and once it has made its first tool call the full tool list comes back — minus edit / write, so all file changes go through apply_patch (executed by the bundled preset/bin/apply_patch binary). Installing dsh-apply-patch-ui alongside is recommended; it renders patch calls as diff cards in the UI.

Installation

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

Restart DeepSeek Harness after installation. The preset is copied to $DSH_HOME/.agent-presets/anchored-gpt-patch/ (existing local modifications are not overwritten). When creating a new session, select 锚定标准模式(GPT Patch) ("Anchored Standard (GPT Patch)" — preset names follow the Harness built-in presets, which are Chinese-only). To make it the default preset:

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

Verification

Export the session JSONL and inspect the request/header events: the first header should contain only bash / read / apply_patch; after the first tool/call the full tool catalog is restored, without edit / write.

Limitations

  • preset/bin/ currently ships only the Windows apply_patch.exe; the plugin installs on macOS / Linux but tool calls will fail.
  • The apply_patch binary comes from OpenAI Codex; see preset/bin/LICENSE-OpenAI-Codex.txt for its license.
  • Harness is still in developer preview; check upstream breaking changes before upgrading.

Uninstall

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

Compatibility

Forked from harness 0.1.1-rc.2 + anchored-standard 0.1.0-rc.6; other versions are untested.

License

MIT, see LICENSE. Forked from Jungod1121/dsh-anchored-standard (MIT, itself inspired by xiaobright/dsh-anchored-standard); third-party binary notices are in NOTICE. This is a community project, not affiliated with or endorsed by DeepSeek.

Похожие плагины