dsh-gap-feed
dsh plugin: during long agent thinking, posts a hot-news or reminder message directly into the conversation stream.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:faukwaa/dsh-gap-feed说明文档
阅读完整 README ↗Usage
When does it inject?
All of the following must hold:
enabledis true;- 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; - more than
cooldownMinutes(default 15) since the last injection; - 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
| Key | Type | Default | Description |
|---|---|---|---|
enabled | boolean | true | Master switch |
minThinkSeconds | number | 20 | Only inject after this many seconds of continuous thinking |
cooldownMinutes | number | 15 | Minimum gap between injections (minutes) — the core rate limiter |
maxPerHour | number | 4 | Per-hour injection cap (safety net) |
blacklist | string[] | [] | Title blacklist words; a matching title is filtered out |
Defaults live in DEFAULT_CONFIG in src/types.ts.