@perrylink/dsh-github

@PerryLink · Git
检测有风险提示无安装脚本来源一致

为 DeepSeek Harness 提供 GitHub PR/issue/CI 集成,所有写操作需人工审批,适合需要安全托管代码协作流程的团队

v0.6.3版本
npm 预构建包安装方式
2026-08-22最近更新
3 · 661Star · 周下载
dsh plugin --profile web add @perrylink/dsh-github查看仓库

插件介绍

根据仓库资料整理 · commit 20665e5

主要功能

  • 支持 PR 全生命周期:创建、审查、更新(标题/正文/状态/base)、合并(merge/squash/rebase,可选删除分支)
  • 行内审查评论:针对 PR head commit 发布汇总评论或行级审查评论,且幂等
  • 所有 GitHub 写操作(PR/issue/审查/CI)默认需人工审批,且有写操作白名单限制
  • Token 通过 credentials → 环境变量 → gh CLI 顺序解析,绝不写入日志或输出
  • 提供 CI 组合 action、轮询式 PR 审查机器人与 status-check 门禁
  • 内置 429 重试退避、请求超时与可取消调用,读操作支持并发

适合什么时候用

  • 希望让 Agent 直接创建、审查、合并 GitHub PR,但要求所有写操作经人工审批
  • 需要为仓库接入自动化 PR 审查机器人和 CI status-check 门禁
  • 需要在对话中搜索、读取仓库文件与元数据,并管理 issue(创建/评论/关闭)

安装后会多出什么

命令/pr create/review/issue open
Agent 工具pr_createpr_mergepr_updategh_reviewreview_postgh_issueissue_openissue_commentissue_closegh_searchgh_repogh_file

使用前需要

  • 需要 GitHub Token(默认变量名 GITHUB_TOKEN,可来自 credentials/环境变量/gh CLI)
  • Node.js ^22.19.0 或 >=24.0.0
  • DeepSeek Harness 0.1.0-rc.8 兼容
  • 依赖 @deepseek-ai/cordis、dsh-credentials、dsh-llm、dsh-session、dsh-settings、dsh-tools 等 peer 包

在 GitHub 阅读完整 README

权限与能力

安装后它能碰到什么
不覆盖任何 dsh-base 宿主行:不接管沙箱、审批、凭据等能力。
宿主能力
Agent 控制浏览器 UI凭据环境变量文件系统MCP外部网络宿主子进程遥测
能力是范围不是结论:很多能力是功能所需。

基本信息

仓库PerryLink/dsh-githubnpm@perrylink/dsh-github@0.6.3安装方式npm 预构建包收录日期2026-08-16固定 commit20665e5f3253 · 2026-08-22
dsh plugin --profile web add @perrylink/dsh-github