Preface¶
When developing or debugging agents in DeepSeek Harness (DSH), you often need to quickly look up open-source projects on GitHub. The traditional approach is to switch to a browser, open github.com, type in keywords, and filter results. DSH provides a plugin extension capability that allows you to search and preview directly in the session sidebar, reducing context switching.
What It Is¶
dsh-github-search is a plugin for DeepSeek Harness, maintained by Joshualover. It adds a “GitHub Repository Search” entry to DSH’s left sidebar. Opening it lets you type keywords to search repositories directly. Results are displayed as a list, with filtering by language and star count. Clicking any item lets you view the README, language breakdown, open in browser, copy the clone command, or copy the repository URL. The plugin also provides two read-only tools for agents to invoke.
Core Features¶
Sidebar entry: Click the new magnifying glass with a plus icon in the left sidebar to open the GitHub Repository Search panel.
Search and filter: Type keywords in the input field, then press Enter or click “Search.” Top buttons let you switch sorting: Best match / Most stars / Most forks / Recently updated. Dropdowns on the right let you filter by language and minimum star count. The “Name only” toggle restricts the keyword to repository names.
Result expansion: Click any item to expand its README and language breakdown. The top-right corner of the panel shows the current remaining quota.
Clear and history: Click “Clear” (to the right of the search button) to reset keywords, results, detail cache, and filters back to the initial state; any in-progress search will be cancelled. Below the input field is a row of recent search tags, automatically recording each query, storing up to 10 entries and displaying 8; clicking a tag fills it in and re-searches. The “Clear history” link on the right removes the entire row.
README translation: After expanding any project, a “Translate to Chinese” button appears above the README, one-click translating the English README into Chinese and replacing the display. Click “View original” to switch back. Translation preserves Markdown structure (headings, lists, tables, code blocks, links); code, commands, identifiers, and proper nouns are not translated. If the README exceeds 8,000 characters, only the first 8,000 characters are translated, with an explicit notice.
Quota and Token¶
The GitHub search API has strict limits for unauthenticated requests: only 10 per minute per IP. The plugin searches for a token in the following order and uses the first one found, raising the quota to 30 per minute and 5,000 per hour:
- The
config.tokenset incordis.patch.yml - The local
ghCLI credentials (~/.config/gh/hosts.yml); setconfig.useGhTokentofalseto skip - Environment variable
GITHUB_TOKENorGH_TOKEN
If a local gh login is detected, it will be used automatically—usually no extra configuration needed. To specify manually:
- insert:
- id: dsh-github-search
name: 'dsh-github-search'
config:
token: 'github_pat_...'
Tools for Agents¶
The plugin registers three read-only tools; the UI and tools share the same underlying logic:
github_search— Search repositories by keyword, language, topic, author, minimum stars, and license; supports sorting and pagination.github_repo— Read a single repository’s details, language breakdown, and README; acceptsowner/repoor a github.com URL.github_translate_readme— Translate a repository’s README (or a previously fetched README text) into Chinese, preserving Markdown structure.
Installation and Enablement¶
The plugin is inserted into DSH via cordis.patch.yml. Ensure DSH version >=0.2.0-rc.1 and <0.3.0-0, and Node.js >=20. Copy the plugin directory files into DSH’s plugin directory, or load the package according to DSH’s plugin installation procedure.
Typical Usage¶
- Click the GitHub search icon in DSH’s left sidebar.
- Type keywords (e.g., “react table”), then press Enter or click Search.
- Use the top buttons to switch sorting, and the right-side dropdowns to filter by language or minimum stars.
- Click any result to expand the README; if you need Chinese, click “Translate to Chinese.”
- While expanded, you can also copy the clone command or repository URL, or click “Open in browser.”
Use Cases and Notes¶
Suitable for developers and agent developers who need to quickly browse GitHub repositories, find open-source components, and view READMEs within a DSH session. All plugin operations are read-only and will not modify any repository.
Please review the plugin source code and license before use. The token acquisition order and quota limits are documented in the README. Translation sends the README body to a model, using the model routing and credentials already configured in DSH. Be aware that the text is sent to the model provider.
Known Limitations¶
- GitHub search can return at most the first 1,000 results, so the page cap is 10 (up to 50 per page).
- Repository search only; no code search, issue search, or star list.
- README is fetched from the default branch only; anything over 20,000 characters is truncated.
- Translation processes only the first 8,000 characters per call; longer READMEs will be truncated with a notice.
- No translation caching; each expansion triggers a new request (unless you re-translate the same item).
Structure¶
| File | Purpose |
|---|---|
| index.js | Host half: /dsh-github-search/* routes, token resolution, two agent tools |
| lib/github.js | Search core: query syntax construction, API calls, error and rate-limit handling, repo slimming |
| client.js | Browser half: sidebar entry + search panel |
| locale/*.json | Title and description shown in the plugin marketplace |
| docs/ | Detail page preview images and documentation |
Screenshots¶
assets/screenshot-2-results.webp — Search results list
assets/screenshot-1-empty.webp — Initial empty state and recent searches
Data and Privacy¶
- Requests contain only your search terms and filter criteria, forwarded locally via the Host to
api.github.com. - All operations are read-only; no repository is modified.
- Search history is stored in the browser’s
localStorage(key:dsh-github-search:history), kept only in your own browser and never uploaded; click “Clear history” to delete. - Translation sends the README body to a model. It uses the model routing already configured in DSH and your own credentials; if DSH has a built-in translation service (translator) mounted, it takes priority. README content is public documentation, but be aware that this step does send the text to the model provider.
- Disabling the plugin removes the panel, sidebar entry, and both tools.
Closing¶
dsh-github-search provides the ability to search GitHub repositories directly within DeepSeek Harness, reducing context switching and improving lookup efficiency. The plugin performs read-only operations, supports README translation, and can be used alongside DSH’s agent tools.
Directory page: https://www.skillhub.cn/plugins/Joshualover/dsh-github-search
GitHub: https://github.com/Joshualover/dsh-github-search