Introduction¶
DeepSeek Harness (DSH) requires permission approval when invoking external tools, and by default this is displayed in its panel. For scenarios requiring high-frequency, fine-grained control over Agent execution behavior, this centralized approval flow may not be intuitive enough. This plugin intercepts requests before DSH’s built-in approval UI, presenting the command and permissions in a floating overlay card within the browser, and supports “Allow Once” or “Deny.”
What It Is¶
dsh-approval-bubble is an approval bubble plugin for DeepSeek Harness, maintained by qiuyifei7799, categorized under admin-security. It listens to DSH’s approval/request event, uses prepend to position itself ahead of the native approval UI, and displays a card in the bottom-right corner showing the specific command / path / URL to be executed, the tool in use (e.g., pwsh), and the permission level (full access, workspace write, read-only). The user can click “Allow Once” or “Deny” for immediate effect; if no action is taken within 120 seconds, the request automatically falls back to DSH’s native approval panel.
Core Features¶
- Browser overlay display: Shows the approval card in the bottom-right corner of the current page. No dependency on any desktop companion plugin — it’s a pure web overlay.
- Clear command and permission display: The first line shows the specific command / path / URL; the second line shows the tool name and permission level (danger-full-access, workspace-write, read-only).
- Instant response: Clicking “Allow Once” / “Deny” takes effect immediately and applies only to the current invocation.
- Timeout fallback: If no action is taken within the default 120 seconds, the request reverts to DSH’s native approval panel. The timeout can be extended via configuration.
- Request abort: When the user dismisses the card (Stop / Esc), the request is aborted and the card collapses automatically.
Installation & Activation¶
Install from the marketplace
Search for dsh-approval-bubble in DSH’s “Plugins → Discover,” or run the command directly:
dsh plugin install dsh-approval-bubble
Local development install
cd ~/.dsh/profiles/desktop
pnpm add "link:<absolute-path-to-this-directory>"
Then insert the following into the profile’s cordis.patch.yml:
- insert:
- id: dsh-approval-bubble
name: 'dsh-approval-bubble'
Restart DSH. The host logs will show:
[dsh-approval-bubble] ready: approval requests will first ask the browser overlay bubble
[dsh-approval-bubble] asked approval-bubble-... tool=pwsh detail="to execute: ..."
[dsh-approval-bubble] settled ...: allowed-once
Typical Usage¶
Configure in cordis.patch.yml:
- name: 'dsh-approval-bubble'
config:
timeoutMs: 300000 # 5 minutes
timeoutMs is in milliseconds, defaulting to 120000 (120 seconds), with a valid range of 1000 ms to 6 hours. When the timeout elapses with no action taken, DSH’s native approval panel takes over.
Use Cases & Cautions¶
- Suitable for developers who need high-frequency, fine-grained approval when the Agent executes external commands.
- The plugin runs with the current DSH process’s permissions. Approval requests are passed only between the local browser and the host, with no interface authentication. It is not recommended to enable this on machines with shared accounts.
- The plugin will never auto-approve any request. Only when the user clicks “Allow Once” will
allowed-oncebe returned. - Do not install this alongside other plugins that render approval in a desktop companion bubble. Both will compete for the first position in
approval/request, leading to unpredictable behavior.
Conclusion¶
dsh-approval-bubble provides a lightweight, visual approval overlay for DeepSeek Harness, making the Agent’s privilege-escalation requests transparent at a glance. For more details, see the plugin directory page and the GitHub repository.