Introduction¶
In the DeepSeek Harness (DSH) plugin ecosystem, downstream applications often need to keep up with the rapidly evolving upstream harness: updating integration glue, running builds and tests, confirming that plugin contracts remain aligned, and finally submitting changes for manual review.
huchunlinnk/deepseek-desk-rsi is a DSH plugin designed to keep downstream applications in sync with the upstream DSH. Its approach is “AI for AI: DSH maintains DSH,” meaning it uses DSH itself to execute the upstream synchronization process and presents the results as a PR for human review.
What is it¶
huchunlinnk/deepseek-desk-rsi is maintained by huchunlinnk and is licensed under the MIT license. It registers 6 tools and injects an rsi:loop system-prompt segment to constrain the behavior of the synchronization loop.
It reuses peer dependencies provided by DSH:
@deepseek-ai/dsh-tools
@deepseek-ai/cordis
It is installed via zero-build: pure ESM + JSDoc, without a prepare script.
The Core Loop¶
The synchronization loop it provides is introduced below:
perceive → integrate → verify → parity → repair → propose
The correspondence of each stage is as follows:
-
perceive
Compares upstream differences relative to a base ref viarsi_perceive. -
integrate
Applies upstream changes to the downstream application’s integration code. -
verify
Executes hard fitness checks viarsi_verify:
cargo build && cargo test && bash scripts/smoke-web.sh
An exit code of 0 is considered a pass.
-
parity
Validates 128 plugin contracts usingrsi_parityandparity.json, requiring exact name matching. -
repair
Provides Memento checkpoints and rollbacks viarsi_checkpointandrsi_rollback. Repairs are bounded, with a maximum of 3 rounds. -
propose
Opens a PR usingghviarsi_proposeas the human review gate.
Peer Contracts¶
parity.json is generated from the official dsh-base + dsh-web-app bundles and contains 128 plugins. If required plugin names are missing after synchronization, rsi_parity will fail.
After plugins are added, removed, or renamed upstream, you can regenerate contracts from the official harness path:
node scripts/gen-parity.mjs /path/to/deepseek-harness
Installation and Enablement¶
The installation command is as follows:
dsh plugin --profile rsi add github:huchunlinnk/deepseek-desk-rsi#main
Next, you need to enable the corresponding profile. Copy the profile/ directory into:
$DSH_HOME/profiles/rsi
and point it to your repository.
After completing the above steps, you can run the daily sync:
dsh --profile rsi "Run the daily upstream sync: perceive, integrate, verify, parity, repair if needed, then propose a PR."
Testing¶
After installing or modifying, you can run:
npm test
Use Cases and Precautions¶
Suitable for scenarios:
- Maintaining downstream applications that depend on DSH.
- The upstream DSH is evolving rapidly and requires continuous alignment.
- Wanting DSH to handle perception, integration, verification, alignment, and repair, ultimately generating only a PR.
- Wanting to retain a human merge gate.
Precautions before use:
- A running loop is equivalent to a local user with shell permissions.
- Keys should never enter the source code.
- The PR is the gate.
- Pin upstream to a trusted commit.
- The loop proposes; humans merge.
- Repairs are bounded, with a maximum of 3 rounds.
- Check source code and license before installing. This plugin is MIT licensed.
Resource Links¶
- GitHub Repository: https://github.com/huchunlinnk/deepseek-desk-rsi
- Plugin Directory Page: https://www.skillhub.cn/plugins/huchunlinnk/deepseek-desk-rsi (This URL is provided based on plugin clues; this article does not expand on its content)