911218sky/dsh-llm-bounded-retry

911218sky★ 0TypeScript最后同步: 2026-08-18

在 GitHub 打开

Bounded all-error retry plugin for DeepSeek Harness

README 摘要

dsh-llm-bounded-retry A bounded, provider-neutral retry plugin for DeepSeek Harness. The official @deepseek-ai/dsh-llm-retry plugin retries selected transient failures or retries every failure without a finite limit. This plugin fills the gap between those modes: it retries every structured model-request failure up to a fixed budget, five retries by default. Behavior - Default: five retries after the initial request ( maxRetries: 5 ). - Retries all structured LLM failures except ABORTED and cancelled requests. - Uses durable llm/retry and llm/retry-started events, so each retry is a new agent turn. - Uses bounded exponential backoff with symmetric jitter. - Honors a positive provider Retry-After delay up to maxDelayMs . - Does not wrap ctx.llm.stream() and cannot duplicate partial output or committed tool effects. - Direct stream consumers are outside the agent request-error boundary. Authentication, quota, invalid-request, and context-window failures are intentionally retried by default because the plugin implements the requested all-error policy. Use retryableCodes: default or an explicit array when permanent errors should be excluded. Install The package is a DSH bundle. Install…

在 GitHub 查看完整 README →
工具/开发deepseek-harnessdsh-pluginretryagent

分类