Synchronizes DeepSeek Harness third-party plugin lists through S3-compatible storage with diff preview, local snapshots, rollback, and optional LLM provider configuration sync.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:smellgamed3/dsh-plugin-list-sync
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
中文文档 · Architecture(架构) · Operations(部署与排错) · Contributing(贡献指南) · Changelog
Synchronize the plugin-list configuration of DeepSeek Harness (DSH) clients through any S3-compatible object store — AWS S3, MinIO, RustFS, Cloudflare R2, Aliyun OSS (S3 gateway), etc.
DSH 插件列表多端同步:把当前客户端的插件清单上传到任意 S3 兼容存储,在其他客户端下载并应用,实现多端插件配置一致。
What gets synced
The plugin-list configuration is exactly two files in a DSH profile:
| File | Carries |
|---|---|
package.json |
third-party dependency versions + dsh.profile.bundles enable order |
cordis.patch.yml |
the user patch layer — disabled rows, plugin config overrides |
Both directions are MERGE-only by default. Uploading never deletes remote-only plugins; downloading never removes a locally installed plugin and never downgrades a locally higher version (per-package the HIGHER side wins; an older remote revision is reported as kept-local, never applied).
Force overwrite exists as an explicit, one-shot, never-persisted opt-in — see Force overwrite under Use.
- Official
@deepseek-ai/*bundles are never synced: they track each client's own DSH runtime, and syncing them would re-create the peer-dependency breakages the DSH plugin gate exists to prevent. - LLM provider config is excluded by default (the
config:blocks of rows likellm-pi-ai/agent-default-modelcarry baseURLs and model catalogs). EnableincludePatchConfigif you want it synced; when disabled, those rows keep only their structural keys (id/name/disabled). dsh-plugin-list-syncitself is skipped (self-bootstrap): it must be installed on each client manually — once.
Install
dsh plugin add smellgamed3/dsh-plugin-list-sync
or from a checkout:
dsh plugin add file:C:/path/to/dsh-plugin-list-sync
Configure
Open Settings → Plugin Sync in the DSH web UI and fill in:
- S3 endpoint — e.g.
https://s3.amazonaws.com,http://127.0.0.1:9000(MinIO/RustFS) - Region — real region on AWS;
auto(maps tous-east-1) works for MinIO/RustFS - Bucket + optional key prefix
- Path-style addressing — on by default (MinIO/RustFS need it); turn off for virtual-host-style endpoints
- Allow plain HTTP — opt-in only for local/test endpoints
- Request SSE-S3 AES256 encryption — off by default; enable only when the S3 backend has SSE-S3/KMS configured (keep it off for RustFS without
RUSTFS_SSE_S3_MASTER_KEY) - Sync LLM provider config — off by default; carries the full patch layer including private gateways and model catalogs
- Machine label — recorded in the manifest's
source.labelfor audit, e.g.office-desktop
Credentials are never written to config files and never included in the sync manifest. Provide them either via:
- the settings page — AccessKey / SecretKey fields with Save/Clear buttons; stored locally in
<profile>/.dsh-plugin-list-sync/credentials.json(priority over env vars), or - environment variables
DSH_PLUGIN_SYNC_S3_KEY/DSH_PLUGIN_SYNC_S3_SECRET(used when no saved pair exists).
Use
Settings page buttons: Preview diff (dry-run against the remote manifest), Upload current list, Download && apply, Rollback (restores the latest snapshot; every apply snapshots both files first). Every operation is a merge by default; see below for the force overwrite switches.
Force overwrite (dangerous, opt-in per operation)
A red-bordered Force overwrite block at the bottom of the settings page holds two independent switches. They are explicit one-shot operations:
| Switch | Effect | Cost |
|---|---|---|
| Force overwrite remote | Upload replaces the remote manifest with this machine's state | Remote-only plugins are removed from the manifest — affects every client syncing that store |
| Force overwrite local | Apply mirrors the remote manifest locally | Local-only third-party plugins are uninstalled; shared versions may drop |
Safety constraints:
- Never persisted: the ticks live only in component state (not in localStorage, not in
settings.json, not anywhere); they apply to the next operation only and reset automatically after it, successful or not. - Double confirmation (force local): you must first re-preview with the tick ON to see the replace plan (applying without it is rejected server-side with
confirm-required), then pass a confirmation dialog that spells out the exact removals/downgrades. - Official components are never sacrificed: even in replace mode,
@deepseek-ai/*official bundles, this plugin itself, and LLM providerconfig:blocks stay verbatim. - Snapshots still run first: a replace apply snapshots both files and can be rolled back.
- Command surface is limited:
upload --forcereplaces the remote anddiff --forcepreviews the replace plan, butpull --forceis refused — force-overwriting local must go through the settings page's confirmation flow.
Command surface (any DSH chat):
/plugin-sync status
/plugin-sync upload [--force]
/plugin-sync diff [--force]
/plugin-sync pull
/plugin-sync rollback [snapshot-id]
Semi-automatic sync
Both automation switches are off by default. After saving settings, the Host can debounce-upload local package.json / cordis.patch.yml changes and periodically check remote differences. It never downloads, installs, removes, or applies remote plugin configuration automatically; a user must still preview and explicitly apply any remote change. Automatic uploads use the same merge semantics as the manual button.
Non-secret automation settings live in <profile>/.dsh-plugin-list-sync/settings.json; credentials remain separate and never enter a manifest.
Safety model
- Merge-only by default — upload merges local INTO the remote manifest (remote-only plugins are preserved); apply merges remote INTO the local profile (local-only plugins survive, local versions never move backwards). Force-replace requires an explicit, per-operation, never-persisted opt-in with confirmation.
- Download-side strict validation — a remote manifest is applied only after schema whitelisting (format/version/revision, npm-style package names, bounded sizes). Anything outside the schema refuses to apply; a corrupt remote object also refuses to be overwritten by an upload (unless force is deliberately ticked).
- Snapshot-first apply —
package.json+cordis.patch.ymlare captured to.dsh-plugin-list-sync/snapshots/before any write; rollback is one command and itself snapshots first. - Revision monotonicity — uploads increment the remote revision; a pull never applies an older revision silently.
- Same-origin fence — every mutating route rejects cross-site requests (Origin/Host discipline).
- Optimistic locking — uploads carry
If-Matchwith the observed ETag where the server supports it. - Official components stay local —
@deepseek-ai/*bundles track each client's DSH runtime and are never synced across machines. - Minimal peer surface — the only peer dependency is
@deepseek-ai/cordis(ships with DSH). Everything else (commands,webServer,pluginManager,credentials,settings) is feature-detected at runtime; a host missing a service keeps that surface disabled instead of failing to load.
Manifest format
{
"format": "dsh-plugin-list-sync/manifest",
"version": 1,
"revision": 42,
"updatedAt": "2026-09-29T08:00:00.000Z",
"source": { "label": "office-desktop" },
"runtime": { "dshVersion": "0.2.0-rc.1" },
"packages": { "dsh-context": "0.59.0" },
"bundles": ["dsh-context"],
"patch": { "kind": "rows", "rows": [{ "id": "cost-meter", "disabled": true }] }
}
One JSON object per profile: s3://<bucket>/<prefix>/<profile-name>.json.
Development
pnpm run check # syntax checks + core regression suite
pnpm test # core regression suite
pnpm run test:s3-mock # terminal A: local SigV4-validating S3 mock
pnpm run test:e2e # terminal B: full S3 merge/force upload + apply/rollback flow
The e2e suite runs against an isolated throwaway profile (never your real one) and covers both merge and force semantics end to end.
Pure Node built-ins (node:https, node:crypto, node:fs, node:path); zero runtime dependencies; SigV4 implemented in ~200 lines (lib/s3.js).
License
MIT
Links
More in this category
loopx-project/loopx#dsh-loopx-plugin★ 6767
LoopX, a provider-neutral, local-first state kernel and control plane for long-horizon agents: keeps Goal, Todo, gate, evidence, quota, recovery, and handoff state above DeepSeek Harness, while the plugin bootstraps the CLI and skills, admits bounded same-session continuation, and adds a loopback GoalBar for the exact bound loop. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Q00/ouroboros#integrations/dsh-plugin★ 6388
Config-only bundle that mounts Ouroboros through the DSH MCP client, exposing 36 interview, Seed, execution, evaluation, and evolution workflow tools in DSH.
chuspeeism/dashi-taskboard#deepseek-harness★ 3538
Embeds the active installed Codex Taskboard runtime in the DeepSeek Harness sidebar, using its launcher runtime descriptor instead of a fixed port.
NanmiCoder/dsh-agent-teams★ 3111
AgentTeams multi-agent teams.
EthanYoQ/AI-Novel-Writer#dsh-ai-novel-writer★ 2931
Installs a dedicated AI novel-writing preset and workbench: revisioned local project assets, a compact side drawer, and native approval-gated single-file changes.
shanliuling/dsh-image-gen★ 1777
Native conversational image generation for DeepSeek Harness: ask the agent to create an image, and it handles generation and keeps the result directly in the conversation.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.