dsh-migrate-on-429
Run the following command in DeepSeek Harness:
dsh plugin install minyang2020/dsh-migrate-on-429
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install minyang2020/dsh-migrate-on-429 in the DeepSeek Harness terminal; the source code is hosted at https://github.com/minyang2020/dsh-migrate-on-429. Restart the app after installation for changes to take effect.
About this plugin
When you hand a large codebase or an extremely long document to an Agent, the context window balloons with every turn. Each request carries megabytes of tokens, and TPM rate-limiting (HTTP 429) kicks in almost immediately. The instinctive response is to keep sending continue — but that just resubmits the same massive context over and over, burning through your quota with zero progress.
dsh-migrate-on-429 changes the strategy. Below the failure threshold (default: 3 consecutive 429s) it still auto-continues as before. Once the threshold is hit, the plugin cancels the stale session, waits until it is truly idle, extracts a structured handoff summary (original task, user instructions, recent progress, touched files, working directory, model, and presets), and then spawns a brand-new session with that distilled context so the task resumes where it left off. The entire handoff is strictly serial — cancel, whenIdle, create, followup — so the old and new sessions never run in parallel and never double up token consumption. For multi-sub-agent concurrency it adds cross-session global coordination: burst detection, a migration mutex, and a post-migration cooldown window, preventing N sessions from all triggering simultaneous handoffs. The handoff payload itself is deduplicated and pruned to stop "handoff stacking" from re-triggering a 429 on the very first message of the new session.
Best for developers whose Agents routinely work through large repositories, lengthy documents, or multi-step workflows and keep hitting TPM limits. It supersedes the older dsh-auto-continue-429 pure-retry approach, turning stuck, keep retrying into stuck, start fresh from a clean slate and pick up where you left off.
Use Cases
- Context bloat from parsing a large codebase causes every request to hit the TPM limit (429)
- Multi-sub-agent workflow where provider-level rate-limiting strikes multiple sessions simultaneously
- A long-document analysis task is interrupted mid-stream and repeated continue calls just burn quota without progressing
Best For
- Developers whose Agents routinely process large repositories or very long documents
- Power users running multi-sub-agent concurrent workflows
- dsh users who keep hitting TPM limits and are fed up with pointless retry loops
Related Plugins
A method pack that makes AI coding agents plan against your real baseline, prove completion with fresh evidence, and reduce reworks and unsafe changes.
Turns the DeepSeek Harness session into a captain that builds a durable sub-agent team, splits goals into dependency-aware tasks, and coordinates work via direct messages and a live Web UI.
Gives coding agents design judgment, letting Claude Code, Cursor, and 70+ agents generate and iterate high-quality UI, presentations, and graphics right from the terminal.
Run the Pi ecosystem's plugins on DeepSeek Harness, unmodified, via a compatibility layer that implements Pi's public extension ABI on DSH's native services.