Preface¶
When working with workflows in DeepSeek Harness (DSH), a common requirement arises where users watch courses in their browser and want the Agent to continuously perceive “what they are currently watching,” organizing fragmented viewing records into searchable and exportable study materials. Manually noting titles and subsequently visiting Bilibili to supplement descriptions and subtitles is costly and difficult to archive by subject.
The plugin introduced below is designed for a Windows desktop environment: it periodically reads the title of the foreground browser or video client window, uses an LLM to determine if the content has educational value and classify it by subject, and attempts to fetch descriptions, subtitles, bullet comments (danmaku), and comments from Bilibili for summarization. Finally, it generates Word study handbooks categorized by subject and an overview document featuring Mermaid mind maps.
What is this¶
dsh-video-coursemap is a community-maintained DSH plugin (maintained by linner1224), categorized as a “Workflow” in the SkillHub Plugin Directory. In one sentence, it is a Video Course Knowledge Map Agent—it observes foreground playback, identifies courses, archives them by subject, and outputs Markdown + Mermaid knowledge maps along with Word study handbooks.
For source code and instructions, see GitHub: linner1224/dsh-video-coursemap. The plugin is released under the MIT License; it is recommended to review the source code and license yourself before installation. The plugin runs under the DSH process privileges and involves window reading and network scraping, so the deployment environment must match these requirements.
Core Features¶
The capabilities explicitly defined in the documentation are as follows:
- Foreground Window Polling: Polls the foreground window (browser or video client) every 15 seconds by default to identify video titles and strip platform suffixes.
- Content and Subject Determination: Uses an LLM to determine if the content possesses “knowledge value” (courses, tutorials, popular science, documentaries, reviews, knowledge sharing, etc.) and classifies it by subject.
- Bilibili Content Supplementation: Reverse-looks-up Bilibili videos by title to scrape descriptions, subtitles, bullet comments, and comments for summarization; if this fails, it automatically degrades to using only the title.
- Document Output: Generates
学习手册.docx(Study Handbook) for each subject; generates课程总览.docx(Course Overview) in the root directory (containing Markdown and Mermaid mind maps); internal state and Markdown sources are saved in.state/. - Agent Tools: Provides two tools,
course_map_statusandcourse_map_scan, for querying status or triggering scan operations within the Harness (specific parameters depend on the implementation; see repository documentation).
The current version in package.json is 0.2.0.
Installation and Activation¶
In an environment with a configured DSH desktop profile, use the installation command provided in the README (do not construct other forms of dsh plugin add yourself):
dsh plugin --profile desktop add github:linner1224/dsh-video-coursemap
After installation, you can enable it in the plugin configuration and adjust polling and output directories. An example configuration is as follows:
- id: dsh-video-coursemap
name: dsh-video-coursemap
config:
enabled: true
pollIntervalMs: 15000
stablePolls: 2
fetchContent: true
outputDir: null # null → <User Directory>/课程知识地图
Description of the field meanings:
pollIntervalMs: Polling interval, default is 15000 milliseconds.stablePolls: Number of consecutive polls required to determine title stability, default is 2.fetchContent: Whether to attempt scraping Bilibili descriptions, subtitles, etc.; if off, it relies more on titles.outputDir: Output root directory; whennull, uses the “课程知识地图” (Course Knowledge Map) folder under the user directory.
Typical Usage and Output Structure¶
After enabling the plugin and keeping the target browser or video client in the foreground, the plugin will identify the current video in the background according to the interval and accumulate classification results. Following the steps above, you can view the artifacts in the output directory specified in the config (or the default <User Directory>/课程知识地图):
<outputDir>/<Subject>/学习手册.docx: The separate handbook for that subject.<outputDir>/课程总览.docx: The overview of all subjects.<outputDir>/.state/: Internal state and Markdown source files, convenient for troubleshooting or secondary processing.
In Agent conversations, you can call course_map_status to understand the current mapping state, or use course_map_scan to perform scans in conjunction with workflows (subject to the repository README and implementation).
Use Cases and Limitations¶
Who is it for
- DSH users who mainly watch courses on platforms like Bilibili via browser or client foreground on Windows, and wish to automatically accumulate Word handbooks and mind map overviews by subject.
- Users who want to connect “viewing behavior” to Harness workflows rather than manually copying titles every time.
Limitations to note (from the official README)
- Windows Only: Foreground window reading relies on PowerShell and
user32.dll; other systems cannot use the same mechanism. - Foreground Playback Required: Identification only occurs when the current foreground window is a browser or video client; background or minimized playback cannot be detected.
- Bilibili Related: The Bilibili AI summary interface requires login, and the documentation marks it as currently unavailable; the anonymous comment interface is capped at 3 items, so the depth of summarization may be limited by the scraping results.
The DSH ecosystem philosophy is “Everything is a Plugin”; SkillHub is a community directory site with no official affiliation with DeepSeek or Hithink RoyalFlush. This article serves only as a description of plugin capabilities and does not constitute official endorsement.
Conclusion¶
dsh-video-coursemap transforms “video courses currently being watched in the foreground” into Word handbooks archived by subject and Mermaid knowledge map overviews, and exposes Agent tools for workflow queries and scans. If your scenario fits the two prerequisites of Windows foreground viewing and Bilibili supplementary materials, you can install it using the command above and verify the source code and configuration before enabling it.