911218sky / dsh-llm-bounded-retry

목록에 있음

Bounded all-error retry plugin for DeepSeek Harness

main모델 소스 보기

설치

npx -y @deepseek-ai/dsh plugin --profile web add github:911218sky/dsh-llm-bounded-retry

이 설치 명령은 GitHub 저장소 주소에서 생성된 확인되지 않은 시작점입니다.

README

유지 관리자가 작성한 문서 스냅샷입니다.

GitHub에서 보기 ↗
커밋 c9b79ef동기화 2026. 8. 18.

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

dsh plugin --profile web add github:911218sky/dsh-llm-bounded-retry

The package is a DSH bundle. Installation registers its cordis.patch.yml automatically, disables the official llm-retry executor, and loads the bounded executor with the default five-retry policy. Restart the DSH profile after installation.

To override the default, add a later entry to the profile's cordis.patch.yml:

- id: llm-bounded-retry
  config:
    maxRetries: 5
    retryableCodes: all
    initialDelayMs: 500
    maxDelayMs: 10000
    jitterRatio: 0.1

Configuration

KeyDefaultDescription
maxRetries5Retries after the initial attempt. 0 disables retry.
retryableCodesallall, default, or an array of exact failure codes.
initialDelayMs500Initial local backoff.
maxDelayMs10000Maximum local backoff and accepted provider delay.
jitterRatio0.1Symmetric jitter from 0 to 100 percent.

Development

The source, tests, and declaration output use TypeScript. npm test runs the ESM build, strict type check, and Node test suite.

npm install
npm test
npm pack --dry-run

License

This project and its documentation are licensed under CC BY-ND 4.0. See LICENSE for the license notice.

프로젝트 파일 및 신호

표시된 항목은 디렉터리 스냅샷에서 감지된 공개 저장소 신호입니다.

테스트감지됨

저장소 정보

언어
TypeScript
라이선스
NOASSERTION
마지막 업데이트
2026. 8. 18. 오전 10:31

신중하게 설치하기

소스 코드, 권한, 수명 주기 스크립트, 의존성 및 네트워크 접근을 검토하고 신뢰하지 않는 플러그인은 격리 환경에서 테스트하세요.