faukwaa/dsh-gap-feed0

dsh-gap-feed

dsh plugin: during long agent thinking, posts a hot-news or reminder message directly into the conversation stream.

包名
dsh-gap-feed
版本
0.1.2
许可证
MIT
最近更新
2026年8月19日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:faukwaa/dsh-gap-feed

Usage

When does it inject?

All of the following must hold:

  1. enabled is true;
  2. the agent has been thinking for more than minThinkSeconds (default 20s) without idling — detected by polling the agent registry, so it's robust to event timing;
  3. more than cooldownMinutes (default 15) since the last injection;
  4. fewer than maxPerHour (default 4) injections in the last hour.

Otherwise it stays silent and does nothing.

In-chat reminders

Say something with a time + a task, for example:

  • "提醒我 18:00 开会" / "remind me to have a meeting at 18:00"
  • "半小时后提醒我回邮件" / "remind me to reply to emails in half an hour"

The model parses it into text (the task) + dueAt (unix ms timestamp, default = now + 1h) and saves it. Parse failures return a friendly error without blocking the conversation. Due reminders are shown before news on the next injection.

Settings

The dsh settings page automatically renders the gap-feed namespace form. Changes take effect immediately and survive restarts.

Configuration

KeyTypeDefaultDescription
enabledbooleantrueMaster switch
minThinkSecondsnumber20Only inject after this many seconds of continuous thinking
cooldownMinutesnumber15Minimum gap between injections (minutes) — the core rate limiter
maxPerHournumber4Per-hour injection cap (safety net)
blackliststring[][]Title blacklist words; a matching title is filtered out

Defaults live in DEFAULT_CONFIG in src/types.ts.