DSH Plugin: Auto-Open a Douyin Floating Window While the Agent is Working

Introduction

When using DeepSeek Harness (DSH) for task orchestration, there are times when the Agent needs to access Douyin (TikTok China) to accomplish specific goals, such as browsing videos, collecting data, or executing automated workflows. However, Douyin refuses iframe embedding, and manually logging in each session is costly and prone to expiring. DSH provides built-in browser capabilities, and this plugin wraps them into a native floating-window entry point, allowing the Agent to automatically launch Douyin during work and automatically close it with a notification once the task is done.

What This Is

This is a DSH plugin: the Agent automatically opens Douyin when it starts working, displaying it as a floating panel on the interface; when the task ends, the window closes automatically and a “Work finished” toast appears in the top-right corner. The plugin does not use iframes—instead, it opens a native tab via DSH’s built-in browser and then floats it into a draggable panel. It supports session persistence, floating-window manipulation, and a manual entry point.

Maintainer: peakSoar; Category: Web Tools.

Core Features

  • Auto-open: When any session starts a turn, the Douyin tab is opened/activated and floated into a panel (including the case where the Agent is already busy right after the page loads).
  • Auto-close: After all sessions go idle, the Douyin window closes with a 1.5-second delay (preventing flicker during multi-turn or resumed runs).
  • Completion toast: A “Work finished” notification appears in the top-right corner simultaneously with the close, disappearing after 6 seconds; clicking “Watch a bit more” reopens it.
  • Session persistence: Uses DSH’s built-in browser (Electron webview). Scan a QR code or log in with a phone number once, and the login state persists across restarts.
  • Floating-window operations: Native overlay panel that can be dragged, resized, and docked back to the right sidebar, managed by DSH’s dockkit.
  • Manual entry: A small capsule labeled “Douyin” in the bottom-right corner opens the window; the gear icon leads to settings. The entry can be turned off when not needed.
  • Configurable: Opening URL + four toggles for auto-open / auto-close / completion toast / entry visibility.
  • Bilingual UI: The UI follows the DSH host language (Chinese / English) and switches in real time.

Installation & Activation

Prerequisites: DSH ≥ 0.2.1-rc.2, Desktop edition (built-in Browser is enabled by default on Desktop).

Install command:

dsh plugin --profile desktop add github:peakSoar/dsh-annimation

After installation, restart DSH and perform a hard refresh of the page for changes to take effect. The repository ships with pre-built lib/ artifacts, so no build step is required when installing from source; if you need to modify the source code, run pnpm run build.

Typical Usage

  • Send a message: the Douyin floating window appears automatically (the first time it will prompt for login; after logging in, you land directly on the For You feed).
  • Task ends: the window closes + a toast notification appears in the top-right corner.
  • Want to browse manually: click the “Douyin” capsule in the bottom-right; in the settings (gear icon) you can change the URL, toggle the auto open/close switches, or open the window immediately.
  • Closing only affects the current round: the next round will reopen it automatically.

Use Cases & Notes

Suitable for scenarios where the Agent needs sustained access to Douyin to complete tasks, such as automated video browsing, data collection, or testing workflows. The plugin runs with the current DSH process permissions; it is recommended to review the source code and license before installing.

The plugin does not scrape or proxy Douyin content, nor does it modify any pages—it only provides a browser entry point and floating-window management.

In Summary

This plugin combines DSH’s built-in browser and floating-window capabilities to provide the Agent with a natively loggable, operable Douyin entry point, well-suited for automated tasks that require sustained access to Douyin. See the links below for the catalog page and source code.

  • Plugin catalog: https://www.skillhub.cn/plugins/peakSoar/dsh-annimation
  • GitHub: https://github.com/peakSoar/dsh-annimation
  • The repository ships with pre-built lib/ artifacts, so no build step is required when installing from source; if you need to modify the source code, run pnpm run build.
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye