DSH Plugin Message Hub: Integrating RSS, Web Page, and GitHub Releases Subscriptions into Conversations

Introduction

In the DeepSeek Harness (DSH) plugin ecosystem, most tools are purely “doers”—information sources and conversations live in two separate worlds. When you spot a message worth discussing, you have to copy the title or link from the subscription tool and paste it into the conversation, fragmenting the context and requiring you to explain which source it came from. Adding a new RSS feed means switching to the admin console and filling out a form—what should be a one-sentence request becomes a two-step operation. The model also has no idea what you’re looking at right now; to expand on a particular item, you first need to spend a turn pasting its content.

Message Hub bridges the local message subscription center into the conversation: a single sidebar entry opens a three-pane panel—Feeds · Item Stream · Details. Every item in the panel can be written into the conversation draft with one click; the model’s hub_selection can read whichever item is currently selected; and adding a feed, pausing it, triggering an immediate fetch, or adjusting your focus direction—all of it can be done with a single sentence in the conversation.

What Is This

Message Hub is a local message subscription center plugin delivered by maintainer xiafan68. It integrates RSS, web page, and GitHub Releases subscriptions into the conversation flow, so information retrieval and dialogue happen within the same context. The plugin ships a built-in Python collection engine (service/) that automatically creates a venv, installs dependencies, and starts the service on first launch; the host side handles proxying and tool registration, while the browser side renders the three-pane panel. Selected items can be written into the conversation draft with one click.

Core Features

1. Three-Pane Panel

A “Message Subscriptions” entry appears in the sidebar. Clicking it opens a three-pane panel:

  • Left: Feed list—click to filter by source. The header includes a “Collect All” button to run every enabled feed at once.
  • Middle: Item stream—supports keyword search (260 ms debounce), show-favorites-only, pagination, and refresh.
  • Right: Item details—supports toggle favorite, delete a single item, trigger an immediate fetch for a single feed, and pause/resume/delete a feed.

2. Write Selected Items into Conversation Draft

Select an item in the panel, then ask “What’s this about?”—the model retrieves the title, source, link, and summary directly via hub_selection. You can also manually “Quote into Conversation” or “Write into Draft,” inserting the item as a blockquote or plain text into the current session draft without auto-sending.

3. Manage Subscriptions In-Conversation

When the host provides tools, the plugin registers hub_* tools:

  • hub_status: Service online status, feed count, total item count, last collection time.
  • hub_feeds: List feeds (status / item count / last fetched), supports q or status filter.
  • hub_feed_add: Add a feed—kind accepts rss(url), github_releases(owner/name), or web_page (requires full config).
  • hub_feed_control: enable / disable / delete / run.
  • hub_items: Item stream, supports keyword / source / date / favorite / pagination.
  • hub_item: Single item details, supports action=like/unlike for favorites and delete.
  • hub_selection: The item or feed the user has selected in the panel right now.
  • hub_digest: Daily/weekly curated picks—without collection_id, lists all editions; with collection_id, expands items and selection rationale.
  • hub_preferences: Focus directions—list / add / remove / set.

4. Built-in Python Collection Engine

service/ is a Python engine (FastAPI + httpx + bs4 + PyYAML, ~1.8k lines) copied as-is from the upstream message-subscriptions project—it is not business code of this project. When you click “Start Service,” the plugin will:

  1. Health probe: If the engine is already running, return immediately.
  2. Create data directory: SQLite only creates the file, not the parent directory.
  3. Locate Python: Check config.pythonPath → DSH’s bundled Python 3.12 → python3 / python on PATH. Each candidate is actually executed for a version probe (≥ 3.11 required).
  4. Prepare venv: Create a venv at <runtimeDir>/pyenv, install dependencies per service/requirements.txt, write the hash to .dsh-deps.json—if content is unchanged, skip reinstall.
  5. Spawn process: venv/python -m message_subscriptions.server --host --port --database --config, started detached, logs written to <runtimeDir>/service.log.
  6. Wait for health check: /api/v1/health must respond within 30 seconds before returning ok.

The first launch requires network access to PyPI to install five direct dependencies (tens of seconds to two minutes); subsequent startups are instant. Concurrent calls on the same starter share a single in-flight Promise, so clicking “Start Service” twice won’t spawn two processes.

5. Daily Digests & Focus Preferences

The engine already generates curation_collections (daily / weekly reports). The left panel lists each edition; clicking one shows the selected items, selection rationale, and original links. Every item can be “Quoted into Conversation,” “Written into Draft,” or used to “Start a New Conversation.” An entire edition can also be quoted / written to draft / opened as a new conversation in one click. Quotes include the selection rationale, so the model receives not just a bare title but the reasoning behind “why this one is worth reading.”

Focus preferences are managed via the preferences.directions editor—a chips list that supports add/remove, saved as a full PUT. These directions define the curation criteria for daily digests; changing them only affects the selection standard for the next edition.

Installation & Activation

Prerequisites

  • DeepSeek Harness (DSH) web platform. The host must provide webServer for the panel and HTTP routes, and tools for hub_* tools.
  • Node ≥ 20 (bundled with DSH).

1. Install into a DSH Profile

Add the following to ~/.dsh/profiles/<profile>/package.json:

{
  "dependencies": {
    "@dsh-external/dsh-message-hub": "link:/path/to/dsh-message-hub"
  },
  "dsh": {
    "profile": {
      "bundles": [
        "@deepseek-ai/dsh-base",
        "@deepseek-ai/dsh-web-app",
        "@dsh-external/dsh-message-hub"
      ]
    }
  }
}

After publishing to the registry, replace link: with a version number; for local development, use link: pointing to your checkout. Then run:

cd ~/.dsh/profiles/<profile> && pnpm install

Restart DSH: Bundle changes do not hot-reload; source changes via link: also require a restart.

2. Configuration (Optional)

The bundle ships with a default configuration (cordis.patch.yml) that works out of the box. To override, edit the profile’s cordis.patch.yml by id:

- id: dsh-message-hub
  config:
    apiBase: 'http://127.0.0.1:4001'   # Engine listen address
    serviceDir: ''                     # Empty = bundled service/
    runtimeDir: ''                     # Empty = ~/.dsh/message-hub/runtime
    dataDir: ''                        # Empty = ~/.dsh/message-hub/data
    pythonPath: ''                     # Empty = host Python → PATH
    installDeps: true                  # Install engine deps via pip on first launch
    autoStart: true                    # Allow "Start Service" / hub_service_start
    defaultLimit: 50                   # Items per panel page (1..100)
    collectIntervalMinutes: 360        # Background auto-collection interval (minutes), 0 = off
    token: ''                          # Bearer token if the engine requires auth
    tokenFile: '~/.config/message-subscriptions/api-token'

3. Start the Engine

When the panel shows a gray dot (“Local subscription engine is not running”), click “Start Service”; or say “Bring up the subscription service” in the conversation (hub_service_start). The first run installs dependencies—the button will indicate this.

You can also run it manually (the panel and tools will still work):

<runtimeDir>/pyenv/Scripts/python.exe -m message_subscriptions.server \
  --host 127.0.0.1 --port 4001 \
  --database <dataDir>/subscriptions.db \
  --config service/config/subscriptions.yaml

(service/ must be in cwd for the module to be on sys.path; Windows venv uses Scripts/, POSIX uses bin/.)

4. Verification

  • The “Message Subscriptions” entry appears in the sidebar; clicking it opens the three-pane panel.
  • The panel’s first screen shows a green dot, the feed list, and items (otherwise it shows a gray dot + start button).
  • Ask “Is the subscription running?” in the conversation—hub_status returns service status, feed count, item count, and last collection.
  • Select an item in the panel, then ask “What’s this about?”—the model should answer via hub_selection.

Typical Usage

In the conversation, you can say:

  • “Subscribe to Anthropic’s news RSS for me” → hub_feed_add
  • “What feeds do I have? Which one is down?” → hub_feeds
  • “Can you expand on this one?” (currently selected in the panel) → hub_selection retrieves title / link / summary
  • “Pause this feed for now” → hub_feed_control(action="disable")
  • “What’s in the latest daily digest?” → hub_digest (then expand with id)
  • “I’ve been more focused on AI agent engineering lately” → hub_preferences(action="add")

Use Cases & Notes

Message Hub is suited for DSH agent developers who need to integrate information streams into conversations and manage subscription feeds within the dialogue. The plugin runs with the current DSH process permissions; review the source code and license before installing. The first launch requires network access to PyPI to install engine dependencies. In offline environments, pre-prepare the venv or set installDeps to false and manually execute service/requirements.txt.

Wrap-Up

Message Hub unifies the subscription list and the conversation flow in a single context—reducing context switching, preventing context fragmentation, and enabling the model to directly access whatever you’re looking at right now. After installation, restart DSH, add the dependency and bundle to the profile’s package.json, run pnpm install, then start using it via the panel or the hub_* tools.

  • Plugin directory: https://www.skillhub.cn/plugins/xiafan68/dsh-message-hub
  • GitHub repository: https://github.com/xiafan68/dsh-message-hub
羽毛球分组比赛记分
小程序二维码

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

Xiaoye