Starfie1d1272/dsh-v4-anchor:DeepSeek V4 Standard 首請求錨定與 promotion 恢復

前言

在 DeepSeek Harness(DSH)的 Standard 插件場景裏,常見需求是把首輪請求限制在一個較窄的 surface,等模型真正開始調用工具後,再恢復完整 Standard 能力與 Skill。

Starfie1d1272/dsh-v4-anchor 只做這一層:面向 DeepSeek V4 的頂層 Standard 會話,在首次持久化 tool/call 前使用最小 RL-shaped surface;首次持久化 tool/call 後,恢復原始 Standard prompt、runtime contexts、完整工具目錄、Skill Catalog、skill loader 與 AGENTS.md 注入。

這是什麼

Starfie1d1272/dsh-v4-anchor 是一個面向 DeepSeek Harness Standard 的 DeepSeek V4 首輪 RL 錨定插件。維護者爲 Starfie1d1272,許可證爲 MIT。

該插件不是 DeepSeek 官方項目。項目定位爲時效性行爲補丁,而不是長期 Router 框架;如果 DSH 官方或 DeepSeek V4 修復對應行爲,它可以縮小範圍、變爲 no-op,或停止維護並歸檔。

適用範圍

插件只對以下會話生效:

  • DeepSeek Harness 0.1.0-rc.7
  • 官方 standard preset
  • 頂層會話
  • 模型爲 DeepSeek V4,例如 deepseek-v4-flash、deepseek-v4-pro

非 DeepSeek V4 模型、其他 preset 與 subagent 場景爲 no-op。

v0.1.0 要求在首請求前完成模型選擇。DSH rc.7 沒有向普通插件公開 Web 的 session-local picker 狀態,因此不承諾在 bootstrap 尚未 promotion 時動態切換模型仍能嚴格保持同樣的過濾/no-op 語義。

核心功能

首請求:最小 RL-shaped surface

在首次持久化 tool/call 前,符合條件的 Standard 會話使用如下 surface:

system:
You are a helpful software engineer assistant.

tools:
bash / pwsh
str_replace_editor

首請求前會暫時移除 runtime contexts,並暫時隱藏自動注入的 AGENTS.md 與 Skill Catalog。

promotion 後:恢復完整 Standard

一旦會話出現第一次持久化 tool/call,插件會恢復:

  • 原始 Standard prompt
  • runtime contexts
  • 完整工具目錄
  • Skill Catalog
  • skill loader
  • AGENTS.md 注入

str_replace_editor 只用於 bootstrap,promotion 後會從額外暴露的工具中移除。

promotion transition reminder

promotion 後會注入一次性 promotion transition reminder,提醒模型重新檢查恢復的 Skill / tools。

該部分屬於合理但尚未獨立 benchmark 的實驗性修復。

安裝與啓用

先確認 Node 環境滿足要求:

^22.19.0 || >=24.0.0

安裝命令可寫爲:

dsh plugin --profile web add dsh-v4-anchor

也可以安裝固定的 GitHub release:

dsh plugin --profile web add github:Starfie1d1272/dsh-v4-anchor#v0.1.0

安裝後重啓 Web profile:

dsh web

該插件直接複用 DSH 安裝中自帶的:

@deepseek-ai/dsh-tool-str-replace-editor

不會額外安裝第二份 DSH runtime package。

安裝後檢查

這一步用於查看 profile 的最終組合:

dsh --profile web --dump-config

在符合條件的新 Standard 會話中,首請求應看到:

system:
You are a helpful software engineer assistant.

tools:
bash / pwsh
str_replace_editor

第一次持久化工具調用後,應恢復原始 Standard prompt、runtime contexts、完整工具目錄、Skill Catalog、skill loader 與 AGENTS.md 注入。

測試與打包檢查

測試不會調用任何 LLM / API,不消耗 DeepSeek Token。

運行檢查:

npm run check

檢查打包內容:

npm run pack:check

適用場景與注意

適合在 DSH Web profile 中使用 DeepSeek V4 頂層 Standard 會話,並希望首輪 surface 保持窄、後續恢復完整能力的場景。

使用前注意:

1、插件以當前 DSH 進程權限運行;安裝前應檢查源碼、依賴與許可證。

2、僅適用於 DeepSeek Harness 0.1.0-rc.7、官方 standard preset、頂層會話和 DeepSeek V4 模型。

3、v0.1.0 要求在首請求前完成模型選擇;bootstrap 尚未 promotion 時動態切換模型不承諾保持同樣語義。

4、promotion transition reminder 屬於實驗性修復,尚未獨立 benchmark。

5、項目是時效性行爲補丁,不適合作爲長期 Router 框架。

鏈接

GitHub 倉庫:

https://github.com/Starfie1d1272/dsh-v4-anchor

目錄頁鏈接未提供可確認的 URL,這裏不給出未驗證鏈接。

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

小夜