dsh-away-notify: Autonomously Collecting and Pushing Information to Conversations or IM within DSH

Introduction

When working with agents or daily conversations in DSH, you often need to monitor external trending lists, RSS feeds, or search results and then manually paste the links back into the conversation. Scheduled scripts and third-party push services can share some of the burden, but most require additional processes, startup configuration, or separate maintenance of Token billing. Here we introduce the community plugin dsh-away-notify (Maintainer: Echo-Cry): It collects information within the DSH main process based on interest keywords and time slots, writes it into specified conversations as assistant messages, and can optionally sync to mobile IM via @xmanrui/dsh-im.

What is this

dsh-away-notify is a “Proactive Information Push” plugin for DSH (Category: Web Tools). The README states its primary function is to proactively search for information and push it to DSH conversations; the settings entry is “Settings” → “Proactive Information Push”. The current package version is 0.8.4, licensed under MIT, and declares support only for Windows (os: ["win32"] in package.json). Node.js >=22.19.0 is required, with a peer dependency of dsh >=0.2.0-rc.1 <0.3.0-0.

The plugin declares it was written by DeepSeek-V4.1-Flash (1017), and future versions may continue to expand functionality. Community directory page: SkillHub - dsh-away-notify; Source code and documentation: GitHub - Echo-Cry/dsh-away-notify.

Core Features

Operating Modes

  • Switchable between Continuous Scheduled Polling and Idle (Away) Single Push. Idle detection reuses the underlying P/Invoke GetLastInputInfo. The README claims it is a single resident process with low overhead and no high-frequency disk writes.

Collection & Fallback

If multi-source collection fails, it automatically degrades in sequence. Available methods are as follows (Token column from the README table):

Method Token Description
Built-in Token-free Scraping 0 Default; scrapes public hot lists (Weibo, Toutiao, etc.) and custom sources
web_search Yes Uses the host search service
dsh-ego-browser Plugin Direct Connection 0 Calls the ego CLI to run fixed scripts, briefly launching a browser
dsh-ego-browser Plugin Script Mode Yes Multi-step retrieval in a sub-conversation, suitable for complex layouts or pages requiring login
Custom Sources 0 Fill in URLs; auto-recognizes JSON / RSS / Atom / HTML

The default path is “Built-in Token-free Scraping + Template Rendering + Direct Conversation Delivery,” creating no extra conversations and not consuming large model Tokens by default. Custom sources can be set to “Append to Search” or “Use Custom Sources Only”; if entries are insufficient, articles can be supplemented via same-site links (pure scraping).

Push & Conversation

  • Select workspace first, then conversation (reads $DSH_HOME/storages/workspace.json, no need to manually copy sessionId).
  • Pushes write into the conversation event stream (turn/start → step/start → assistant/message → step/end → turn/end), appearing as AI messages in the UI. It does not wake the model or consume Tokens repeatedly; if the conversation is running other turns, the current push is skipped.
  • Push Style: Persona tone (Auto / Always / Off), Delivery detail level (Low / Medium / High), Number of items per push 1~20 (default 3), Interest scope and Query template ({interest}, {date}, | separates multiple paths).
  • Multiple Time Slots: Configurable multiple segments, including cross-midnight ranges like 22:00-02:00; incorrect inputs are highlighted in red and not saved.

IM & Billing

  • Optionally sync to QQ, WeChat, Feishu, DingTalk, Telegram, etc. via dsh-im; routing can “Follow Conversation” or “Fixed Send to One Conversation”. The conversation list reads dsh-im chat history.
  • Statistics on five-bucket Token usage, elapsed time, and collection degradation trajectory for each execution, providing daily / weekly / full billing reports.

Other Notes (README)

  • Runs entirely within the DSH main process, with no external resident scripts or boot auto-start.
  • When the ego browser runs in the background, it uses --window-position=5000,5000 to avoid stealing focus, closes after execution, and includes fallback cleanup during uninstallation.

Installation & Activation

The installation method provided in the official README is local linking. The path example follows the documentation (please replace 36004 according to your local user directory):

  1. Place the package directory at C:\Users\36004\.dsh\away-notify\.
  2. Edit C:\Users\36004\.dsh\profiles\desktop\package.json and add the following to dependencies:
"dsh-away-notify": "link:C:/Users/36004/.dsh/away-notify"
  1. Append "dsh-away-notify" to the dsh.profile.bundles array in the same file.
  2. Restart the DSH desktop client.
  3. Open “Settings” → “Proactive Information Push”, select the workspace and conversation, and click “Try it Now” to verify.

Typical Usage

  1. Select the target workspace and conversation in “Proactive Information Push”.
  2. Configure interest scope, query templates, persona tone, and items per push in “Push Style”.
  3. Select the collection method (options missing dependencies will be greyed out and unclickable in the settings page); keep the default built-in scraping for zero Token usage, or add custom source URLs.
  4. Enable continuous polling or idle single push as needed, and configure allowed push time slots.
  5. If dsh-im is installed, you can choose whether to sync to mobile and the routing method in the settings.
  6. Use “Try it Now” to confirm that assistant-style push messages appear in the conversation, then check Token and degradation records in the billing area (if search or script mode was used).

When using the dsh-ego-browser Plugin Script Mode, the assets/ego-search.SKILL.md within the plugin is inlined to the sub-conversation. The README states there is no need to write to %DSH_HOME%\skills or perform additional injection.

Applicable Scenarios & Notes

Suitable for: Windows desktop users who want to automatically collect summaries of hot lists / RSS / custom sites in specified DSH conversations and prefer to avoid burning Tokens by default; team personal workspaces needing information supplements when away or scheduled polling.

Notes:

  • The plugin runs with the current DSH process permissions. Before installation, please read the source code and the MIT license to assess the risks of network scraping and IM bridging yourself.
  • Only win32 is declared as supported in the documentation; Linux / macOS users should refer to subsequent repository instructions.
  • web_search, ego script mode, etc. will consume Tokens; channels like QQ / WeChat that require “You send first, then the bridge replies” will not bridge the plugin’s messages back into the conversation. You need to use dsh-im’s “Delivery → Sync to Mobile” configuration.
  • SkillHub is a community plugin directory and has no official affiliation with DeepSeek / Hithink RoyalFlush; installation follows the README, do not fabricate dsh plugin add commands based on the plugin name.

Conclusion

dsh-away-notify integrates information collection, degradation fallback, in-conversation assistant-style delivery, and optional IM sync into a DSH plugin, emphasizing zero external residency and a default Token-free scraping path. To view categories and introductions, open the SkillHub Directory Page; for version details and update logs, see the GitHub Repository README.

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

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

Xiaoye