Introduction¶
When running agents in the DSH (DeepSeek Harness) desktop configuration, handling tool permission requests, agent questions, or the end of a conversation turn often requires switching back to the main window. System Toasts mostly only bring focus back to the application, making it difficult to click “Allow” directly on the notification. Furthermore, popups can easily interrupt current tasks during fullscreen gaming or when in Do Not Disturb mode.
This post introduces the community plugin dsh-desk-card (maintainer nanshang328): it draws small, always-on-top cards in the bottom right corner of the Windows screen using PowerShell/WPF (not system Toasts). You can directly approve permissions on the card, be notified of pending questions, and see brief summaries when a turn completes normally. It actively skips drawing during fullscreen or Do Not Disturb modes, handing decision-making back to the standard DSH UI to avoid freezing.
What is this¶
dsh-desk-card is a client-side plugin for DSH, categorized as a desktop-side capability extension. It is injected by the DSH host process and does not rely on the browser side. On the rendering side, each card corresponds to a local PowerShell process; the host side listens for approval, user question, agent status, and error events to launch cards.
- Supports Windows 10/11 only (using the system’s built-in
powershell.exe+ WPF). - Requires DSH desktop profile; Node.js 20+ (consistent with the version bundled with DSH).
- No extra dependencies, no network, no build steps; License MIT (see GitHub Repository).
Community directory page: skillhub.cn/plugins/nanshang328/dsh-desk-card. The directory is an independent site with no official affiliation with DeepSeek or Hithink RoyalFlush. The DSH ecosystem follows the “everything is a plugin” philosophy; please review the source code and license yourself before installing—plugins run with the current dsh process permissions.
Differences from System Toasts¶
The README summarizes the design trade-offs in a table: this plugin’s cards come with buttons and can return approval results; you can confirm/Allow directly on the card; there is an explicit gate check before fullscreen, presentation mode, or Do Not Disturb; and the interface language can follow the DSH locale or be forced to zh / en via configuration.
What Cards Appear¶
| Card | Trigger Timing | Auto-Close | Buttons |
|---|---|---|---|
| Approval | Tool call requires permission | Default: No auto-close (waits for your action) | Confirm / Allow for one-time approval; click card body to open full DSH dialog |
| Question | Agent asks you a question | Closes after answering | Got it |
| Completion | A turn ends normally | Default doneTimeoutSeconds (5 seconds) |
OK |
| Error | A turn fails | No auto-close | Got it |
Completion cards include a short summary of the previous turn’s messages, elapsed time, remaining todo count, and token usage for the turn/session. New cards stack above existing cards without blocking them; when the DSH main window is closed, any open cards will close themselves.
notifyQuestions, notifyErrors, and notifyDone only control whether the corresponding cards are displayed; the approval and question workflows will still function, just without popping up a card.
Installation and Activation¶
Install from GitHub (README original command, requires desktop profile):
dsh plugin --profile desktop add github:nanshang328/dsh-desk-card
If using a locally downloaded or extracted directory:
dsh plugin --profile desktop add ./dsh-desk-card
Restart DSH after installation. The package declares dsh.bundle, so the CLI will write to dsh.profile.bundles and mount it as a normal profile layer; no manual path writing is needed.
Windows developers can copy the working tree to the profile plugin directory and register it similarly:
powershell.exe -File tools/deploy-local.ps1
The target path is %USERPROFILE%\.dsh\profiles\desktop\plugins\dsh-desk-card.
Configuration (Optional)¶
Default values are sufficient for most cases. To change behavior, insert configuration by the same id in the desktop profile’s cordis.patch.yml (~/.dsh/profiles/desktop/cordis.patch.yml). For example, to change the completion card timeout to 10 seconds, scale to 1.0, and set the interface to English:
- insert:
- id: dsh-desk-card
name: dsh-desk-card
config:
doneTimeoutSeconds: 10
scale: 1.0
language: en
config replaces the plugin’s configuration object entirely; unlisted keys will still use defaults.
| Key | Default | Meaning |
|---|---|---|
timeoutSeconds |
0 |
Seconds before auto-closing cards waiting for action (approval/question); 0 means until you handle them |
doneTimeoutSeconds |
5 |
Seconds before auto-closing completion cards; 0 means until clicked |
scale |
1.2 |
Card scale |
skipWhenFullscreen |
true |
Skip drawing when in fullscreen foreground or Windows Do Not Disturb |
notifyQuestions |
true |
Whether to show question cards |
notifyErrors |
true |
Whether to show error cards |
notifyDone |
true |
Whether to show completion cards |
language |
auto |
auto / zh / en |
hostProcess |
DeepSeek Harness |
Process name to bring to foreground when clicking the card |
Fullscreen Gate and Skip Behavior¶
Cards are not drawn if any of the following are true:
SHQueryUserNotificationStatereports a fullscreen app, presentation mode, or Do Not Disturb; or- The foreground window covers the entire monitor and is not the desktop (to mitigate false interruptions when some games hide their true state).
When skipped, approvals are handed to the standard DSH UI (if the plugin has prepend: true, it responds first; if skipped, it delegates to the next answerer). You can self-test using scripts in the repository:
powershell.exe -File test/gate-probe.ps1 -MaxSeconds 20
powershell.exe -File test/fake-fullscreen.ps1 -HoldSeconds 8
How it Works (Schematic)¶
The host half is in lib/index.js: it listens for approval/request, user-questions/request, agent/error, and agent/status, spawns a card for each event, and maps the child process exit code to the approval result. The rendering half is in scripts/card.ps1: it runs gate checks, draws WPF, stacks windows, and exits after timing out; one process per card.
| Exit Code | Meaning |
|---|---|
10 |
Main button pressed |
12 |
Clicked card body—bring DSH window to foreground |
0 |
Gate skipped (fullscreen/Do Not Disturb) |
3 |
Rendering failed |
One process per card ensures the rendering side is stateless and doesn’t drag down the host; if the process is killed by the system, decisions are also delegated.
Logging and Troubleshooting¶
Log path: %TEMP%\dsh-desk-card.log, recording layout, exit codes, configuration, and gate decisions. Cards have no console window; if they never appear, check in the README’s order: fullscreen occupying the gate (try temporarily setting skipWhenFullscreen: false), PowerShell execution policy for the DSH process, and the logs.
To bypass the host and manually render a test card:
$payload = [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes('{"badge":"test","head":"hello","body":"line","okLabel":"OK","okCode":10}'))
powershell.exe -File scripts/card.ps1 -Payload $payload -TimeoutSeconds 5 -Scale 1.2 -SkipWhenFullscreen false -DebugLog "$env:TEMP\card-test.log"
Use Cases and Limitations¶
Suitable for: Users primarily using DSH on the Windows desktop profile who want to approve tool permissions, perceive questions, and know when turns end/fail while away from the main window, without wanting hard popups during fullscreen games or Do Not Disturb.
Notes:
- Windows only; no macOS/Linux paths.
- Cards are normal top-level windows and cannot cover exclusive fullscreen games—hence the gate.
- Each card has a PowerShell cold start of about 100 ms; it is not a notification center entry and disappears when closed.
- This plugin is not responsible for restarting or closing DSH; for power capabilities, see other community plugins (README mentions dsh-power-button and dsh-restart).
- Privacy: The host does not open sockets or read files; it spawns local PowerShell for each card and appends a line to
%TEMP%\dsh-desk-card.log. The payload contains short session excerpts (task titles, tool names, approval reasons, error messages, etc.) passed to the child process via command line.
Conclusion¶
Through the steps above, you can use native cards in the bottom right corner of the DSH desktop to handle permissions, questions, and turn feedback, while automatically yielding to the main interface flow during fullscreen/Do Not Disturb. For details and screenshots, see the GitHub README, and for the directory index, see the SkillHub Plugin Page.