minyang2020/dsh-migrate-on-4290

@minyang2026/dsh-migrate-on-429

DeepSeek Harness (dsh) plugin: when a session keeps hitting 429 TPM rate limits (typically because the context has grown too long), automatically summarize the current session, hand the task over to a fresh session, and continue there — a true handoff (old session cancelled first), never parallel work. Superset of the old auto-continue behavior (retries a couple of times before migrating).

AI Analysis

核心用途是解决长上下文导致的 429 报错。适合频繁进行长对话、需要自动总结并交接任务以保持对话连续性的用户。

Package
@minyang2026/dsh-migrate-on-429
Version
0.1.0
License
MIT
Last updated
Aug 22, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:minyang2020/dsh-migrate-on-429

配置

配置文件 ~/.dsh/migrate-on-429.json(可在 Web 设置页「429 自动迁移」tab 里改;也可用环境变量 DSH_MIGRATE_ON_429_CONFIG 重定向到其它路径,便于测试/多 profile 隔离):

默认说明
enabledtrue主开关
quickOntrue对话框快捷开关(与主开关独立)
migrateThreshold3连续失败达到此数触发迁移(2–50)
windowMs180000请求级 429 滚动统计窗口(30s–1h)
llmSummarytrue尝试 LLM 精炼交接摘要(失败自动回退结构化)
continueMessage"continue"阈值前自动 continue 的消息内容