deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
简体中文 | English
把 GitHub Copilot 订阅接进 DeepSeek Harness:一个 copilot LLM provider,直接使用你订阅里的模型(GPT、Claude、DeepSeek……),SDK 库与测试套件 100% 逐字移植自上游。
本插件是 @github/copilot-sdk(MIT,github/copilot-sdk)的 dsh 移植(port),版本钉在 1.0.11(commit 18002a81)。SDK 库本体与上游逐字一致(见 THIRD_PARTY_NOTICES.md 的 SHA-256 校验);.pi/ 下的桥接层是本移植自己的代码。喜欢的话,也请给上游一个 star ⭐
copilot provider,订阅里可用的模型(gpt-5、claude-sonnet-4.5、deepseek-r1 等)直接出现在 dsh 的模型列表里/copilot 命令:status 查看连接与模型数、models 列出可用模型、stop 停掉 CLI runtimenpm test 全绿dsh 会话中
└─ 模型选择器里出现 copilot / gpt-5、copilot / claude-sonnet-4.5 …
└─ /copilot status
Copilot bridge: connected.
Provider: copilot
Models available: 8
Requires a GitHub Copilot subscription (or BYOK …)
尚未发布到 npm —— 从 GitHub 或本地目录安装:
# GitHub 源(安装时 prepare 会执行 build)
dsh plugin --profile <你的-profile> add github:GongYuanCaiJi/dsh-copilot-sdk
# 本地路径(先在该目录 npm install)
dsh plugin --profile <你的-profile> add /path/to/dsh-copilot-sdk
pnpm 默认阻止 git 安装的构建脚本(prepare)。如果 add 报 allowBuilds 错误,
把 pnpm 打印的精确 key 加进 profile 的 pnpm-workspace.yaml 的 allowBuilds 再重试;
本插件的原生依赖(koffi FFI)可能被连带拦截,同样放行后重跑。
安装后重启 dsh。插件按需拉起 Copilot CLI(首次模型调用 / /copilot status 时),
不需要订阅之外的任何配置。
dsh 侧命令: /copilot status /copilot models /copilot stop
作为模型 provider: 安装后,会话的模型选择器里会出现 copilot provider
及其订阅模型(也可在 agent 配置里指定 provider: copilot + 具体模型 id)。
全部走环境变量(与上游 SDK 一致):
COPILOT_GITHUB_TOKEN / GH_TOKEN / GITHUB_TOKEN —— GitHub 认证 token(缺省用 copilot CLI 的已登录用户)@github/copilot-sdk 一致;
完整 API 参考见上游 README 与 docs/。MIT —— 见 LICENSE。上游为 github/copilot-sdk(MIT)。
授权 / 合规询问 → GitHub issues。
遥测说明: 上游 SDK 自带 telemetry 代码(src/telemetry.ts 与 GitHub telemetry 转发),
本移植逐字保留、未删改。本插件的桥接层不传入 telemetry options、也不注册 handler,
因此默认不发送;若你自行构造 CopilotClient 并启用,则以上游行为为准。
简体中文 | English
Bring your GitHub Copilot subscription into DeepSeek Harness: a copilot LLM provider that serves the models in your subscription (GPT, Claude, DeepSeek, …), with the SDK library and test suite ported 100% verbatim from upstream.
This plugin is a dsh port of @github/copilot-sdk
(MIT, github/copilot-sdk), pinned to
1.0.11 (commit 18002a81). The SDK library is byte-identical to upstream
(see THIRD_PARTY_NOTICES.md for SHA-256 checks);
the bridge under .pi/ is this port's own code. If you like it,
star the upstream too ⭐
copilot provider whose models
(gpt-5, claude-sonnet-4.5, deepseek-r1, …) show up in dsh's model list/copilot command: status (connection + model count), models (list), stop (shut the CLI down)npm test is greenInside a dsh session
└─ model selector shows copilot / gpt-5, copilot / claude-sonnet-4.5 …
└─ /copilot status
Copilot bridge: connected.
Provider: copilot
Models available: 8
Requires a GitHub Copilot subscription (or BYOK …)
Not published to npm yet — install from GitHub or a local checkout:
# GitHub source (prepare runs the build on install)
dsh plugin --profile <your-profile> add github:GongYuanCaiJi/dsh-copilot-sdk
# Local path (run `npm install` in the plugin directory first)
dsh plugin --profile <your-profile> add /path/to/dsh-copilot-sdk
pnpm blocks git-hosted installs from running the prepare build script until
allowed — if add fails with an allowBuilds error, add the exact key pnpm
printed under allowBuilds in the profile's pnpm-workspace.yaml, then re-run.
The native dependency (koffi FFI) may be blocked next; allow it the same way.
Restart dsh after installing. The plugin starts the Copilot CLI on demand
(first model call / /copilot status); no config beyond your existing GitHub auth.
dsh-side commands: /copilot status /copilot models /copilot stop
As a model provider: after install, the session model selector shows the
copilot provider and its subscription models (or set provider: copilot plus
the model id in your agent config).
All via environment variables (same as the upstream SDK):
COPILOT_GITHUB_TOKEN / GH_TOKEN / GITHUB_TOKEN — GitHub auth token (defaults to the logged-in copilot CLI user)@github/copilot-sdk; full API reference is in the
upstream README and docs/.MIT — see LICENSE. Upstream: github/copilot-sdk (MIT).
License / compliance enquiries → GitHub issues.
Telemetry: the upstream SDK ships telemetry code (src/telemetry.ts and GitHub
telemetry forwarding), kept verbatim in this port. This plugin's bridge passes no
telemetry options and registers no handler, so it sends nothing by default; if you
construct a CopilotClient yourself and enable it, upstream behaviour applies.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。