iuuuuuuuu/dsh-session-handoff ↗★ 0
dsh-session-handoff
DSH 会话交接:上下文压力智能提醒 + 记忆保全式接力(总结 → 新会话继承 → 归档老会话),并能在会话已超上游 token 上限、原生压缩永久失败时把它救回来。 适合长对话用户,在Token超限时自动总结、继承并开启新会话以防中断。
Other repositories with this package name
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:iuuuuuuuu/dsh-session-handoffREADME
Read the full README ↗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.