deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
简体中文 | English

面向中文用户的 DeepSeek Harness 插件目录与管理器:用大白话重新分类社区插件,并放到 Web UI 左侧栏底部。点击“插件菜单”即可搜索、筛选、比较公开指标、安装、卸载和管理当前 profile 的全部树外插件。
npm 安装包 | GitHub Releases | 问题反馈
传统插件市场常用“UI、Developer Tools、Runtime、Information Retrieval”一类术语。这个插件改用第一次接触 DSH 也能看懂的分类:
分类是透明、可测试的关键词规则,输入来自插件名称、中英文介绍、GitHub topics 和社区清单原分类。每个插件只进入一个最容易理解的类别;规则位于 src/catalog.ts。
sidebar.footer.action,不替换官方侧边栏。awesome-dsh-plugin 的可安装清单;当前离线快照含 824 条。pushed_at)、License、归档状态、Fork 和 Issue 数据。dsh plugin --profile web add/remove,不经过 agent 沙箱。插件已经发布到 npm,推荐使用官方 CLI 包直接安装:
npx -y @deepseek-ai/dsh plugin --profile web add dsh-plain-plugin-menu
npx -y @deepseek-ai/dsh web
也可以安装已经构建好的 tarball,不需要授权安装期构建脚本:
npx -y @deepseek-ai/dsh plugin --profile web add /absolute/path/to/dsh-plain-plugin-menu-0.1.1.tgz
npx -y @deepseek-ai/dsh web
从源码 checkout 安装:
npm install
npm run check
npx -y @deepseek-ai/dsh plugin --profile web add .
npx -y @deepseek-ai/dsh web
从 Git 仓库直接安装时,pnpm 10+ 会默认阻止依赖的 prepare 脚本。只有在审查源码后,才应按 pnpm 的提示把确切包键加入该 profile 的 pnpm-workspace.yaml 的 allowBuilds,然后重试。发布到 npm 或使用 npm pack 生成的预构建 tarball不需要这项授权。
安装成功后,左侧栏底部会出现“插件菜单”。插件集合的变化需要重启 DSH 才能进入下一次 Web 启动清单;菜单会明确显示该状态。
组合包在 cordis.patch.yml 中提供默认配置:
- insert:
- id: plain-plugin-menu
name: dsh-plain-plugin-menu
config:
profile: web
catalogTtlMinutes: 15
githubPages: 10
operationTimeoutMinutes: 15
字段均由 Schemastery schema 校验:
profile:要管理的 DSH profile,默认 web。catalogTtlMinutes:公开目录缓存时长,1–1440 分钟。githubPages:每次最多读取多少页 GitHub topic 搜索结果,1–10 页,每页 100 条。operationTimeoutMinutes:安装或卸载超时,1–60 分钟。需要改变时,在 profile 自己的 cordis.patch.yml 中按同一 id 覆盖整行配置。DSH patch 会替换整个 config,不会深度合并,所以请重述全部字段。
可选环境变量 GITHUB_TOKEN 用于提高 GitHub API 额度。插件只把它放在对 GitHub 的 Authorization 请求头中,不会送到浏览器。
安装插件是在 DSH 进程外调用 pnpm,第三方安装脚本和插件代码都不受 agent 沙箱保护。为降低风险,本插件做了这些限制:
github:owner/repo[#path:/subdir] 的来源。dependencies。Origin 和自定义请求头,减少浏览器跨站请求伪造。$DSH_HOME。Star、最近维护和 License 只是公开信号,不是安全审计或质量保证。使用者仍需检查源码、作者、发布历史与安装脚本,生产环境建议锁定 commit。
要求 Node.js 22.19+ 或 24+:
npm install
npm run typecheck
npm test
npm run build
npm pack
更新随包快照:
npm run snapshot
Host 入口生成到 lib/index.js;浏览器端生成 DSH 客户端模块工厂 client/client.js。package.json 同时声明 dsh.bundle 和 dsh.client,让一个 Loader 条目同时挂载 Node HTTP bridge 和浏览器菜单。
基于 2026-08-16 的官方 master:
apply(ctx, config?) 的 TypeScript/JavaScript 模块,也可使用对象或 Service 类形态。ctx 是能力注册中心;通过 ctx 注册的事件、工具、slot 和 effect 会在插件卸载时反向清理。inject 中,Cordis 会等依赖服务就绪再调用插件。Config 类型与 Standard Schema;可部署差异不能硬编码。dsh.bundle.patch 的 npm 包;patch 插入实际插件行。dsh plugin --profile <name> add/remove 由 pnpm 管理 profile 依赖,并同步 dsh.profile.bundles。dsh.client 浏览器入口。浏览器 UI 只能通过 DSH slots 组合,不能修改官方核心页面。官方资料:
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: plugin-manager、plugin-marketplace、plugin-marketplaces。