Shows a focus-free notice card in the corner when a turn ends or DSH is waiting on an approval or a question.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-notice-card
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Maple-Yoli/dsh-notice-card
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
Notice Card
Notification cards for the DeepSeek Harness desktop app: when a turn ends, when DSH waits for an approval, or when it waits for an answer, a card appears in a corner of the screen.
Desktop only. The card is a native Windows window and needs no browser. There is no web half: no browser notifications, no in-page overlay, no tab-title marker.
简体中文 · English
Features · Install · Config · How it works · FAQ · Uninstall


Features
A card appears when one of three things happens:
- A turn finishes
- DSH waits for you to approve a tool call
- DSH waits for you to answer a question
The card sits above other windows but never takes focus. You can keep typing; while one program owns the whole screen nothing is drawn, and it is raised once you leave fullscreen.
Appearance
- Follows the system theme — dark surface with light text on dark, the other way round on light. The theme is read once per card, so a card raised after you switch already has the new colours. Both sets are fixed constants — dark
#2B2B2Bsurface /#FFFFFFprimary /#CFCFCFsecondary, light#FFFFFF/#1A1A1A/#5F5F5F— measured off the Windows Settings app. uxtheme is no longer consulted: it only ever answers pure black or pure white, and cannot give the raised surface Settings actually uses. - High contrast takes over — with high contrast on, the card borrows the system's own window and text colours instead of guessing at a variant.
- Text is drawn with greyscale antialiasing into a black buffer, then flattened — white on black into a scratch buffer at twice the card's pixel size, then every pixel's coverage is read back and interpolated between the surface colour and the ink colour. ClearType is not used: it parks a stem's coverage on one subpixel column, so the same stroke reads five times brighter or darker depending on which column it landed on, and after flattening to grey that is exactly what "neighbouring stems disagree" looks like at small sizes. Greyscale is a true per-pixel area, so the stem-to-stem spread falls to 0.05–0.08 (from 0.11–0.13). The extra samples give glyph outlines a real ramp instead of a one-pixel step: hard jumps fall to 0.25–0.28 of all edges (from 0.44–0.48). Sizes are whole pixels, and line height and wrap width come from the same engine that paints, so a line never measures as fitting and then gets clipped.
- Typeface follows the interface language — Noto Sans SC (falling back to Microsoft YaHei UI) for Chinese, Noto Sans JP / Yu Gothic UI for Japanese, Noto Sans KR / Malgun Gothic for Korean, Segoe UI otherwise. The headline takes one heavier master of the same family (SemiBold, or Medium where the family ships no SemiBold) and the body keeps the regular master — a weight the font actually draws rather than a thickened outline. One notch only: a Black headline at this size reads as smeared, and a Medium body widens every stem until the paragraph looks emboldened. In a right-to-left language (Arabic, Hebrew) the two corner buttons mirror to the top-left.
- The body box is counted in lines, six of them — the card does not grow or shrink with the length of the text: six lines is a constant, and a short notice simply leaves space below. That keeps a stack even-edged and makes every card compute the same "how many fit here". Leading is 1.4em (the font's own line box asks 1.45, which reads airy for a paragraph), snapped to whole pixels so the tenth line lands where the first predicted.
- The edge is directional, not uniform — the rounded
Regionclips the window, so a drop shadow cannot be drawn inside it; the lift instead comes from a 1px vertical gradient rim that starts near the surface colour at the top and sinks close to black at the bottom, all the way round. That reads more like a sheet of paper than a hairline of equal weight on all four sides, and it never produces the pale rim that instantly gives a dark card away as somebody else's window. The rim is made by filling the outer rounded rect with the gradient and punching the surface back out, not by stroking with a gradient pen: GDI+ only honours a gradient brush along part of a stroked path, which leaves three edges bare. - Each rung of the stack sinks — the second and third card sit a notch darker than the front one (about 4% per rung in light, 8.5% in dark), and the fourth and beyond stop darkening so the far end of a stack does not collapse into a hairline. A stack therefore reads front-to-back instead of reading as one card drawn with three edges.
- The scrollbar fades — when the body runs past six lines a 2px track and 4px thumb appear on the right; 400ms after scrolling stops they begin to fade and are gone within 260ms. Scrolling or dragging brings them back. No grey stripe outlives the reason it appeared.
- The corner buttons rest on a wash — the window icon and the ✕ carry a very faint rounded fill at rest (alpha 0x06 in light, 0x0A in dark) and deepen to the old hover colour under the pointer. Faint enough not to compete with the headline, strong enough to read as a hit area.
- The buttons share the moment's row — the two corner buttons sit on the timestamp line and start flush with it, instead of taking the right end of the headline. Both the clock row and the headline row therefore come free at the right. In the bottom corners that row is the card's top one, in the top corners its bottom one, so the pair follows the timestamp in either layout.
Position and size
- Lands on the monitor under the pointer — a second screen does not lose the card.
corner: autocopies the shell: a bottom taskbar keeps cards bottom-right, a top one moves them top-right, a left one sends them bottom-left. - Or pin one of four corners —
top-left/top-right/bottom-left/bottom-right. The top two sit flush with the screen edge, the bottom two rest on the taskbar, computed from the working area so a left or top taskbar lines up too. - Scales with the monitor width — no card covering a third of a small laptop, no postage stamp on a 4K wall. Text has a floor.
- Grows with the text size — bump Settings → Accessibility → Text size and the whole card grows instead of squeezing the text into the old box.
- Stacks into a deck — the oldest card sits in front and fully visible, the rest show only their title. As many as fit, and never one off the edge of the screen.
Clock and session
In a deck each card shows only the narrow band against the screen edge, so the moment, the session name and the card's headline all live in that band: with the card in one of the two bottom corners the band is the card's top two rows (the moment first, 14:37 · session name, with the session id's first six characters when there is no generated title yet, then the headline); in the top corners the band is at the bottom, so the same two rows are the last ones. The band is measured from those two rows, so it keeps holding all three however large the type or however wide the card. Right-to-left languages mirror the whole strip.
- The moment — in your own short-time pattern (
2:35 PMon a 12-hour region,14:35on a 24-hour one). - The session name — on the same row as the moment, running from behind it to the two buttons at that row's right end, truncated with
...when long. - The permission mode — the same name the app's permission dropdown shows, display only, written on the row furthest from the band so it shows when the card is fully expanded.
Behaviour
- Never takes focus — focus stays in the window you were using. Typing and video playback are unaffected.
- Nothing is drawn while a game owns the screen, and it is raised afterwards — D3D exclusive, presentation mode, and borderless games that have taken the presentation path all count. Letting any window appear or disappear over such a surface forces the compositor to leave that path and rebuild: the screen goes white for a frame, a frame is dropped, and the mouse cursor pops out mid-fight. So no window is built while it lasts; notices queue up instead and are raised one at a time, in arrival order, once the screen is free again, with a gap between them so the desktop is not buried. Go fullscreen again and the cards already up take themselves down while the queue keeps waiting. Nothing waiting is lost: approval and question requests are still in DSH's own window, and a turn-end card waits as long as it takes for you to leave fullscreen.
- Quiet hours suppress the interruption — while Windows is in a do-not-disturb state (focus assist, presentation mode) a turn-end card is not drawn. Approval and question cards still appear: that is the conversation waiting on you.
- Animations off means no motion — with Show animations in Windows off, or the machine in battery saver, the card lands in place instead of sliding and fading. Decided per card, so changing the setting affects the next one.
- The buttons are as tall as their row — the button height is the timestamp band's height (16 units minimum), so the glyphs sit level with the clock at every type size instead of standing taller than the row they belong to. A touch screen gets no hover highlight, and wheel scrolling follows your mouse settings rather than a hard-coded three lines.
- Always on top — when another always-on-top window competes, Windows may put the card behind.
When a card goes away
- Turn-end card — fades out after
seconds, no click needed. - Approval and question cards — never expire on their own. A request can be settled while you never saw the card (a stopped turn, an auto-deny policy, a remote client answering for you), and a card that vanished with it would make the conversation look stuck. So it fades out only when the request has been answered and the DSH window has been in front around that moment, with a 1.2 second minimum so it never flashes away.
- Click ✕ — dismiss immediately. Click the window icon to bring DSH to the front.
- Past the stack cap — the oldest card is closed by the arriving one.
Requirements
Desktop only, no web build. The card is a native window drawn on the Windows machine running DSH, not through a browser. The package has no web half, so browser notifications, in-page overlays and tab-title markers are all absent. For browser-side reminders, use a plugin that ships a client half, such as dsh-notify-me.
| Item | Requirement |
|---|---|
| Form | The desktop app (DeepSeek Harness.exe), or a DSH host running on the Windows machine you look at |
| OS | Windows |
| DSH | 0.1.0-rc.1 or newer |
| Node | 20 or newer (only used when DSH loads the plugin) |
| .NET Framework | 4.x, ships with Windows, nothing to install |
If you only drive DSH from a browser, the card still draws on the machine that hosts DSH. With the host on a remote server, the card lands on that server's desktop and you never see it.
Install
Four ways. Pick the one that matches your DSH setup, and do not use two at once, or every event draws two cards.
Option 1: from npm
npm i dsh-notice-card@0.3.1
Then add this at the end of cordis.patch.yml in your profile directory (by default %USERPROFILE%\.dsh\profiles\<profile name>\):
- insert:
- id: notice-card
name: C:/the directory where you ran npm i/node_modules/dsh-notice-card/lib/index.mjs
config: {}
name: must be a full absolute path, with / as the separator.
Option 2: clone the source
Use this one if you want to change the code.
git clone --branch v0.3.1 https://github.com/Maple-Yoli/dsh-notice-card.git
- insert:
- id: notice-card
name: C:/the directory you cloned into/dsh-notice-card/lib/index.mjs
config: {}
DSH loads a newly added id immediately, no restart needed. If nothing happens, quit DSH completely and open it again.
Option 3: the official desktop app
The desktop app manages its own desktop profile, so the command-line dsh plugin --profile desktop add is refused there.
In the app, open Settings → Plugins and enter the repository:
Maple-Yoli/dsh-notice-card
It mounts automatically afterwards; you do not edit the patch file.
Option 4: a profile you created yourself
dsh plugin --profile <your profile> add dsh-notice-card@0.3.1
You can also use the GitHub source instead of npm:
dsh plugin --profile <your profile> add github:Maple-Yoli/dsh-notice-card#v0.3.1
The dsh.bundle.patch field in the package is added to the profile's dsh.profile.bundles for you.
This option only helps when the host runs on this same machine. With the host on a remote server, it makes no difference which profile you install into: the card draws on the server's desktop.
Config
Configuration goes in the patch's config: block. For example, to turn off the turn-end notice and keep it up for 20 seconds:
- insert:
- id: notice-card
name: C:/the directory you cloned into/dsh-notice-card/lib/index.mjs
config:
onTurnEnd: false
seconds: 20
| Key | Default | Meaning |
|---|---|---|
onTurnEnd |
true |
Draw a card when a turn finishes |
onApproval |
true |
Draw a card when DSH waits for a tool approval |
onQuestion |
true |
Draw a card when DSH waits for an answer |
seconds |
10 |
How many seconds the turn-end card stays. Approval and question cards ignore it |
turnEndTitle |
任务已结束 |
Title of the turn-end card |
turnEndBody |
DSH 已完成本轮任务,等你下一步。 |
Body of the turn-end card |
approvalTitle |
等你审批 |
Title of the approval card |
approvalBody |
工具:{tool}{reason} |
Body template. {tool} is the tool name, {reason} the approval reason |
questionTitle |
等你回答 |
Title of the question card |
questionBody |
问题:{question} |
Body template. {question} is the question text |
processName |
inferred | Which process to switch to when you click the window icon |
appPath |
inferred | Which exe to launch when that process is not running |
corner |
auto |
auto follows the taskbar, or pin top-left / top-right / bottom-left / bottom-right |
maxStack |
3 |
How many cards may be up at once (1–8); the oldest closes past that. The screen height still decides what fits |
fontSize |
100 |
Type size in percent (80–160). Only the glyphs grow: the card's width, height, line spacing and band positions stay put |
processName and appPath are inferred from the DSH process; on the desktop app they are DeepSeek Harness and its exe path. Leave both empty and clicking the window icon only closes the card.
Changing corner, maxStack or fontSize edits the config of an already-loaded plugin, so it takes a full DSH restart, not a reload.
How it works
- Three events —
agent/turn-stopping(turn finished),approval/request(waiting for approval),user-questions/request(waiting for an answer). - It draws, it does not answer for you — the approval and question listeners sit at the front, and the card calls
next()right away, handing the request back to the panel that answers it in the app. The answer stays yours to give there; the card watches the request and leaves once it is answered. - The footer reads from the host — the session name comes from
sessionTitle(falling back to the first six characters of the id), the permission name from the preset catalogue behindpermissionPresets. If a service is unavailable its line is simply not written and the card still appears. - Everything else is read from the system per card — the theme (
AppsUseLightTheme), high contrast, the animation setting (SPI_GETCLIENTAREAANIMATION), battery saver (GetSystemPowerStatus), the text scale (TextScaleFactor), touch input (SM_DIGITIZER), the wheel scroll lines (SPI_GETWHEELSCROLLLINES), which edge the taskbar is on, the interface language and the do-not-disturb state (SHQueryUserNotificationState). Any of them failing to read falls back to a safe default rather than costing you the card. - Each corner is its own deck — the card file name carries a corner tag (
-br,-tl), so cards at different corners never count each other. - One process per card — each card is its own
card-<hash>.exeprocess; nothing is resident. A card that crashes takes only itself down. About 100ms from spawn to on screen; the very first card also compiles the exe once, which adds roughly 150ms. - Queued while a game owns the screen, not dropped — a queued card builds no window. Its process leaves a
<arrival>-<pid>.waitfile in place, waits there, and builds the window only once the screen is free again, in arrival order. Nothing is on screen while it waits, which is why the game below is never interrupted. The wait has no deadline; it ends with the session. - The motion — a 4ms private-message pump, not
WM_TIMER, so it stays a continuous glide on a high-refresh display. - Compiled once, then reused — the first card compiles
lib/card.cswith thecsc.exethat ships with Windows and stores the exe in%LOCALAPPDATA%\dsh-notice-card\. It recompiles only when the source content changes.
Try a card on its own
$card = (Get-ChildItem "$env:LOCALAPPDATA\dsh-notice-card\card-*.exe" | Select-Object -First 1).FullName
& $card --title "Title" --body "Body" --seconds 8 --corner top-left --session "demo" --preset "workspace-write"
This needs a card-*.exe to already exist in the cache directory; if there is none, run one DSH turn to trigger the first compile. --corner, --max-stack, --session and --preset are all optional.
FAQ
I use DSH from a browser. Will I get cards?
No. The card is drawn on the Windows machine that runs DSH, not through a browser. With dsh web open on another device, or the host on a remote server, the card lands on the host's desktop and you never see it. For browser-side reminders, use a plugin that ships a web half, such as dsh-notify-me.
No card appears
- Run the command above to draw a card on its own. If that works, the card is fine and the plugin is not mounted
- Check that the path in
cordis.patch.ymlname:exists and ends inlib/index.mjs - You edited the patch and nothing happened: DSH hot-loads only newly added
ids. Changing an existingidtakes a full restart - Only one card appears and later ones do not: check whether you mounted the plugin two ways
Nothing appears while I am playing
That is deliberate, not a fault. A window appearing or disappearing over a full-screen game makes the picture flash white, drop a frame and pop the cursor out, so none is built while the screen is taken: the notices queue up instead and are raised in arrival order once you leave fullscreen, however long that takes. To see them, switch the game to windowed or drop out of fullscreen.
Chinese text turns into garbage
lib/card.cs is UTF-8 source without a BOM, and the compiler takes literals from the file as they are. Garbage usually means an editor read the file as GBK and wrote it back as UTF-8. Reopen it in VS Code, save as "UTF-8 without BOM", and it is back to normal.
I want to change how the card looks
Colours, font sizes, corner radius, animation length and stacking gap are all in lib/card.cs. No reinstall needed: once the file content changes, the next card recompiles automatically.
Uninstall
- Delete the
- insert:block fromcordis.patch.yml(options 1, 2, 4), or uninstall from Settings → Plugins (option 3) - Delete the cache directory
%LOCALAPPDATA%\dsh-notice-card\ - Optionally delete
node_modules/dsh-notice-card(option 1) or the cloned directory (option 2)
Privacy
- No network requests, no statistics
- No collection of your paths, user name or conversation content
- The only interaction with DSH is the three events above. A card shows only the tool name and question text those events carry
- The compiled exe lives in
%LOCALAPPDATA%\dsh-notice-card\, deleted along with it on uninstall
Changelog
What each version changed and fixed is in Releases, in both Chinese and English. Worth a look before you upgrade.
Feedback
Found a bug or have an idea? Open an issue at Issues.
Please include your Windows version, DSH version, which card it was (turn end / approval / question) and the steps to reproduce. A screenshot or recording is best.
License
Links
More in this category
xmanrui/dsh-im★ 3909
Connect IM bots to DeepSeek Harness via QR codes or bot credentials (9 channels: Feishu, WeChat, DingTalk, WeCom, QQ, Slack, Telegram, Discord, and WhatsApp).
shaobeichen/dsh-pocket★ 3221
Remote phone access to the DSH Web UI: scan a QR code for LAN or public (cloudflared tunnel) access with real-time sync, a mobile-adaptive layout, and a settings tab.
c1overzz/dsh-bili-scroll★ 1487
Let your DSH agent browse Bilibili on its own, read subtitles, write a daily digest, and @ you when it finds something worth your attention.
OpenPetsHQ/openpets#dsh★ 1421
Bridges DeepSeek Harness lifecycle status, errors, and approval requests to a locally running OpenPets desktop companion.
inclusionAI/Avernet#deepseek-harness-channel-bcn★ 612
Connects DeepSeek Harness to Avernet's Bot Collaboration Network over WebSocket V2, with automatic onboarding, isolated agent sessions, tool-call events, and multi-bot routing tools.
zaofan-make/dsh-qqbot★ 289
QQ official bot channel (enhanced fork of tencent-connect/dsh-qqbot): full agent chat in groups and DMs, rich media, an auto-tagged sticker library with AI image replies, join approval, mute and broadcast, scheduled wakeups, remote approvals over QQ, interactive cards, multi-account instances, extensions, member profiles, and token-saving value-scored wakeups.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.