DeepSeek Harness 插件

dsh-plugin-diraud

装在 DSH 里的插件目录:按来源(官方/自装)分组展示已安装插件,可搜索,支持启用/停用、卸载和一键更新。已发布 npm 包 dsh-plugin-diraud。

跳到安装方式

来源信息

GitHub 仓库
tttwh/dsh-plugin-diraud
最近更新
2026年8月20日
分类
插件市场与管理
GitHub stars
0

安装

默认先复制一段 Prompt,让 Agent 读页面和仓库;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读页面和仓库。

请先不要安装。阅读这个 DeepSeek Harness 插件,说明它解决什么问题、会访问哪些文件、网络或密钥,以及如何安装和卸载。

插件页面:https://deepseekplugins.org/zh/plugins/tttwh/dsh-plugin-diraud
GitHub:https://github.com/tttwh/dsh-plugin-diraud
插件名:dsh-plugin-diraud
作者:tttwh
安装命令:dsh plugin --profile web add github:tttwh/dsh-plugin-diraud

确认前不要执行安装命令。

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-plugin-diraud

English | [中文](README.zh.md)

A DeepSeek Harness (DSH) plugin-management enhancement: group the plugin list by source so you can tell official plugins apart from the ones you installed yourself at a glance.

Features

  • /plugin-audit command: lists the currently loaded plugins grouped by

official / self-installed, with user / official / keyword filtering;

  • Self-installed plugin toggles (two surfaces):

- Sidebar footer Plugin Catalog entry (icon button; click to open a panel): an enable/disable button on every self-installed card;

- Composer: /plugin-audit disable|enable <keyword>;

- Both persist to the profile's cordis.patch.yml (kept across restarts, reversible) and call ctx.loader.update for live effect (HMR-independent); official/builtin plugins are locked;

  • Plugin Catalog panel (sidebar footer entry): grouped cards with a source

badge, search box, installed version and description. When package metadata provides a GitHub repository, the card links directly to its full feature documentation (v0.8; independent of the built-in "Plugin list" page);

  • Self-installed plugin updates (v0.6): the panel's top "Update" section

checks the npm registry on open, shows the installed vs. latest version for every self-installed plugin, and runs pnpm update on click (corepack/npx fallback, live output). Desktop-managed link: dependencies and local links are labeled instead of being falsely reported as updated; official/builtin plugins and this plugin itself are locked;

Screenshot

Sidebar footer Plugin Catalog entry (since v0.5) — click to open the panel: self-installed plugins grouped by origin, each card with an enable/disable toggle:

![Plugin Catalog](docs/plugin-catalog.png)

Quick start

Prerequisites: pnpm, the dsh CLI.

# Install (recommended: from npm)
dsh plugin --profile web add dsh-plugin-diraud

# Or from the GitHub main branch
dsh plugin --profile web add https://github.com/tttwh/dsh-plugin-diraud/archive/refs/heads/main.tar.gz

Restart dsh web, then:

  • Type /plugin-audit in the composer, or
  • Click the Plugin Catalog entry at the sidebar footer.

Commands

CommandPurpose
/plugin-auditOverview: self-installed one-by-one + official count
/plugin-audit userSelf-installed only
/plugin-audit officialOfficial only (full list)
/plugin-audit <keyword>Filter by package / entry keyword
/plugin-audit disable <keyword>Disable a matching self-installed plugin (persisted)
/plugin-audit enable <keyword>Enable a matching self-installed plugin (persisted)
dsh plugin --profile web remove dsh-plugin-diraudUninstall

> How toggles persist: disable/enable writes a - id: <raw config id> + > disabled: true override into the profile's cordis.patch.yml (the user > config layer). dsh watches that file (watchUserPatches), so the change > applies live without a restart, survives restarts, and deleting the row > restores the default. > > Why the raw id (fixed in v0.4): loader entries carry a path-prefixed full > id (include:ssh), but the patch layer matches each config row's own id > field (ssh). Older versions wrote the prefixed id into the patch file, so > the row was skipped at boot ("patch: entry not found") and the toggle was > silently lost on restart. v0.4 writes the raw id, keeps the full id for > ctx.loader.update, and cleans up legacy include:<id> rows.

Configuration

Origin is derived from the package scope by default; edge cases (e.g. a third-party package published under @deepseek-ai/) are overridden via extraUserPackages. Override this plugin's row in the profile's cordis.patch.yml:

- id: plugin-audit
  config:
    extraUserPackages:
      - '@deepseek-ai/dsh-my-fork'   # force-classify as self-installed

Repository layout

dsh-plugin-diraud/
  src/classify.ts        origin-classification pure function (single source of truth)
  src/patch.ts           cordis.patch.yml read/write (persist toggles)
  src/toggle.ts          shared toggle core (persist + ctx.loader.update)
  src/contract.ts        typert wire contract (pluginAudit/toggle)
  src/typert.ts          host manifest registration
  src/runtime.ts         PluginAuditRuntime (@Remote toggle; executeToggle unit-tested)
  src/index.ts           host: /plugin-audit command + remote registration
  src/client/            Sidebar Plugin Catalog entry (React) + toggle buttons + client remote
  build.mjs              esbuild build (host ESM + client bundle)
  cordis.patch.yml       profile bundle patch (inserts this plugin)
  demo/                  demo & verification scripts (real-profile output)

Docs

  • [DESIGN.md](DESIGN.md) — design rationale and source evidence (why a new tab

instead of modifying the official one; classification rules and edge cases)

Related

License

[MIT](LICENSE) · Copyright (c) 2025 tttwh