Introduction¶
DeepSeek Harness (DSH) features a plugin-based design that allows agents to invoke external capabilities through conversation. However, searching GitHub typically relies on the model’s memory or manual searching. The model has no way of knowing whether a repository is still maintained, whether it has recent updates, or whether a particular feature has already been implemented by someone. This plugin enables the agent to query GitHub directly and organize the results into a sidebar panel, making it easy to review, compare, and bookmark.
What This Is¶
dsh-github-repo-search is a DSH plugin maintained by ZhaoDezhang9998, categorized as a “Web Tool.” It provides 6 tools for searching repositories, code, issues, and trends, and supports reading individual repository details and checking API quotas. Once installed, you can use these tools directly in conversation. Results are aggregated into the right-side panel, supporting keyword-based grouping, pagination, and cross-session history retention.
Core Features¶
The plugin provides the following tools:
github_search_repos: Search repositories. Supports qualifiers such aslanguage:,stars:>500,topic:llm,pushed:>2026-01-01. Supports sorting and pagination.github_trending: Fetch recently active trending repositories. GitHub has no public trending API, so the plugin infers results based on “recent pushes + stars,” and results include a source note.github_search_code: Search code content. Useful for finding real-world API usage or checking whether a function has already been implemented. Requires authentication.github_search_issues: Search issues and PRs. Useful for determining whether a feature request has already been filed, whether a bug is known, and the project’s activity level.github_repo: Read metadata, language composition, latest Release, and README for a single repository. Acceptsowner/name, URL, or…/tree/mainformat.github_rate: Query API quota, so the model can decide whether to conserve calls.
Search results are grouped by keyword and displayed in the right-side panel, supporting pagination for up to 1000 results. The panel contains 6 views: Repositories, Code, Issues, Bookmarks, Compare, and History. Results can be re-sorted by stars, recent push, or name, and one-click copy of repository names or git clone commands is supported.
Installation & Activation¶
Install command:
dsh plugin --profile <your profile> add dsh-github-repo-search
You can also select this directory from DSH’s Plugins → Add Plugin menu. After installation, restart and the tools will be available in new sessions.
Configuration¶
The plugin is configured via cordis.patch.yml. Fields are as follows:
| Field | Default | Description |
|---|---|---|
apiBase |
https://api.github.com |
Can be changed to your own address for GitHub Enterprise |
maxResults |
30 |
Number of results returned per request, range 1–100 |
maxReadmeChars |
8000 |
Character limit for README truncation |
timeoutMs |
20000 |
Timeout per request (milliseconds) |
trustedHosts |
[] |
Additional hosts (beyond github.com / api.github.com) allowed to receive the token |
Quotas & Authentication¶
The plugin supports both anonymous and token-based access modes. Quotas are as follows:
| Endpoint | Anonymous | With Token |
|---|---|---|
core (github_repo / github_rate) |
60/hour | 5000/hour |
| search (repos / issues) | 10/hour | 30/minute |
| code search | Auth required | 10/minute |
It is recommended to configure a token. The token is read from the DSH keychain with the following priority: GITHUB_TOKEN → GH_TOKEN → DSH_GITHUB_TOKEN; if not found in the keychain, it falls back to process environment variables.
Configuration method 1: In the DSH settings page → Models/Credentials, add a secret named GITHUB_TOKEN.
Configuration method 2: Write the following in the refs section of ~/.dsh/.credentials.yaml:
version: 1
refs:
GITHUB_TOKEN: ghp_xxx
Design Trade-offs¶
- Read-only: No writes to GitHub, no login, no
ghCLI invocations, nowebServerroute registrations. - Scoped credentials:
apiBaseis configurable; the token is only sent togithub.com,api.github.com, and hosts you explicitly list intrustedHosts. All other requests are treated as anonymous. - Conversation-driven search: The panel does not have a built-in search box. Searching is triggered from conversation; the panel is for reviewing and comparing.
- Short-term caching: Identical requests within 60 seconds reuse cached results. Concurrent duplicate requests are merged to avoid hitting rate limits. Only successful results are cached.
Use Cases¶
Suitable for developers and agent builders who need to query GitHub repositories, code, issues, and trends directly within a conversation. Before use, ensure your DSH version meets >=0.2.1-rc.2 <0.3.0-0 and Node version is >=20. The plugin runs with the current process’s permissions. We recommend reviewing the source code and license before installation.
Closing¶
This plugin enables agents to query GitHub directly within a conversation and organize results into the right-side panel, supporting review, comparison, and cross-session history retention. If you need to search repositories, code, or issues directly in DSH, refer to the catalog page and the GitHub repository for more information.