minyang2020/dsh-migrate-on-429 ↗★ 0
@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).
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:minyang2020/dsh-migrate-on-429说明文档
阅读完整 README ↗配置
配置文件 ~/.dsh/migrate-on-429.json(可在 Web 设置页「429 自动迁移」tab 里改;也可用环境变量 DSH_MIGRATE_ON_429_CONFIG 重定向到其它路径,便于测试/多 profile 隔离):
| 键 | 默认 | 说明 |
|---|---|---|
enabled | true | 主开关 |
quickOn | true | 对话框快捷开关(与主开关独立) |
migrateThreshold | 3 | 连续失败达到此数触发迁移(2–50) |
windowMs | 180000 | 请求级 429 滚动统计窗口(30s–1h) |
llmSummary | true | 尝试 LLM 精炼交接摘要(失败自动回退结构化) |
continueMessage | "continue" | 阈值前自动 continue 的消息内容 |