dsh-query-bridge: Query GitHub Repositories, DeepSeek Balance, and Codex Conversation History in Chat

Introduction

When developing with or using DeepSeek Harness (DSH), you often need to quickly check external states: the latest commits on a GitHub repository, the remaining balance on a DeepSeek account, or the history of local Codex sessions. This information is scattered across different systems, and querying them one by one is inefficient. dsh-query-bridge integrates these query capabilities into the conversation flow through a single plugin, reducing the time spent switching between applications.

What Is This

dsh-query-bridge is a plugin for DeepSeek Harness (DSH), developed by maintainer YYY-DXS and categorized as a “Web Tool.” Its core purpose is to directly query and return within a conversation: the latest commit status of a GitHub repository, DeepSeek account balance, and a list of local Codex session history.

Core Features

The plugin provides the following capabilities:

  • GitHub Repository Status Query: Supports specifying a repository and returns a summary of the most recent commits. The configuration allows you to specify the repository (githubRepo) and the number of commits to display (commits).
  • DeepSeek Balance Query: Reads DeepSeek account balance information through a configured API Key file.
  • Codex Session History Query: Scans local directories for Codex session records and returns the list of past sessions. The configuration allows you to specify the history directory (historyDir) and the archive directory (archiveDir).

Installation & Activation

Install via the official DSH command:

dsh plugin add github:YYY-DXS/dsh-query-bridge

After installation, verify that the plugin is enabled in DSH’s “Settings → Plugins.” Before first use, you need to fill in the paths and parameters in the configuration.

Configuration

Add the following to your DSH plugin configuration:

- insert:
    - id: query-bridge
      name: 'dsh-query-bridge'
      config:
        githubRepo: YYY-DXS/DIY-code
        commits: 6
        runs: 3
        searchLimit: 8
        apiKeyFile: ''
        historyDir: codex-history/threads
        archiveDir: codex

Configuration options:

  • githubRepo: The GitHub repository name to query (format: owner/repo).
  • commits: The number of recent commits to display.
  • runs: The execution limit per query.
  • searchLimit: The search result count limit.
  • apiKeyFile: The file path containing the DeepSeek API Key. Leave empty to skip balance queries.
  • historyDir: The local Codex session history directory.
  • archiveDir: The Codex archive directory.

Compatibility & Notes

  • DSH version requirement: >=0.1.0-rc.6 <0.3.0-0.
  • Node.js version requirement: >=18.
  • Platform support: Currently supports Windows.

The plugin runs with the permissions of the DSH process, so ensure that the directories specified in the configuration are accessible. Before installing, it is recommended to review the source code and license (MIT). The source code and development are located in the plugins/query-bridge/ directory of DIY-code.

Use Cases

Suitable for DSH users or developers who frequently interact with external states, for example: quickly checking the latest repository changes before writing code, confirming the balance before calling the DeepSeek API, or reviewing history when working with Codex sessions. Retrieving this information directly through conversation reduces the steps of manual switching and querying.

Conclusion

dsh-query-bridge integrates the query capabilities for GitHub repository status, DeepSeek balance, and Codex session history into the DSH conversation, making information retrieval more centralized and efficient. For detailed documentation or to submit issues, visit:

  • GitHub Repository: https://github.com/YYY-DXS/dsh-query-bridge
  • Skill Community Directory: https://www.skillhub.cn/plugins/YYY-DXS/dsh-query-bridge
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye