iuuuuuuuu/dsh-session-handoff ↗★ 0

dsh-session-handoff

提供上下文压力提醒与记忆保全式接力 适合长对话用户,在Token超限时自动总结、继承并开启新会话以防中断。

套件
dsh-session-handoff
相容性
待驗證
版本
0.1.0
授權
MIT
最近更新
2026年10月8日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:iuuuuuuuu/dsh-session-handoff

Configuration

Mount config in your profile patch, or edit it live in Settings → 会话交接 / Session handoff:

- id: session-handoff
  name: 'dsh-session-handoff'
  config:
    monitor:
      enabled: true
    policy:
      language: zh                        # language of the reminder in the transcript
      watchRatio: 0.45
      warnRatio: 0.6
      criticalRatio: 0.75
      remindEveryTokens: 50000
      remindCooldownMs: 600000
      seedBudgetTokens: 24000
    autoHandoff:
      enabled: true
      atLevel: critical
      onAnomaly: true
      anomalyThreshold: 2
      archive: false

Neither ceiling is configured. The model window is read from the model configuration the session is actually using, so it follows a model switch with no setting touched. The upstream request limit is a property of the account behind a route and appears in no model configuration, so the plugin carries the value measured on this machine as its default; it is available as policy.upstreamPromptLimit for a deployment that measures a different one.