mitian233/dsh-plugin-commandcode-provider
Project Overview项目介绍
This is a native DeepSeek Harness (DSH) plugin that adds the Command Code LLM provider route to DSH. It forwards LLM requests to Command Code’s public /alpha/generate API endpoint, and ships with a valid DSH bundle manifest that allows automatic activation via the official dsh plugin command. No manual edits to cordis.patch.yml are required, and the plugin is compatible with DSH version 0.1.0-rc.6 and all newer releases. It can be installed from a local checkout, packed tarball, npm package, or directly from the GitHub repository via the standard DSH plugin install command.
After installation, you can configure the plugin by adding an override patch to your DSH profile’s cordis.patch.yml if you want to change default settings like base URL, max tokens, or the credential environment variable name. The plugin includes an optional browser-assisted OAuth flow that helps you retrieve and store your Command Code API key directly through DSH’s credentials service. If the OAuth flow fails, you can always fall back to manual API key input. To use a Command Code model, just reference it as commandcode/<model-id> in your DSH model configuration.
The plugin supports core LLM features including text messages, streaming text output, standard JSON Schema tool calls, reasoning deltas for supported models, usage reporting, request cancellation, and error classification. It is released under the open source MIT license, and currently does not support credential refresh, image inputs, or stop sequences in its v1 release. Unsupported request types are rejected before any network call is made. To develop the plugin locally, you need to add the plugin directory to your DSH workspace’s pnpm-workspace.yaml to resolve internal DSH dependencies correctly.
这是一个面向 DeepSeek Harness (DSH) 的原生插件,为 DSH 新增了 Command Code LLM 提供商路由能力,它会向 Command Code 的 /alpha/generate API 发送请求,完全适配 DSH 官方的插件管理工作流,无需手动编辑配置文件,可直接通过官方 dsh plugin 命令完成安装,兼容 DSH 0.1.0-rc.6 及后续所有版本。
这个插件支持浏览器辅助的 OAuth 流程获取 API 密钥,用户也可以选择手动输入密钥,配置完成后即可通过 commandcode/<模型ID> 的格式调用 Command Code 提供的各类大模型。它支持文本消息、流式输出、标准 JSON Schema 工具调用、推理增量返回和用量统计等核心能力,适合需要在 DSH 中接入 Command Code 模型服务的开发者。
这个插件使用 MIT 许可开源,目前 v1 版本不支持凭证刷新、图片输入和 stop 序列,这些不支持的请求会在发送网络请求前就被拦截。它依赖 DSH 官方使用的 pnpm 包管理工具,开发时需要将插件路径加入 DSH 工作区的 pnpm-workspace.yaml 才能正确解析内部依赖,API 密钥需要通过 DSH 凭证服务完成配置。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-plugin-commandcode-provider(mitian233/dsh-plugin-commandcode-provider)
仓库:https://github.com/mitian233/dsh-plugin-commandcode-provider
本站详情页:https://www.yhbd.top/plugins/mitian233-dsh-plugin-commandcode-provider/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 2 · 最近提交 2026-09-23 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
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 web add github:mitian233/dsh-plugin-commandcode-provider
把 mitian233/dsh-plugin-commandcode-provider 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
Command Code provider for DeepSeek Harness
dsh-plugin-commandcode-provider adds the commandcode LLM provider route to
DeepSeek Harness (DSH). It
sends requests to Command Code's /alpha/generate API.
Installation
This plugin is a standalone DSH plugin. It does not modify the DeepSeek Harness
repository: install it into a profile with dsh plugin, the official plugin
manager. The package declares a dsh.bundle manifest (a cordis.patch.yml
layer), so dsh plugin add activates it automatically — no manual
cordis.patch.yml edit is required.
Run DSH
The official npm form runs the harness without a global install:
npx @deepseek-ai/dsh web
If dsh is already on your PATH (installed globally or via a package
manager), dsh web is equivalent. This plugin is compatible with DSH
0.1.0-rc.6 and later (npm next tag).
Install the plugin into a profile
From the plugin checkout, install the local directory into a profile. The
first use initializes the profile (with @deepseek-ai/dsh-base as its first
bundle):
cd /path/to/dsh-plugin-commandcode-provider
# Official form, no global dsh needed:
npx @deepseek-ai/dsh plugin --profile web add .
# Or with a global dsh on PATH:
dsh plugin --profile web add .
add . anchors the relative path to the invoking directory, so it links this
checkout into the profile's pnpm-managed node_modules. Because the package
declares dsh.bundle, dsh plugin also appends the package to the profile's
dsh.profile.bundles, so its patch layer activates on boot without any
additional wiring. Any other pnpm spec works the same way — an npm package, a
packed tarball, or a git host:
dsh plugin --profile web add ./dsh-plugin-commandcode-provider-0.1.0.tgz
dsh plugin --profile web add github:mitian233/dsh-plugin-commandcode-provider
Remove the plugin (also removes the bundle layer) with:
dsh plugin --profile web remove dsh-plugin-commandcode-provider
Override config in the profile
The bundle's patch supplies schema defaults. To override any key, add an
id-targeted patch row to your own profile cordis.patch.yml (applied after
bundle layers):
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
Q00/ouroboros
crafter-station/petdex
whiteguo233/OpenBiliClaw
anywhere-labs/Agents-Anywhere
agentrq/agentrq
freestylefly/wesight