跳到正文

xiongjiamu/dsh-atomgit

51最近提交 2026年8月15日

dsh-atomgit DSH 插件

dsh-atomgit 将 AtomGit 的三个服务层打包成一个 DSH 插件:工作流技能、CLI 执行和 MCP 服务器。安装后,模型获得六个内置技能(计划问题、实现、审查/合并 PR、发布版本、镜像到 GitHub)、原生 `ag` CLI 命令以及用于仓库、分支、问题、PR 和搜索的 `mcp__atomgit__*` 工具。所有认证通过 `ag auth login` 获得的单个 AtomGit PAT 统一管理。

如何安装 dsh-atomgit DSH 插件

dsh plugin --profile web add ./dsh-atomgit

复制不会执行命令。安装 dsh-atomgit DSH 插件前请核对仓库和版本。

dsh-atomgit DSH 插件数据来源

dsh-atomgit DSH 插件快照日期:2026年8月16日

discovered

dsh-atomgit DSH 插件能做什么

  • 提供六个内置 AtomGit 技能:atomgit-plan-issues、atomgit-implement-issue、atomgit-review-pr、atomgit-merge-pr、atomgit-publish-cli-release、atomgit-mirror-to-github。
  • 允许模型通过 bash 工具直接运行 `ag` CLI 命令,管理仓库、问题、PR 和发布。
  • 桥接 AtomGit 平台托管的 MCP 服务器,无需本地服务器设置即可暴露原生工具如 `mcp__atomgit__*`。
  • 统一认证:一个 AtomGit PAT(来自 `ag auth login`)自动覆盖所有三个模块。
  • 支持通过配置文件补丁覆盖配置,允许用户禁用 MCP 或指向自定义端点。
  • 技能从 atomgit-skills 上游 vendored,固定到特定标签以实现可重现构建。

dsh-atomgit DSH 插件适合哪些场景

  • 使用 `atomgit-plan-issues` 和 `atomgit-implement-issue` 自动规划并实现问题。
  • 使用 `atomgit-review-pr` 和 `atomgit-merge-pr` 在明确授权后审查并合并拉取请求。
  • 自动将 CLI 版本发布到 AtomGit 并将仓库镜像到 GitHub。
  • 通过自然语言命令管理仓库、分支、问题、PR,无需离开聊天界面。
  • 将 AtomGit 操作集成到更大的 DSH 工作流中。

dsh-atomgit DSH 插件适合谁

  • 使用 DeepSeek Harness 的开发者,希望与 AtomGit 仓库交互。
  • 团队在 AtomGit 上自动化代码审查、发布和镜像工作流。
  • 偏好使用统一插件打包所有 AtomGit 服务的 DSH 用户。

dsh-atomgit DSH 插件的限制

  • 需要全局安装 `ag` CLI(`npm install -g @hust-open-atom-club/atomgit-cli`)并首次执行 `ag auth login` 进行认证。
  • 令牌回退(`ATOMGIT_TOKEN` 环境变量)仅在 ag 凭证文件不存在时生效,无图形化令牌管理。
  • 内置技能来自特定上游标签,更新技能需要手动运行 `npm run sync-skills`。
  • MCP 端点由平台托管,除非用户配置自托管替代方案,否则无法修改服务器逻辑。
  • 插件设计用于 `web` 配置文件,其他配置文件可能需要额外配置。

dsh-atomgit DSH 插件的仓库 README 摘录

以下文字摘自 dsh-atomgit DSH 插件的上游仓库 xiongjiamu/dsh-atomgit 的 README,版权归原作者,仅作引用。

English | [中文](README.zh.md) AtomGit plugin bundle for DeepSeek Harness (dsh): lets dsh users host and manage code on AtomGit out of the box. One package delivers all three AtomGit services: | Layer | Source | Shape in dsh | | --- | --- | --- | | Workflow | [atomgit-skills](https://atomgit.com/hust-open-atom-club/atomgit-skills) | Six built-in skills in the model's `<available_skills>` catalog, loaded on demand via the `skill` tool | | Execution | [atomgit-cli](https://atomgit.com/hust-open-atom-club/atomgit-cli) (`ag`) | The model runs `ag` commands directly through the built-in bash tool | | Interaction | AtomGit platform-hosted MCP server (`https://api.atomgit.com/mcp-server/v1/mcp`) | Native tools `mcp__atomgit__*` bridged by `@deepseek-ai/dsh-mcp-client` over streamable-http; no local server to run | Built-in skills (vendored from the atomgit-skills upstream): `atomgit-plan-issues`, `atomgit-implement-issue`, `atomgit-review-pr`, `atomgit-merge-pr`, `atomgit-publish-cli-release`, `atomgit-mirror-to-github`. ## Installation Prerequisites — **one authentication step covers all three modules**: ```sh # The only setup needed: install ag and log in once. # `ag auth login` sto

阅读完整 README仓库未声明许可,使用前请先与作者确认。

dsh-atomgit DSH 插件常见问题

如何安装 dsh-atomgit?

首先,全局安装 AtomGit CLI:`npm install -g @hust-open-atom-club/atomgit-cli` 并运行 `ag auth login` 进行认证。然后,在包含插件包的目录中,运行 `dsh plugin --profile web add ./dsh-atomgit`,最后用 `dsh web` 启动 Web 界面。你也可以通过远程源安装,例如 `dsh plugin --profile web add github:you/dsh-atomgit#<sha>`。

三个模块的认证是如何工作的?

认证是统一的。`ag auth login` 命令会将 AtomGit PAT 存储在 `~/.config/ag-cli/token.json`。CLI 和技能直接读取该文件。MCP 插件的 `atomgitAuth` 服务会自动从同一文件解析令牌,并将其作为 `Authorization: Bearer <PAT>` 发送。你可以通过设置项目 `.env` 文件中的 `ATOMGIT_TOKEN` 环境变量来覆盖令牌,当 ag 凭证文件不存在时会使用该变量。

能否禁用 MCP 服务器,只使用技能和 CLI?

可以。通过在你的配置文件(如 `cordis.patch.yml` 或 `--patch` 覆盖)中添加补丁来禁用 MCP 服务器。例如,添加 `- id: mcp-atomgit` 并设置 `disabled: true`。这将保留技能和 `ag` CLI,同时移除 MCP 工具。

如何将内置技能更新到新版本?

技能从 atomgit-skills 上游 vendored 并固定到特定标签。要更新到最新的 main 分支,运行 `npm run sync-skills`。要更新到特定标签(如 v1.2.3),运行 `npm run sync-skills -- v1.2.3`。同步后,重新安装插件以应用更改。

如果我想要使用不同的 AtomGit MCP 服务器怎么办?

你可以通过在你的配置文件中修补 `mcp-atomgit` 行来覆盖 MCP 服务器端点。在 `config` 部分设置自定义 URL,例如 `url: https://your-host/mcp`。你还必须注入 `atomgitAuth` 服务,并使用来自插件上下文的令牌提供 `Authorization` 标头。README 中提供了一个自托管服务器的示例补丁。