Harnessing DeepSeek: An Automation Assistant for Xuexitong

Introduction

The plugin system of DeepSeek Harness (DSH) makes “everything is a plugin” a reality. Within the DSH ecosystem, many scenarios require deep interaction with desktop applications or specific websites. A common pain point is: how to let the host model perform operations such as video playback, page turning, and quiz answering in a real browser or desktop client, while maintaining observable, interruptible, and configurable behavior.

weichen704/dsh-chaoxing-assistant is a plugin designed for ChaoXing (XueLitong / Smart Learning Platform) course tasks. It performs video watching, page turning, and quiz answering in a real Microsoft Edge browser (driven via Chrome DevTools Protocol) or the ChaoXing Windows desktop client (UIA + OCR). It provides a panel and the /chaoxing command in the right sidebar, and exposes 5 tools to the host model. Answers are generated by the host model; the plugin itself does not fake progress, does not call any platform backend APIs, and only performs operations visible on the web page.

Installation & Enablement

This plugin requires DeepSeek Harness ≥ 0.2.1, as it depends on two client injection points: @deepseek-ai/dsh-client-ui-conversation and dsh-client-ui-sidebar-right.

There are several ways to install it:

  1. Via the Plugin Marketplace (recommended):
    - In DSH, go to Settings → Plugins → Discover → Index Sources.
    - Add the index source:
     https://cdn.jsdelivr.net/npm/dsh-plugin-catalog/index.json
  • Search for “XueLitong” or “chaoxing” in the marketplace, then click Install.
  1. Let the agent install it:
    - Send the following in a DSH session:
     安装 npm 包 dsh-chaoxing-assistant
  • The agent will invoke plugin_manager to execute:
     action=install_bundle
     target=dsh-chaoxing-assistant
  1. Install from GitHub:
    - Execute:
     action=install_bundle
     target=github:weichen704/dsh-chaoxing-assistant
  1. Install from a local directory:
    - Download/extract the repository to a fixed location (it must not be deleted or moved afterward, since link installation points to it).
    - In Settings → Plugins → Add Plugin, select that directory.

After installation, open a new session. A “📚 XueLitong” button will appear in the session header, and the /chaoxing command along with chaoxing_* tools will be available. After upgrading the client bundle, a full DSH restart is required for the panel to update to the new version.

Runtime Environment

Item Description
OS Windows (Desktop mode depends on UIA + system OCR; Web mode depends on local Edge)
Browser Microsoft Edge (driven via remote debugging port, default 9422; no browser driver required)
Python 3 Optional, used for captcha OCR (python/captcha.py) and anti-crawler font decoding (python/fontmap.py); standard library only, no pip needed. If not found, set the CHAOXING_PYTHON environment variable to point to the interpreter
Port 9483 (local HTTP bridge between the panel and the host, listening on 127.0.0.1 only)

Quick Start

  1. Open the right sidebar panel, click Login, and scan the QR code in the popped-up Edge window to log in to ChaoXing; click Check to confirm the login state.
  2. Enter the course name (e.g., Advanced Mathematics) in the course input field. You can also directly type courseid:clazzid:cpi or the course URL; leaving it empty means scanning all courses.
  3. Click Scan to view the pending task points for the current course; then choose from Complete Course, Assignments, or Start.
  4. Clicking Stop terminates all tasks and clears the queue. It will not auto-resume (autoResumeMinutes / autoRepeatMinutes default to 0).

Panel Buttons & Entry Points

The panel buttons and their functions are as follows:

Button Function
Refresh Progress Fetches a one-time multi-line real-time progress update (the panel auto-refreshes every 2.5 seconds via the local HTTP bridge; does not write to session history)
Login / Check Opens/reuses the login page and probes the login state
Scan Scans pending task points for the current course in the background
Complete Course Only executes video and document task points
Assignments Only does assignments (model answering + submission)
Start Full automation: login check → scan all courses → complete courses → chapter quizzes / assignments
Stop Terminates all tasks, clears the queue, and stops auto-running thereafter

The Confirm button to the right of the course input field means prioritizing this course (it will interrupt the current queue).

The panel also provides two entry points:

  • Web Version: Opens the ChaoXing web page in the plugin-driven Edge browser.
  • Desktop Version: Launches the local ChaoXing desktop client cxstudy.exe and operates within the client using UIA + OCR.

Tools (Model-Callable)

The plugin exposes 5 tools to the host model:

Tool Available Actions
chaoxing_account list / add / start / login / wait_login / courses / stop / remove
chaoxing_tasks scan / list / status / stop
chaoxing_run Starts a background course-completion task (can specify kinds, quizPolicy, solveWorks, dryRun, workLimit, maxBlanks)
chaoxing_exam quiz_fetch / quiz_submit / work_list / work_fetch / work_submit / captcha
chaoxing_auto start / stop / status / progress / llm

Configuration

The plugin does not export a Config schema, so there is no form in the “Settings” page. Default parameters are in the plugin’s cordis.patch.yml (effective upon installation). There are two ways to modify the configuration:

  1. Directly edit cordis.patch.yml in the plugin directory (for npm installs, located at profile/node_modules/dsh-chaoxing-assistant/cordis.patch.yml), then restart DSH.
  2. Override by id in your own profile’s cordis.patch.yml (recommended, as changes persist through plugin upgrades):
- id: chaoxing-assistant
  config:
    autoStart: false
    autoAccount: default
    auto:
      minConfidence: 0.75
      autoSubmit: false

Common configuration keys (with defaults) are as follows:

Key Default Description
uiPort 9483 Panel HTTP bridge port, listens on 127.0.0.1 only
autoStart false Whether to auto-run when the plugin is enabled or DSH starts (default: no; manual “Start” click required)
autoAccount default Default account alias
autoResumeMinutes 0 Minutes to wait after stopping before auto-resuming; 0 means never
autoRepeatMinutes 0 Auto-rescan interval in minutes; 0 means never
auto.concurrency 2 Number of concurrent windows, range 1–4; exceeding 5 may trigger captchas
auto.maxMinutes 180 Maximum running minutes per course
auto.solveQuizzes / auto.solveWorks true Whether to auto-complete chapter quizzes / assignments
auto.minConfidence 0.75 Confidence threshold for model answers; questions below this threshold are not submitted
auto.autoSubmit true Whether to actually submit model answers (false = fill only, don’t submit)
auto.dryRun false Dry-run mode: fetch questions + generate answers but don’t fill or submit
auto.taskWindow false Whether each task page opens in an independent window
auto.maxBlanks 0 Maximum number of blank questions allowed for submission; exceeding this value only saves a draft without submitting, to avoid low-scoring papers
auto.videoNotConfirmedMax 3 Number of consecutive “player finished but platform did not confirm completion” before stopping; 0 means no check
auto.blankGuard true Read back the page’s blank question count before submission; if the count matches the fetched questions, the page is authoritative; otherwise, fall back to the answer plan
auto.humanGuard true Stop immediately when face/liveness/real-person verification prompts appear; zero clicks, no bypass attempts
desktopPath Auto-detected Path to the ChaoXing desktop client cxstudy.exe
desktopInput auto Input channel for desktop mode: auto or ps (force PowerShell only)

Environment variables:

  • CHAOXING_DATA_DIR: Data directory (default %USERPROFILE%\.dsh-chaoxing).
  • CHAOXING_PYTHON: Python interpreter path.
  • CHAOXING_DESKTOP: Desktop client path.

How It Works

  • Web Version: The plugin launches an independent Edge user profile + CDP debugging port, and uses real mouse/keyboard events such as Input.dispatchMouseEvent to click play, turn pages, and select options. No DOM injection is used; from the platform’s perspective, these appear as ordinary browser interactions.
  • Task Pages: Each task point opens a tab in the current window; already-completed task points are skipped directly. Video tasks determine completion by player time progression, then read back the platform’s task point to confirm “truly completed”; if several consecutive episodes remain unconfirmed, it stops. Document tasks use scrolling + pixel stability detection to determine the end; on failure, it re-enters the card and retries (up to 2 times).
  • Quizzes & Assignments: Fetch questions (including image-based question stems) → pass to the host model → fill in answers → questions with low confidence are not submitted. Before final submission, the page’s blank question count is read back; if it exceeds maxBlanks, only “Save Draft” is clicked. If that button cannot be found, submission is abandoned entirely—it never degrades into a forced submit.
  • Captchas & Human Verification: 9010-type captchas are auto-processed via OCR; on failure, it switches to manual handling and provides a screenshot path in the task status. When face/liveness/real-person verification prompts appear, it stops immediately (HUMAN_VERIFICATION)—no clicks, no bypass attempts.
  • Desktop Version: Since the debugging port is blocked and modifying the asar is rejected by the integrity self-check, the plugin uses Windows UIA + system OCR + keyboard events instead. When the host has @copylee/dsh-computer-use installed, click and input operations are delegated to it; screenshot/OCR/pixel hash still go through the local PowerShell channel (with automatic fallback if unavailable).

Known Limitations

  • The desktop version occupies the mouse and keyboard (relies on the focused window); do not steal focus during execution. Each “Start” click restarts the client first to ensure a clean state.
  • The newer pan-yz reader released after 2026-09 no longer reports document page counts; the plugin will trigger a stale-stop to limit losses rather than spinning idle.
  • Live stream replays and empty chapters are skipped; info pages with num=0 will continue searching for the next node.
  • Platform redesigns may cause selector/OCR region mismatches; such issues can only be fixed by following updates (feel free to attach logs in issues).

Data & Privacy

All data is stored locally at %USERPROFILE%\.dsh-chaoxing (configurable via CHAOXING_DATA_DIR):

  • profiles/: One independent Edge user profile per account, storing login state.
  • logs/: Action logs (*.jsonl).
  • fonts/: Anti-crawler font mappings.
  • captchas/: Captcha screenshots.
  • shots/: Screen screenshots.
  • state.json: Answer cache.

Aside from the host model itself (quiz answers go to the provider you configured), the plugin does not send any data externally; logs and screenshots remain on the local machine only. This directory contains login state and answer caches—do not commit it to a repository or share it with others.

Ecosystem Context

The philosophy of DeepSeek Harness is “everything is a plugin.” The community catalog is an independent site with no official affiliation with DeepSeek or High-Flyer.

weichen704/dsh-chaoxing-assistant is an open-source plugin under the MIT license, suitable for developers who need to automate ChaoXing course tasks within DSH. Please read the source code and license carefully before use, and ensure compliance with your institution’s policies.

References

  • Catalog page: https://www.skillhub.cn/plugins/weichen704/dsh-chaoxing-assistant
  • GitHub repository: https://github.com/weichen704/dsh-chaoxing-assistant
羽毛球分组比赛记分
小程序二维码

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

Xiaoye