Skip to main content

dsh-anchored-standard

22Stars2Forks2Issues0Watchers

Two-phase DeepSeek Harness preset: Minimal-aligned bootstrap (bash+read), then full Standard tools after the first tool call or reply

Evidence5/5methodologySourceInstallMaintenanceDSH versionSecurity scan
Machine-auditedInstall commandRepo verifieddsh-plugin topicLicenseREADMEAI wiki
Language
JavaScript
License
MIT
Branch
main
agent-presetdeepseek-harnessdsh-plugin

Install

cmdweb profile
$ dsh plugin --profile web add github:Jungod1121/dsh-anchored-standard

Run the command above in your terminal to install this plugin via the dsh CLI. You can switch Profile in the top-right corner. New to dsh? Read the beginner tutorial

Install via your agent

Install the DeepSeek Harness plugin Jungod1121/dsh-anchored-standard for me: review the repository at https://github.com/Jungod1121/dsh-anchored-standard first, then run the install command and verify the plugin loads successfully.

Paste this instruction to the DSH Web GUI assistant — it will install and verify for you.

一句话定位

这是一个面向 DeepSeek Harness 的「两阶段 agent 预设」:首条用户消息决定用极简工具开局,等模型做出第一个有效工具调用后,自动恢复完整的 Standard 工具目录。

核心能力

  • 按首条消息关键字分类任务(修复类→spec,构建类→react,模糊→weak)
  • 首轮只暴露任务匹配的最小工具集(最多 3 个),对齐 V4 Pro 的 Minimal 风格推理轨迹
  • 首个持久化工具调用触发晋升,会话内所有后续请求恢复全部 25 个 Standard 工具
  • 会话模式与晋升状态从持久化事件派生,刷新页面或恢复会话不会回退
  • 模糊任务下根据模型版本(Pro/Flash)自动选用不同的中性引导文案
  • 本地手工修改的预设文件不会被 bundle 升级覆盖(仅首次安装写入,差异件告警保留)

技术实现

  • 语言: JavaScript(ESM,Node 内置模块)
  • 关键依赖: 无第三方依赖;仅使用 node:fs / node:os / node:path / node:url
  • 架构模式: Cordis bundle patch 注入 + agent preset;安装器用 apply(ctx) 把 preset 目录幂等复制到 $DSH_HOME/.agent-presets/anchored-standard/,宿主再从该目录加载 tool-bootstrap.mjs 作为 prompt-assembly 过滤器
  • 入口文件: index.js(安装器) + preset/agent.cordis.yml(preset 定义) + preset/tool-bootstrap.mjs(两阶段分类与晋升逻辑)

适用场景

用户在 DeepSeek Harness 上做相对复杂的多回合开发会话时,会希望模型在第一步就走对推理策略——但官方 Standard 预设一次性塞 25 个工具,会让 V4 Pro 倾向于保守。本插件适合需要「首轮要稳、后续要全」的开发场景,尤其是中长会话的修复/重构/从零搭建类任务。

前置依赖与兼容性

依赖最低版本说明
DeepSeek Harness0.1.0-rc.6README 与源码注释均标注此版本;harness 处于 developer preview,升级前需核对上游
Node.js未声明插件未在 package.json 声明 engines 字段
平台跨平台preset 自动启用 bash(macOS/Linux)或 pwsh(Windows)作为任务 shell
原生模块无仅使用 Node 内置模块
模型DeepSeek V4 Pro + reasoningEffort: max针对 Pro 设计;Flash 不需要此预设

安装方式

dsh plugin --profile web add github:Jungod1121/dsh-anchored-standard

安装完成后重启 Harness,新建空白会话时可在预设列表中选择「锚定标准模式」;如需设为新会话默认,可在 $DSH_HOME/settings.yaml 中将 agent-presets.default 设为 anchored-standard。

配置项

配置类型说明默认值
agent-presets.defaultsettings 项设为 anchored-standard 可让新建会话默认使用本预设未设置(用户在 UI 中手动选)
DSH_HOME环境变量预设安装目录由此变量决定;未设置时使用 ~/.dsh~/.dsh

bundle 安装器不接收运行时配置参数;preset 内置的子工具(如 bash、read、edit、write)行为由宿主预设决定,无需在本插件中配置。

常见问题

Q: 这个插件和官方 Standard 预设有什么区别?

A: 表面能力相同——完整 25 工具目录都会在首个工具调用后恢复。区别在于首轮:Standard 一次性把全部工具推给模型,本预设只暴露 2-3 个任务匹配的工具,先把推理轨迹锚定在 Minimal 风格的开局上。

Q: 我怎么知道「锚定」是否真的生效了?

A: 导出会话 JSONL,检查 request/header 事件——第一个 header 里只会出现 bash/read(spec 任务多一个 edit,react 任务多一个 write),从第二个 header 起就是完整的 25 工具目录。

Q: 卸载时会自动删除预设目录吗?

A: 不会。卸载 bundle 不会触碰 $DSH_HOME/.agent-presets/anchored-standard/,如需彻底清理需手动 rm -rf。

Q: 我修改了本地 preset 文件,会被覆盖吗?

A: 不会。安装器只在目标文件不存在时写入;内容完全一致时跳过;内容不同时保留本地版本并打印一条警告。

Q: 模糊不清的任务怎么锚定?

A: 关键词分类器返回 weak 模式后由模型自己分类:Pro 模型拿到中性 prompt 加一句分类指令;Flash 模型额外加一条「不重复已完成步骤、禁止环境检查」的引导。

Q: 这个预设适合 V4 Flash 模型吗?

A: README 明确说明 Flash 不需要——它在跨 harness 泛化时更稳定(风格变化、分数不变)。本预设专门针对 Pro + reasoningEffort: max 设计。

Q: 会话被刷新或恢复,锚定状态会丢失吗?

A: 不会。模式和晋升状态都从持久化的会话事件派生,刷新和恢复都安全。

上手难度

入门 — 安装一条命令即生效,重启后在会话预设里选中即可;除可选的 settings.yaml 默认值外无任何额外配置。

已知问题与限制

  • 能力评测数据来自 xiaobright/modeltest 的 Project2 V4.1b 题面,n=2 单次冻结题面,不是跨模型或跨任务的通用保证。
  • harness 处于 developer preview,本预设基于 0.1.0-rc.6 验证;harness 升级后若 prompt assembly 接口或事件名变化,预设可能失效,需先核对上游改动。
  • 本地手工编辑的 preset 文件升级时不会被覆盖,可能导致预设与新版本错位——需自行同步。
  • 模糊任务(weak)下的最终策略取决于模型自身的分类判断,存在分类错误风险。
  • 设计目标只覆盖 DeepSeek V4 Pro,对 Flash / 其他第三方模型没有针对性调优。

Read the usage guide →

Install steps, key points, FAQ and compatibility for this plugin — auto-derived from indexed fields.

Listing badge

Listed on deepseek-plugin.org
[![Listed on deepseek-plugin.org](https://img.shields.io/badge/listed_on-deepseek--plugin.org-007EC6)](https://deepseek-plugin.org/plugins/Jungod1121/dsh-anchored-standard)

Paste this markdown into your GitHub README to link back to this listing. The badge only states the listing — not a security endorsement.

← Back to plugin directory