Introduction

Running a long task on DeepSeek Harness (DSH) usually results in the agent working in the background. You don’t know when it will pause to ask for permissions or answers, leaving you staring at the session page. If you want to switch to do something else but are afraid of missing notifications, you’ll have to scroll through the context when you return.

dsh-client-deep-sneak solves this problem differently: it places a Bilibili mini-window in the bottom-right corner of the DSH Web page. You can watch videos while waiting for results; once the agent needs you, the video automatically pauses and a reminder pops up. When you come back to handle it, it resumes playback from the exact original position. Below is an introduction to the plugin’s features, installation, and typical usage.

What is This?

dsh-client-deep-sneak (Project name: DeepSneak) is a DSH Web platform client plugin maintained by Rain-Shuoyu, currently version v0.12.0, licensed under MIT. It solves a specific problem: allowing you to watch Bilibili while “waiting for the agent to work,” without losing awareness of the agent’s state.

Environment requirements:

  • DeepSeek Harness (DSH) Web platform
  • Node.js ≥ 18

Core Features

Playback and Content

  • Homepage recommendation stream: Bilibili’s real recommendation stream, login-free, click any card to enter playback.
  • Native player: Drag progress, speed control, and progress are controllable.
  • Scrolling Danmaku (bullet comments) synced with playback: The Danmaku layer is a lightweight implementation drawn by the plugin, supporting scrolling, top, and bottom styles, with adjustable color and font size.
  • Comment section browsing: Located below the playback page, supports loading more.
  • Related recommendations: Horizontal swipe to change clips, playback not interrupted.
  • Keyword video search: Results include duration, plays, and Danmaku count, supports pagination.
  • Watch history: Locally records up to 50 items. Unwatched items resume from the last progress; watched items start from the beginning next time.

Agent Integration

This is what differentiates the plugin from a normal web video player. It uses session snapshots (useSessions) to real-time perceive the agent’s state, covering four types of events: completion, blocked, permission request, and question. When triggered, the video automatically pauses, an overlay is applied, and a Toast notification pops up. There is also a status badge on the dashboard, showing “Working”, “Idle”, or “Needs you”.

The pause implementation works by calling pause() on the <video> element when reminded. The element remains mounted, and progress isn’t lost. After clicking “Continue Watching Video”, play() is executed to restore playback from the original position.

Slacking-off Assistant

  • Slacking-off statistics: Four dimensions for today, this week, cumulative, and last 7 days, only counting time while playing.
  • Day/Night dual theme: One-click switch.
  • Preferences: Themes, Danmaku toggle, comment toggle, etc., are automatically saved to localStorage.

Installation and Enablement

One-click install: Execute in the DSH deployment directory (the profile containing cordis.yml, for example ~/.dsh/profiles/web):

dsh plugin --profile web add dsh-client-deep-sneak

If you have dsh-market installed, you can also search for “DeepSneak” in Settings → Plugin Market for one-click installation.

Manual installation involves three steps.

Step 1: Install dependencies in the deployment directory:

cd ~/.dsh/profiles/web
npm install dsh-client-deep-sneak

Step 2: Edit cordis.patch.yml in that directory, appending an insert entry:

- insert:
    - id: deep-sneak
      name: dsh-client-deep-sneak

Step 3: Restart DSH Web:

npx @deepseek-ai/dsh web

Refresh the page, and the DeepSneak mini-window appears in the bottom right. No configuration is needed; install and use.

Typical Usage

  1. Open the homepage recommendation stream, click any card, the native player plays automatically, and Danmaku scrolls in sync.
  2. To watch specific content, enter keywords in the search box at the top of the dashboard. Result cards include duration, plays, and Danmaku count, and support pagination.
  3. Start the agent working while watching videos and waiting.
  4. When the agent needs you, the video pauses automatically and a semi-transparent overlay appears as a reminder. Click “Back to Conversation” to handle it.
  5. After finishing, click “Continue Watching Video” to resume playback from the exact original position.
  6. The title bar allows switching between Day/Night themes and viewing today’s, this week’s, and cumulative slacking-off duration.
  7. Click the Watch History entry to view the latest 50 records. Unwatched items resume from the last progress.

How it Works

The plugin works in two halves. The Client half runs inside the DSH Web page, responsible for the bottom-right mini-window, recommendation stream, player, and the self-drawn Danmaku layer. The Host half provides three same-origin proxy routes, used only to fetch Bilibili public content:

/dsh-bili/api     JSON (recommend / play / comments)
/dsh-bili/dm      Danmaku XML (gzip decompression)
/dsh-bili/media   Video stream (Range support for drag-and-drop resume)

Slacking-off statistics accumulate real playback duration, persisted locally. Watch history progress is stored only in the current browser’s localStorage, being flushed to disk on pause, video switch, and every 30 seconds. When playback finishes, progress resets to zero but the record is kept, starting from the beginning next time. All data is local; no data is uploaded.

Suitable Scenarios and Notes

Suitable scenarios: You frequently run long tasks in DSH that require waiting, want a distraction window that doesn’t interrupt your workflow, and don’t want to lose awareness of the agent’s state.

Things to know before using:

  • Resolution: Maximum resolution is 720p. This is a restriction of the unauthenticated Bilibili API. If you need HD quality or full Danmaku features, it is recommended to use the Bilibili web version simultaneously.
  • Danmaku Implementation: The Danmaku is a lightweight layer drawn by the plugin, not an iframe. The style is minimalist. This is done to guarantee “precise resume” — without relying on an iframe, playback progress can be restored losslessly after pausing.
  • Douyin Support: Not supported. www.douyin.com returns X-Frame-Options: DENY and CSP whitelist, so it cannot be iframed, and its API also requires signature authentication.
  • Roadmap: There are incomplete items on the roadmap, such as slacking-off goal reminders, and Danmaku density and font speed adjustment.

Security: The plugin runs with the permissions of the current dsh process. It is recommended to check the source code and license before installing. The project source code and MIT license are publicly available on GitHub. The client bundle is pure hand-written JavaScript with no build steps, making it easy to read.

Conclusion

dsh-client-deep-sneak does something not complex, but tightly couples two things: the Bilibili window is responsible for filling the waiting time, and the session snapshot is responsible for pulling you back when you are needed. If long tasks make up a high percentage of your daily workflow, you can give it a try.

  • Plugin directory page: https://www.skillhub.cn/plugins/Rain-Shuoyu/dsh-client-deep-sneak
  • GitHub repository: https://github.com/Rain-Shuoyu/dsh-client-deep-sneak