DeepSHPlugins
dsh-minimal-first-turn 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-minimal-first-turn

會話與訊息JavaScript

Web 根會話的首輪精簡:先使用持久 bash 與 str_replace_editor,移除自動工作區和技能上下文;首次工具呼叫或回覆後恢復所選預設,帶持久 composer 開關。

2 StarsZRui-C 更新時間 2026-08-16
訪問 GitHub 倉庫
dsh-minimal-first-turn 專案預覽

專案介紹

中文

Web 根會話的首輪精簡:先使用持久 bash 與 str_replace_editor,移除自動工作區和技能上下文;首次工具呼叫或回覆後恢復所選預設,帶持久 composer 開關。

English

Minimal-compatible first turn for Web root sessions: starts with persistent bash and str_replace_editor, removes automatic workspace and skill context, then restores the selected preset after the first tool call or reply; includes a persistent composer toggle.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
ZRui-C
倉庫
ZRui-C/dsh-minimal-first-turn
GitHub Stars
2
Forks
0
開發語言
JavaScript
許可證
未記錄
最近推送
2026-08-16
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

55/ 100
維護活躍
82
文件與實用資訊
85
生態關注度
14
安裝便捷訊號
100
專案宣告訊號
80

README 含完整安裝與使用說明;關注度尚低(2);標準命令一鍵安裝。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin --profile web add dsh-minimal-first-turn

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

DSH Minimal First Turn

中文 | Installation

dsh-minimal-first-turn is a DeepSeek Harness Web plugin that makes an enabled root session's first model request smaller and closer to the official Minimal preset, without permanently giving up the selected agent preset.

It is inspired by the first-request conditioning work in xiaobright/dsh-anchored-standard. This project is independent, experimental, and not affiliated with DeepSeek.

What It Does

While First-turn minimal is enabled:

  1. A new root session's first request uses the Minimal system prompt.
  2. The model sees only the official Minimal tool pair: persistent bash and

str_replace_editor.

  1. Automatic workspace-instruction and skill-catalog messages are removed from

that request.

  1. The first durable tool/call or assistant/message restores the selected

preset's original prompt and complete tool catalog.

  1. After compaction/end, the next request enters the same controlled phase.

The composer contains a persistent 首轮精简 switch. It is global to the current DSH home, not per-session. Disabling it removes this plugin's agent-scoped Minimal tools and stops all filtering for future requests.

Installation

This package targets DSH Web with @deepseek-ai/* 0.1.0-rc.6 packages. A persistent Bash PTY is required, so the current release supports macOS and Linux hosts; Windows is not supported yet.

dsh plugin --profile web add dsh-minimal-first-turn

Restart the existing dsh web process, then open a conversation. The 首轮精简 switch appears beside the composer controls.

The toggle state is stored at:

$DSH_HOME/plugins/dsh-minimal-first-turn.json

When DSH_HOME is unset, the path is ~/.dsh/plugins/dsh-minimal-first-turn.json.

Development

pnpm install
pnpm check
npm pack --dry-run

For a local Web profile, add the package as a dependency and mount its cordis.patch.yml, then restart dsh web. Host changes require a restart; client-only changes require a page reload when the Web HMR watcher is not running.

Compatibility and Caveats

  • The plugin changes model-visible first-request conditions. It does not

guarantee a particular reasoning phrase or outcome.

  • Its behavior is intentionally limited to root sessions; subagents keep their

original catalog.

  • The first-turn effect is derived from durable session events, so resume and

compaction preserve the phase correctly.

  • DeepSeek Harness is a developer preview. Pin the supported DSH package

versions when using this in production.

License

MIT. The implementation includes derivative work from the MIT-licensed dsh-anchored-standard project and DeepSeek Harness packages; the required attribution is included in LICENSE.

中文说明

这是一个 DSH Web 插件。开启“首轮精简”后,新根会话的第一轮模型请求会使用 Minimal system prompt、持久 bash 与 str_replace_editor,并移除自动注入的 工作区说明和技能目录。首次 tool/call 或 assistant/message 后,当前预设的 完整 prompt 与工具目录恢复;发生上下文压缩后,下一轮会再次进入首轮精简阶段。

它不保证模型输出固定的推理措辞,只控制模型可见的首轮条件。开关是全局持久设置, 而不是单个会话设置。

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案