Uses a GitHub App to report open PRs and the latest Actions run for the current repo without returning secrets.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:173787247/dsh-wsl-github
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Install set: part of dsh-wsl-kit. Prefer
KIT_SET=daily|llm|github|full(see kit README). Fault tree: TROUBLESHOOTING.md.
DeepSeek Harness tools: github_app_hint + github_repo_status — GitHub App auth for the current repo’s open PRs and latest Actions run.
Part of dsh-wsl-kit.
Where it sits
Hints that a GitHub App env file exists, and reports repo PR / Actions status. It never dumps secrets.
flowchart LR
agent["dsh agent"] --> gh["dsh-wsl-github"] --> api["GitHub API status"]
Suite diagram and version snapshot: dsh-wsl-kit. This plugin is 0.2.0 (github). Do not copy that matrix into this README.
Compatibility
| Field | Value |
|---|---|
| Plugin | dsh-wsl-github 0.2.0 |
| Minimum dsh | ≥ 0.1.2 (web UI one-shot ?token= on Windows relay :3081) |
| Latest verified | See dsh-wsl-kit Compatibility (currently 0.2.2-rc.5) — single source of truth for the suite |
| Kit set | github / full |
| Cloud Flash | Use model id deepseek-flash (V4.1 Flash) in ~/.dsh/settings.yaml / llm-deepseek — not configured by this plugin |
| Agent Teams | Core support in dsh rc.2 (named subagents + shared task board); the old experimental profile is retired. Not required here |
Suite floor versions: kit check-plugin-versions.sh. Fault tree: TROUBLESHOOTING.md.
Why this plugin exists
WSL agents already have dsh-wsl-cred (cred_hint) for git push credentials. They still need the GitHub API for “what PRs are open?” and “did CI pass?”—without dumping a PAT into chat.
This plugin mints a short-lived GitHub App installation token in memory. Tool output never includes the private key, JWT, or token. Pair with dsh-wsl-browser (win_open_url) to open returned html_urls on Windows.
It is intentionally small. It is not a 40-tool GitHub connector.
How it fits dsh-wsl-kit
DSH in WSL + Chat in a Windows browser is the kit’s home turf. GitHub work splits across plugins:
| Job | Plugin | Tool |
|---|---|---|
| Push / HTTPS credentials | dsh-wsl-cred | cred_hint |
| API: open PRs + latest Actions | this plugin | github_app_hint, github_repo_status |
| Open PR / Actions in Windows | dsh-wsl-browser | win_open_url |
| Proxy / Node 24 fetch issues | dsh-wsl-net | net_doctor |
Why the kit path is convenient
- One install pack (
dsh-wsl-kit/install.sh) instead of ad-hoc PAT wiring. - Secrets stay on disk under
~/.dsh/and in process memory—not in Trajectory. - Same mental model as the rest of the kit: small tools, clear OS boundary.
- Enough of a real GitHub App integration to join the GitHub Developer Program.
Suite overview: dsh-wsl-kit README.
Tools
| Tool | Role |
|---|---|
github_app_hint |
Whether App credentials / ~/.dsh/dsh-wsl-github.env exist (existence only), setup + role split vs cred/ssh/win_open_url (no secrets) |
github_repo_status |
Open PRs (up to 5) + latest Actions run. repo optional; default is git origin |
After configuring the env file, self-check with github_app_hint (no live App e2e in CI — needs your PEM).
End-to-end usage (WSL)
- Install the plugin (with the kit or alone):
dsh plugin --profile web add github:173787247/dsh-wsl-github
- Register the GitHub App once (permissions are pre-filled from
github-app-manifest.json):
npm run register-app
On GitHub: keep or rename the app → Create GitHub App. The script writes App ID + PEM to ~/.dsh/ and does not print secrets.
| Permission | Access | Why |
|---|---|---|
| Metadata | Read | Repo name, default branch |
| Pull requests | Read | List open PRs |
| Actions | Read | Latest workflow run |
| Webhook | Off | This plugin polls the API; it does not receive events |
| Install scope | Private app (public: false) |
Install on your account while developing |
Install the App on your GitHub account (link printed by the script, or apps/dsh-wsl-github). Choose All repositories or only the repos you need.
Load env before
dsh web(WSL / bash):
set -a
source "$HOME/.dsh/dsh-wsl-github.env"
set +a
dsh web
Windows PowerShell (if you start DSH from Windows):
Get-Content "$HOME\.dsh\dsh-wsl-github.env" | ForEach-Object {
if ($_ -match '^(GITHUB_[A-Z_]+)=(.*)$') { Set-Item -Path "Env:$($matches[1])" -Value $matches[2] }
}
Open a new session. Ask the agent:
- “Run
github_app_hint.” - “Run
github_repo_statusfor this repo.” - “Open that
html_urlwithwin_open_url.”
- “Run
If HTTPS to GitHub fails, run net_doctor. If git push fails, run cred_hint—that is a different problem from this plugin.
Manual App creation (no script): Register a GitHub App, Homepage https://github.com/173787247/dsh-wsl-kit, same permissions as the table, webhook off, then:
export GITHUB_APP_ID=123456
export GITHUB_APP_PRIVATE_KEY_PATH="$HOME/.dsh/dsh-wsl-github.pem"
GITHUB_TOKEN / GH_TOKEN is a last-resort smoke-test fallback, not the intended auth.
Optional: after the App can call the API, join the Developer Program at github.com/developer/register (product website can be this kit or plugin repo URL).
Config
- id: dsh-wsl-github
name: dsh-wsl-github
config:
timeoutMs: 20000
appId: ""
privateKeyPath: ""
installationId: ""
Empty strings mean “read from env”. A later profile config object replaces the whole block.
Test
npm test
License
MIT
Links
More in this category
6Mikao9/dsh-wsl-workspace★ 125
Add a WSL workspace from the web GUI without needing to install dsh or related tools again inside WSL. Bash commands and file read/write operations run within the local WSL distribution on the host machine, while Windows files remain accessible.
XINY11451/dsh-wsl★ 21
Extends the working range of DSH into WSL. Files in the distribution can be read, written, edited and searched by DSH directly. Depending on the task, the AI chooses for itself: run a one-off command, or open its own terminal and run several commands there to finish the job. Typing `dsh` in a WSL terminal calls DSH (type `dsh help` there for details), fusing WSL and DSH deeply. Every terminal you open can collaborate visually with the AI.
Edge-Echo/dsh-win-toolkit★ 4
Windows-native tools for DSH agents: clipboard read and write, system notifications, hosts file inspection and network diagnostics, each returning structured data with UI cards from injection-safe PowerShell.
Han-1413141/dsh-wsl-native★ 4
Use Windows and native Linux DSH sessions in one Windows window, with WSL environment switching and bidirectional system tools.
stallenlu/dsh-wsl-suite★ 4
WSL workspaces for DeepSeek Harness. A sidebar W button lists installed distros and registers a Linux folder as a host workspace addressed by a UNC path, and the sidebar terminal opens a real Linux pty inside the distribution for WSL sessions. A persistent zero-dependency agent running in the distro answers file, shell and search requests over a JSON-lines pipe, so no polling timers touch the distribution while it is idle and /mnt drives stay reachable from tools and the terminal (registering one as a workspace is refused, because the host realpaths workspace paths and Windows cannot resolve drvfs); grep and glob run the distro's own ripgrep. WSL preset twins such as wsl-standard swap in the WSL shell and fs tools. A rebuild of 6Mikao9/dsh-wsl-workspace — do not install both: they mount the same W entry in the Workspaces header, publish the same wsl-<mode> presets, and each wrap the host's single-slot terminal provider.
173787247/dsh-wsl-env★ 3
Injects WSL distro, Linux path mapping, /mnt/c CRLF and git caveats, and NODE_USE_ENV_PROXY into the system prompt.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.