dsh-plugin-yangmao: Deal Intel Dashboard

Preface

The DeepSeek Harness (DSH) plugin ecosystem supports extending agent capabilities via ctx.tools and ctx.skills. When you need to give an agent a persistent, verifiable, taggable, and category-searchable deals list, a dedicated plugin is far more reliable than expecting the agent to remember it from thin air or rely on a static file. dsh-plugin-yangmao provides a continuously verifiable deals dashboard that agents can query, tag, and verify/refresh online with structured write-back—while humans can browse by category and click to tag from the Web UI.

Plugin Overview

dsh-plugin-yangmao is an online-tool plugin for DeepSeek Harness, authored by maintainer femnn. It loads a seed snapshot of a deals list into DSH: a main list of deals (255 entries, seed snapshot dated 2026-11-18), two side boards (15 community radar posts and 14 free LLM quota entries), plus 7 agent tools and 1 refresh skill. All personal marks are unset in the seed. Runtime data is stored at $DSH_HOME/plugins/yangmao/data.json.

Core Features

Main List: deals

255 deal entries categorized under food / shop / telecom / bank / member / cloud / llm. Each entry includes the perk, redemption method, platform, card-binding requirement, restrictions, source, and verification timestamp verified_at. Expired entries are hidden by default; already-claimed entries are sunk to the bottom.

Side Boards

  • radar: 15 community radar posts—unverified leads.
  • tokens: 14 free LLM quota entries.

Agent Tools

7 tools registered via ctx.tools:

Tool Purpose
yangmao_search Search the main list by category/keyword (expired hidden by default, claimed sunk to bottom)
yangmao_featured Today’s picks: recently verified, non-expired entries
yangmao_boards Query the radar / tokens boards
yangmao_add Add a new verified deal
yangmao_mark Mark as claimed / bookmarked / read (or unmark)
yangmao_apply_refresh Verification write-back: upserts / retire / confirmed + update verification time, auto-remove expired
yangmao_stats Dashboard statistics and last verification time

Dashboard Page & API

The Host route serves the JSON API and dashboard page:

  • /api/state: Dashboard state and auto-update info.
  • /api/mark: Mark operation endpoint.
  • GET /plugins/yangmao: Single-file HTML direct-access page; supports browsing by category/board, searching, and click-to-mark.

Client Entry Point

A “Deals Intelligence” panel row in the Web UI left sidebar. Clicking it opens the full-page dashboard in the center column (two keys sharing the same main keyed slot). Page features match the direct-access page: picks, categories, search, both boards, click-to-mark. Since v0.2.0, the full page uses a parchment color scheme.

Refresh Skill

The yangmao-refresh skill encodes data-verification criteria for the agent. When asked to “refresh deals,” it opens each official source page one by one to verify, then uses yangmao_apply_refresh to write back—rather than blindly copying numbers from aggregator sites.

Auto-Update

The plugin registers a scheduled verification task every 12 hours. The task is created on first launch, delivered to a dedicated session, and the verification prompt is self-contained (does not depend on whether the skill is loaded). The task appears on the host’s “Scheduled Tasks” page and can be paused or deleted. After deletion, the plugin respects that decision and will not recreate it on restart. The “Update Now” button in the dashboard header triggers a manual verification. While the dashboard page is open, data is auto-repolled every 60 seconds.

Installation & Activation

# Install from GitHub
dsh plugin --profile web add github:femnn/dsh-plugin-yangmao

# Or use a local directory for debugging
dsh plugin --profile web add /path/to/dsh-plugin-yangmao

For local debugging, run npm install in the plugin directory first. Then simply start dsh web as usual.

Typical Usage

Just tell the agent directly:

  • “What deals are worth claiming today?”
  • “Look up the free LLM quotas”
  • “Refresh deals” (verify online per the skill criteria and write back)
  • “Mark the Qiniu Cloud entry as claimed”

Dashboard entry: click “Deals Intelligence” in the Web UI left sidebar; direct-access URL: http://<dsh web address>/plugins/yangmao.

Configuration

Add config to the yangmao entry in the profile’s cordis.patch.yml:

- id: yangmao
  name: 'dsh-plugin-yangmao'
  config:
    dataDir: '/some/dir'   # Data file directory; defaults to $DSH_HOME/plugins/yangmao

Data Source & Verification Criteria

The seed data is a public snapshot (dated 2026-11-18) of the author’s “Deals Intelligence” dashboard, distributed with the package solely for cold start. All personal marks are unset in the seed.

Iron rules for verification: amounts, thresholds, and free quotas are only accepted from official sources (campaign pages / pricing pages / help docs / official blogs); aggregator sites and community posts are treated as leads only—numbers that cannot be verified are either omitted or explicitly flagged in the field as “not verified against official sources”; community radar posts are unverified by default; entries past valid_until are delisted; the verification timestamp for an entry is only updated after the source page has actually been opened and checked.

Content Boundaries (Compliance)

This plugin does not include VPS / cloud server rental information, nor service categories not permitted in mainland China—proxy / node / VPN / “scientific internet” subscriptions, overseas bank accounts, overseas phone numbers, foreign cloud provider free tiers, etc. Rules are centralized in lib/sensitive.js and enforced in three places: the seed is pre-cleaned, legacy data files are auto-cleaned and written back on load, and the persistence paths of yangmao_add and yangmao_apply_refresh drop matching entries and report them as dropped_sensitive in the result. Free LLM API quotas (tokens board) are exempt.

Implementation Notes

  • Host plugin lib/index.js: ctx.provide('yangmao', store) exposes the data service, ctx.tools.register(defineTool(...)) registers 7 tools, ctx.skills.register(...) registers the refresh skill; additionally, ctx.plugin(...) registers a sub-plugin yangmao-auto (inject: ['schedule']) that maintains the auto-verification task, and attaches getAutoStatus() / refreshNow() to the store for the Web sub-plugin to call.
  • Web sub-plugin lib/web.js: Depends on webServer and the yangmao service; uses a single prefix route to serve the dashboard page and API (resource routes only answer GET/HEAD, so a handler form is used to support POST marks).
  • Client half: sidebar.panellist (list, id: 'yangmao', order: 30) and main (keyed, key: 'yangmao'), both declaring locale: 'yangmao'. Page components depend only on the react baseline with hand-written components and styles; data flows through the Host routes’ /api/state and /api/mark.
  • Security note: The dashboard route is a same-origin plain HTTP route that bypasses the Web UI’s one-time token gate (verified on 0.2.2-rc.1); dsh web binds to loopback only by default—do not expose this port directly to the public internet.

Verification

Full end-to-end testing was performed against dsh 0.2.2-rc.1 on a local machine with an isolated DSH_HOME, and re-tested successfully on 0.2.2-rc.3 (since v0.1.1, the peer dependency was relaxed to >=0.2.2-rc.1 <0.3.0, covering the entire 0.2.2 line). Command and output excerpts are in docs/VERIFICATION.md.

Directory Structure

lib/index.js    Host plugin: data service + tools + skill + auto-update sub-plugin
lib/store.js    JSON data layer (seed init, query, mark, verification write-back)
lib/sensitive.js  Sensitive content rules (shared by seed cleaning / load cleaning / persistence drop)
lib/tools.js    7 yangmao_* tool definitions
lib/skill.js    yangmao-refresh skill (verification criteria)
lib/web.js      Web sub-plugin: API and direct-access page routes
lib/board.html  Direct/fallback dashboard page (single file)
lib/client.js   Client half: sidebar panel row + main full-page dashboard (pre-built format)
scripts/selftest-client.mjs  Client half headless self-test (stub host/ctx/React)
scripts/clean-seed.mjs       Seed sensitive content cleaning (already executed, results committed)
seed/yangmao-seed.json  Seed snapshot (all marks reset)
skills/yangmao/SKILL.md File version of the same skill
cordis.patch.yml        Bundle patch (two plugin lines)

Summary

dsh-plugin-yangmao loads a continuously verifiable, agent-callable deals list into DeepSeek Harness, providing a main list, two side boards, 7 agent tools, and a refresh skill. It supports auto-verification (every 12 hours), manual verification (dashboard “Update Now” button), marking (claimed / bookmarked / read), and search, with strict data-source verification criteria and content-boundary compliance. It is ideal for developers who need to provide agents with a searchable, verifiable, and taggable deals list.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye