Introduction¶
The core philosophy of DeepSeek Harness (DSH) is “everything is a plugin.” When agent development or daily usage requires frequent querying, browsing, or managing of GitHub repositories, switching between multiple applications interrupts the workflow. dsh-github-tool provides a GitHub workspace so that these operations can be completed directly within the DSH interface.
Plugin Overview¶
This is a local DSH bundle that adds a GitHub workspace to the left sidebar. It authenticates via a personal access token and calls the GitHub API internally within DSH — the browser never directly accesses api.github.com or sees the token. The plugin is maintained by TristGek, with no additional dependencies or build steps required.
Core Features¶
- Persistent token login: After logging in with a personal access token, the token is stored in DSH’s credential store (
dsh-github-tool/account) and automatically validated viaGET /useron each startup. - Trending repos (last 7 days): Filters repositories created within the past week from public repos, sorted by star count. The pool is the Top 200, with 18 randomly selected on each refresh — the list changes every time.
- Repository search: Supports GitHub’s official query syntax (e.g.,
language:rust,stars:>1000,topic:cli, etc.). Result pages and pagination (10/20/50 per page) are all handled by the plugin. - Browse repositories in the panel: On the repository page, you can switch between the Code and Issues tabs, switch branches, retrieve HTTPS/SSH clone URLs via the green “Code” menu, and perform copy, open in GitHub Desktop, or ZIP download. The file table displays the latest commit, supports line-number preview, and the sidebar shows rendered README and repository statistics (contributors, languages).
- Star & redirect: You can star from the repository page or from a card. The only action that leaves DSH is the “Open on GitHub” link.
- State persistence: When switching between panels, the current view, repository (tab, branch, directory, file, filters), search query, and scroll position are all preserved.
Installation & Setup¶
The installation command from the official README:
github:TristGek/dsh-github-tool
Installing from GitHub will first run git ls-remote, so git must be available in PATH. To pin a version for reproducibility, you can append a commit SHA after the command:
github:TristGek/dsh-github-tool#<commit-sha>
Alternatively, you can download the ZIP, extract it, and select the directory under “Plugins → Add plugin”.
After installation, a GitHub icon will appear in the left sidebar. If the icon has been unpinned, you can re-pin it from “More” at the bottom of the panel list. Pinning only applies to the current page; the launcher will restore after a page refresh.
Typical Usage¶
- Click the GitHub icon in the left sidebar.
- On the GitHub page, click “Sign in” to be redirected to GitHub’s settings page to create a personal access token:
- Searching public repositories and reading public data require no additional scopes.
- To star repositories owned by others, use a classic token and checkpublic_repo(for private repos,repois required). Fine-grained tokens do not support cross-repository operations. - Once logged in, you can browse Trending, refresh the list, or perform a search. Click any card to enter the repository page and view code, branches, issues, README, or directly clone and star.
- To log out and re-authenticate, click “Sign out” to remove the stored token.
Limitations & Notes¶
- Without authentication, the GitHub REST API is limited to 60 requests/hour and 10 searches/minute. A token increases the quota.
- Search displays up to the first 1,000 matches, branches are capped at 100, and Issues show only the latest 30 open issues.
- README rendering supports a Markdown subset (no images, tables, or HTML), and code has no syntax highlighting.
- Text preview is capped at 400,000 characters and 5,000 lines; exceeding this shows a notice. Binary files also display a notice.
- The plugin runs with the permissions of the current DSH process. It is recommended to review the source code and license before installation.
Summary¶
dsh-github-tool integrates core GitHub operations (browsing, searching, cloning, starring) into the DeepSeek Harness left sidebar, allowing most daily tasks to be completed without leaving the application. All API calls are routed through the Host’s /dsh-github-tool/api/* endpoints, and the token is never exposed to the browser.
- Plugin directory: https://www.skillhub.cn/plugins/TristGek/dsh-github-tool
- GitHub: https://github.com/TristGek/dsh-github-tool