rinDBeans/dsh-miraculous-standard 预览 preview

rinDBeans/dsh-miraculous-standard

DeepSeek V4 Pro/Flash 统一锚定代理预设,适用于 DeepSeek Harness(官方 API 与 opencode-go):两阶段强化学习对齐引导、模型感知路径路由、周期感知长会话稳定性。

Project Overview项目介绍

This is an experimental agent-plane preset built specifically for DeepSeek Harness (DSH) version 0.1.0-rc.7 and above. It supports both DeepSeek V4 Pro and V4 Flash models, and works with both official DeepSeek API keys and opencode-go subscription credentials. Its core design separates the initial request anchoring phase from the full tool capability phase, allowing it to stabilize the RL-aligned trajectory for Pro and high-quality planning persona for Flash, without sacrificing any of the complete Standard tool capabilities. It also includes epoch-aware handling for long sessions to prevent trajectory drift after compaction, subagent calls, or session resume. It fixes several engineering issues specific to Windows systems.

The typical workflow starts with a bootstrap phase for the first user request, where only two core tools bash and str_replace_editor are exposed, and a context-gate blocks all unknown third-party injections to keep the initial trajectory clean. After a promotion trigger is detected (a durable tool call or assistant message), the preset moves to the resident phase, where it unlocks additional tools based on the current model. For Pro models, it keeps a small set of resident tools and unlocks heavy tools on demand, while Flash models get the full Standard tool catalog by default after promotion.

You can install the preset by either cloning the repository and manually moving the preset folder to your DSH presets directory, or running the DSH bundle command dsh plugin --profile web add github:rinDBeans/dsh-miraculous-standard for a one-click installation. After installation, you need to fully restart DSH and select the preset from the preset menu in a new session. The project is released under the MIT license, has zero third-party runtime dependencies, and does not send any network requests or collect user telemetry. As a community experimental project, it has some known limitations around capability generalization and edge cases on Windows.

Miraculous Standard 是专为 DeepSeek Harness(DSH)打造的实验性 agent-plane 预设,适配 DSH rc.7 及以上版本,同时支持 DeepSeek V4 Pro 和 V4 Flash 两款模型,可对接 DeepSeek 官方 API 与 opencode-go 订阅接口。它将首请求锚定阶段和完整工具能力阶段分离,可在不损失 Standard 完整工具能力的前提下,稳定模型的对齐轨迹。

它支持双模型双渠道统一适配,首请求采用字节级 Minimal 锚定,仅暴露基础工具并保持原生系统提示,搭配模型感知的晋升后工具目录、统一 context-gate 拦截未知注入。典型工作流从 bootstrap 锚定阶段开始,收到晋升信号后进入常驻工具阶段,针对 Pro 和 Flash 模型分别开放不同规模的工具目录,适配不同模型特性。

安装方式支持克隆仓库手动放置,也可通过 DSH bundle 命令一键安装,安装后需重启 DSH 并在新会话中选择该预设。项目采用 MIT 许可证,无第三方运行时依赖,不发起网络请求或采集遥测。作为社区实验项目,它不代表官方立场,部分功能仍存在已知限制,需用户根据实际使用场景调整配置。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 12 stars - an early-stage project星标 12,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:rinDBeans/dsh-miraculous-standard

把 rinDBeans/dsh-miraculous-standard 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

Miraculous Standard

DeepSeek V4 系列(Pro / Flash)统一锚定 agent 预设,同时适配 DeepSeek 官方 API 与 opencode-go 订阅接口,兼容 dsh rc.7。

Miraculous Standard 是面向 DeepSeek Harness(dsh)的 agent-plane 预设。它把“首请求精确锚定”与“完整 Standard 工具能力”分离:先让 V4 Pro 稳定进入训练对齐(RL-aligned)轨迹,让 V4 Flash 稳定进入高规划质量 persona;晋升后再按模型开放对应工具目录,从而不牺牲 Standard 的完整能力。

本预设为社区实验项目,与 DeepSeek 官方无关,未获任何官方背书。文中所引实测结论均来自公开仓库的个人测量,不构成跨任务普适性承诺。


独特性

  1. 双模型、双渠道统一
    同一预设覆盖 DeepSeek V4 Pro / Flash × 官方 API / opencode-go 四种组合。路径选择只看路由模型 id(/flash/i),不看 provider,避免渠道差异造成行为漂移。

  2. 首请求字节级 Minimal 锚定
    首个请求仅暴露官方 Minimal 的真实工具对:bash + str_replace_editor,系统提示保持 Minimal 原文,并剥离所有自动注入。这是社区多轮实验验证的“V4 Pro 轨迹锚定”最稳定条件。

  3. 模型感知晋升目录

    • Pro:晋升后保持最小常驻集(默认 5 件套),重型工具经 dev_tool_search 按需解锁,避免“全目录倾倒”把轨迹拉回 standard-like。
    • Flash:persona 主导、目录免疫,晋升后默认开放完整 Standard 目录,保留全部能力。
  4. 统一 context-gate(默认拒绝未知注入)
    不只屏蔽 skill-catalog / agent-instructions 两个已知来源,而是采用 claimed-baseline 门:未晋升时只保留用户消息与用户技能手势,任何第三方插件/hook/runtime context 都不能污染首请求。

  5. 非命令式 instruction-hint
    晋升后的 AGENTS.md 提示改为“参考文档、按需查阅”的中性措辞。社区实测表明命令式“read first and follow them”会把锚定轨迹打回 let me;中性措辞既能保住轨迹,又不丢失环境文档可用性。

  6. epoch 感知长会话稳定性

    • compaction 后自动回退受控阶段;
    • dev_tool_search 解锁集合按 epoch 重置,防止长对话目录单调膨胀;
    • instruction-hint / discipline hint 按 epoch 重发;
    • 进程重启后通过 durable 日志扫描去重,避免重复注入。
  7. rc7 就绪

    • 同步官方 rc7 的 subagent 配置(backgroundMode: one-shot);
    • 受益于官方持久 Bash 延迟修复(Linux/macOS 每次调用从秒级降到百毫秒级);
    • 受益于 max-token replay 修复,bootstrapMaxTokens 这类预算实验更安全。
  8. Windows 工程化
    custom-bash 自动探测 Git for Windows 安装位置,并把 Git Bash 路径 /e/foo 归一化为 E:\foo;显式 workdir 不可用时回退会话 cwd 并给出提示。

  9. 零依赖、零额外调用、零合成消息
    无 warmup 轮、无 replay、无第三方运行时依赖;所有插件均为 Node.js ESM .mjs,不发起网络请求,不采集遥测。


主要作用

一句话:在不放弃 Standard 完整工具面的前提下,把 DeepSeek V4 Pro / Flash 的“启动环境”稳定到 RL 对齐状态,并用 epoch 管理防止长会话轨迹漂移。

  • 对 Pro:解决“标准模式下工具面过大导致 Let me 轨迹、能力打折”的问题;
  • 对 Flash:解决“默认无引导时思考浅、草草动手”的问题,同时保留全目录能力;
  • 对长会话:解决 compaction、subagent、resume 后“二次首请求”失锚的问题;
  • 对 Windows:解决 PTY 缺失、Git Bash 路径不兼容、每次 bash 新进程的工程问题。

安装

环境要求

  • DeepSeek Harness(dsh)0.1.0-rc.7(rc.5 / rc.6 亦可运行,但推荐 rc.7);
  • Windows 需安装 Git for Windows;
  • 以下渠道之一:DeepSeek 官方 API key,或 opencode-go 订阅。

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-plugin-scaffold 下一个 Next dsh-acp-paseo →