LJH-snow/dsh-tool-github1

dsh-tool-github

DeepSeek Harness 的 GitHub 工具包:支持仓库查询、Issue 列表、代码搜索及 PR 草稿创建

AI 分析

为 DSH 提供 GitHub 平台集成工具。适合需要让 Agent 辅助管理 GitHub 仓库、搜索代码或创建 PR 的开发者,部分写入操作需要配置 GitHub PAT。

包名
dsh-tool-github
版本
0.1.0
许可证
MIT
最近更新
2026年8月13日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗

配置

在 dsh 的组合配置(cordis.yml)中加载插件:

- name: 'dsh-tool-github'
  config:
    token: 'ghp_xxx'        # GitHub PAT(可选;代码搜索与创建 PR 需要)
    baseUrl: 'https://api.github.com'   # 可选,GitHub Enterprise 可覆盖
    timeoutMs: 15000        # 可选,请求超时(毫秒),默认 15000

完整示例见 examples/cordis.yml

安全建议:查询类工具无需 token;代码搜索(github_search_code)与创建 PR(github_create_pr_draft)需要 token。建议使用最小权限的 fine-grained token,避免把 token 写入版本库。