dsh-sentinel
DSH 哨兵:条件驱动的 agent 唤醒系统——文件/进程/端口/命令传感器,订阅存为会话事件,重启自动复活;每个订阅、每次触发对用户完全可见
AI 분석
核心用途是实现基于系统事件的智能体自动触发。适合需要监控特定文件变化、进程启动或端口状态,并在条件满足时自动唤醒智能体执行任务的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:fuhefei/dsh-sentinelConfiguration
All deployment-tunable knobs live in the plugin's config schema (defaults in parentheses); override them on the bundle row in your profile's cordis.patch.yml:
- id: dsh-sentinel
name: dsh-sentinel
config:
heartbeatMs: 5000 # probe round interval
probeConcurrency: 8 # in-flight probes per round
maxSubscriptionsPerSession: 16
maxPendingWakeups: 8 # queued wakeups per session before dropping oldest
defaultIntervalSeconds: 30 # when a watch does not specify one (5–86400)
defaultCooldownSeconds: 60
dutyLeaseTtlMs: 30000 # passive-instance takeover window after the owner dies
notifyWebhookUrl: '' # optional: POST every fire here as JSON
Invalid values fail plugin load with a schema error rather than misbehaving at runtime.
notifyWebhookUrl fans every fire out of the harness as a JSON POST ({plugin, event, sessionId, id, kind, target, note, fireNumber, maxFires, summary, after}) — point it at a Lark/WeCom/Slack bot or any receiver. Delivery is at-most-once: a failed POST warns in the log and never blocks the in-harness wakeup.