huchunlinnk/deepseek-desk-rsi

用于DeepSeek Harness的递归自我改进引擎 — DSH维护DSH:受限的感知→整合→验证→对等→修复→提议循环,强制执行1:1的上游特性对等

Project Overview项目介绍

This is a native DeepSeek Harness (DSH) plugin that automates upstream sync for downstream DSH-based applications. The core idea is “AI maintains AI”: DSH itself handles every step of the sync workflow except for the final manual merge of the pull request. It addresses a common pain point for developers building on top of DSH, which is currently in a 0.1.x-rc pre-release stage with frequent breaking changes. Instead of requiring developers to manually track and update their integrations every few days, it turns this work into a hands-off automated loop.

The sync workflow follows a strict fixed pipeline: perceive upstream changes, apply the changes to the integration glue, run build and test verification, check the plugin parity contract, perform bounded repair if any check fails, then propose a pull request for manual review. It includes six purpose-built tools to enforce the workflow, and a system prompt segment that prevents the agent from skipping any required step. All changes are checkpointed before integration, allowing the agent to roll back changes if verification or parity checks fail.

The plugin can be installed directly via the DSH CLI command dsh plugin add github:huchunlinnk/deepseek-desk-rsi#main with no extra build steps required. It is written in pure ESM JavaScript with no build scripts, and requires DSH-provided peer dependencies @deepseek-ai/dsh-tools and @deepseek-ai/cordis to work. You will also need a working installation of GitHub CLI to allow the plugin to open pull requests after a successful sync. It ships with a starting headless profile that you can copy to your DSH profile directory to get up and running quickly.

这是一个专为 DeepSeek Harness (DSH) 开发的原生插件,核心功能是让 DSH 自动同步下游基于 DSH 开发的应用与上游 DSH 的变更,实现了「AI 维护 AI」的全自动化流程,除了最终合并 PR 需要人工操作外,其余所有步骤都由 DSH 自主完成。它解决了预发布版本 DSH 频繁发布破坏性变更导致下游集成快速过时的问题,把手动追更的工作转成自动化闭环。

它定义了一套固定的同步环路:感知上游变更、集成变更、验证构建、校验插件对等契约、有界修复出错、最后提出 PR。它内置了多个专用工具,比如 rsi_perceive 对比差异、rsi_checkpoint/rsi_rollback 做检查点回滚、rsi_parity 校验插件匹配,严格遵循环路纪律,不会跳过步骤。它要求上游所有插件都必须精确匹配名称,不匹配就直接报错,保证同步的准确性。

插件遵循零构建即装原则,纯 ESM 编写,没有额外的构建脚本,直接通过 DSH 的插件命令就能安装使用。它是 MIT 许可开源,依赖 DSH 提供的 peer 依赖 @deepseek-ai/dsh-tools 和 @deepseek-ai/cordis,需要提前配置好 GitHub CLI 来创建 PR。用户可以使用内置的无头起始配置文件快速搭建同步环境。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
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 rsi add github:huchunlinnk/deepseek-desk-rsi#main

把 huchunlinnk/deepseek-desk-rsi 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

deepseek-desk-rsi

English | 中文

License: MIT

一个 DeepSeek Harness(DSH)插件,让下游应用与高速演进的上游 harness 保持同步——工人就是 DSH 自己。

AI for AI:DSH 维护 DSH。

为什么做这个

DeepSeek Harness 目前是 0.1.x-rc,频繁出破坏性变更。一个锁死版本的桌面壳(或任何下游应用)几天就会腐坏。手工追上游是一份全职工作。这个 bundle 把这份工作交给 agent——并且给它硬的、可自动化的成功信号,让这个环不会跑偏。

为什么 —— 最大的优势

  1. 真正的 AI for AI。 工人就是 DeepSeek Harness 自己:它对比上游 diff、改集成胶水、构建、测试、回滚、开 PR——除了最后 merge 那一下,全程无人。
  2. "一模一样"是机器校验的,不是口头承诺。 rsi_parity 强制一个 128 插件契约(parity.json,从官方 dsh-base + dsh-web-app 两个 bundle 生成)。上游任何增删改名都会变成硬失败——精确名字匹配,不是子串。
  3. 不会失控的进化。 有界修复(最多 3 轮)、Memento 检查点(rsi_checkpoint / rsi_rollback)、PR 闸门——环只提议,人来 merge。
  4. 零构建即装。 纯 ESM + JSDoc,无 prepare 脚本:dsh plugin add github:huchunlinnk/deepseek-desk-rsi#main 直接可用。

环路

perceive  →  integrate  →  verify  →  parity  →  repair(有界)→  propose
阶段 谁 怎么做
perceive 工具 rsi_perceive fetch 上游,对比上次同步以来的 commit log + stat
integrate agent(现有工具) 用 bash / edit / subagent / workflow 把相关 harness 变更应用进应用的胶水
verify 工具 rsi_verify 硬适应度函数:cargo build && cargo test && bash scripts/smoke-web.sh,退出码 0 才算过
parity 工具 rsi_parity 同面门:parity.json 里的每个必需插件都还在
repair agent + rsi_checkpoint / rsi_rollback 改动前先 checkpoint(Memento),verify/parity 失败后回滚重试
propose 工具 rsi_propose commit、推分支、用 gh 开 PR——人审闸门

环路纪律由一个 bundle 注入的 system-prompt 段(rsi:loop)强制执行,agent 无法偷偷跳过某个阶段。

工具

工具 作用 设计模式
rsi_perceive 对比上游相对某个 base ref 的差异 —
rsi_checkpoint 提交一个带标签的快照 Memento(捕获)
rsi_rollback git reset --hard 回到某个检查点 Memento(恢复)
rsi_verify 跑构建/测试/服务冒烟适应度命令 —
rsi_parity 用 --dump-config 精确匹配校验 parity.json —
rsi_propose 用 gh 开 PR Command(人审闸门)

五个阶段是一条 Pipeline;整个环是有界递归(最多 3 轮修复)。

安装

dsh plugin --profile rsi add github:huchunlinnk/deepseek-desk-rsi#main
dsh --profile rsi "Run the daily upstream sync: perceive, integrate, verify, parity, repair if needed, then propose a PR."

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-crosstalk 下一个 Next dsh-model-info-fill →