让 DeepSeek Harness Agent 化身 GitHub 副驾:PR 审查、CI 失败修复、Issue 分类与自动发版说明。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:temotee2103/dsh-ci-co-pilot
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
面向 DeepSeek Harness 的 GitHub CI 副驾插件。 一切皆插件:PR 审查、CI 失败修复、Issue 分类、自动发版说明。
dsh-ci-co-pilot 让你的 DeepSeek Harness Agent 化身 GitHub 副驾:审查 Pull Request、排查失败的 CI、整理 Issue、起草发版说明——全部通过 GitHub REST API 获取结构化数据,零额外运行时依赖。
✨ 功能
| 工具 | 作用 |
|---|---|
gh_review_pr |
拉取 PR 的变更文件、统一 diff、已有审查和 CI 状态,Agent 据此撰写审查意见。 |
gh_submit_review |
通过 / 请求变更 / 评论,支持锚定在 diff 上的行内评论。 |
gh_fix_ci |
按 commit、分支或 workflow run 查看失败检查、注解和日志尾部。 |
gh_triage_issues |
列出 Issue 及分类信号:年龄、是否陈旧、评论数、标签。 |
gh_update_issue |
设置标签、指派、评论、里程碑、关闭/重开。 |
gh_release_notes |
按标签或 Conventional Commit 前缀,把合并的 PR 分组生成发版说明。 |
gh_rerun_ci |
重跑 workflow run——仅失败 job 或全部(修复后验证)。 |
gh_create_release |
把发版说明发布为 GitHub Release(自动创建 tag)。 |
gh_list_pulls |
按 state / base / head 分支列出 PR,带年龄、标签、draft 信号——找待审查的 PR 或跟踪发布队列。 |
gh_repo_status |
一次调用获取仓库健康快照:star 数、open PR/Issue 数、最近的 workflow runs。 |
🚀 安装
# 从 npm 安装(推荐)
dsh plugin --profile web add @temotee2103/dsh-ci-co-pilot
# 从 GitHub 直接安装(零构建步骤,装完即用)
dsh plugin --profile web add github:temotee2103/dsh-ci-co-pilot
# 或通过社区索引安装(国内镜像 + sha256 校验)
xlings install dsh:dsh-ci-co-pilot -y
提示:可固定 commit 以复现安装:
dsh plugin --profile web add github:temotee2103/dsh-ci-co-pilot#<40位sha>
🔑 认证
公开仓库无需 Token(受 GitHub 匿名限流)。私有仓库或高频使用:
export GITHUB_TOKEN=github_pat_... # 或 GH_TOKEN
也可以在 profile 的 cordis.patch.yml 里配置默认仓库与 API 地址(支持 GitHub Enterprise Server)。
💬 用法示例
- 审查 PR:
审查 deepseek-ai/deepseek-harness 的 PR #42,重点看并发问题,给出具体修改建议并提交审查。 - 修复 CI:
main 分支 CI 红了,找到失败原因并修复,然后推送。 - 整理 Issue:
整理本仓库的 open issues:给未打标签的补标签,关闭过期的重复项。 - 发版说明:
基于上一次 release 生成发版说明并保存到 CHANGELOG.md。 - 找 PR 审:
列出 o/r 里待审查的 open PR(按更新时间排序),挑一个最有风险的给我看。 - 仓库体检:
看一眼 o/r 的健康状况:open PR/Issue 数和最近的 CI 结果。
🧑💻 开发
pnpm install
pnpm test # vitest + mock fetch,无需网络与 API key
pnpm check
插件是纯 ESM JavaScript,无构建步骤,dsh plugin add github:... 安装后立即可用。
📚 收录情况
已被社区索引与精选列表收录:
| 列表 | 收录内容 |
|---|---|
| awesome-dsh-plugin(社区精选) | dsh-ci-co-pilot |
| dsh-index(官方插件索引) | dsh-ci-co-pilot |
| 0xsline/awesome-deepseek-harness | dsh-ci-co-pilot |
| Dominic789654/awesome-deepseek-harness | dsh-ci-co-pilot |
| imsai-sh/awesome-deepseek-harness-plugins | dsh-ci-co-pilot |
| Anil-matcha/awesome-dsh-plugin | dsh-ci-co-pilot |
| losebird/dsh-plugin-market | dsh-ci-co-pilot |
📄 License
MIT © temotee2103
链接
同类插件
zhu1090093659/dsh-web#packages/dsh-git-graph★ 8296
输入框上方提供 Git 分支选择器,并把分支泳道与提交历史画成图谱,沿着时间线找到任意变更。
Akimiya-z/codex-guard#dsh★ 138
在 DeepSeek Harness 内做提交前的 Pull Request 卫生检查:扫描当前改动中的 TODO 残留、硬编码密钥与非规范提交信息。
Cerbur/clutch-dsh#clutch-dsh-worktree★ 30
为 DSH Web UI 增加按 Git Worktree 组织 Session 的视角,同时继续由 DSH 管理原始 Project 和 Session 数据。
lehhair/dsh-diff-viewer★ 26
PiUI 风格 diff 查看器,替换 write/edit 工具调用的默认 DiffBlock。
DamonKoy/dsh-web-ui#dsh-git-graph★ 22
dsh web GUI 会话头部栏的 Git 分支选择器与提交图。
PerryLink/dsh-github★ 22
官方级 GitHub CI 集成:composite action.yml、轮询 PR 评审机器人(幂等行内评论 + status-check 门禁)以及 PR/issue 工具,所有写入走人工审批门。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。