rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:dsh-labs/dsh-omp-retry
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
OMP-style retry policies for two DeepSeek Harness failures that the built-in executor leaves terminal:
Retry-After up to five minutes.
DSH's default policy is five retries from 500 ms to 10 s, so a TPM/RPM window
can still be active when the budget is gone.thinking block carries a
signature bound to the conversation it was minted in. Proxies and gateways
that fan out to several upstream channels (or rotate conversation identity)
reject it with 400 ... Invalidsignatureinthinkingblock. The block is bound to a different conversation; re-sending the same history usually
succeeds because the next attempt lands on an upstream that accepts it. DSH
classifies the 400 as INVALID_REQUEST and never retries it, so the whole
turn ends.This bundle adds both policies without forking DSH. It prepends one
agent/request-error listener ahead of dsh-llm-retry and owns only those two
failures; every other code stays with the built-in executor, whose own policy
remains the fallback when this bundle is absent.
Rate limits:
max(30 s, provider Retry-After).dsh-llm-retry: one durable policy key per resolved
provider retryPolicy.Thinking-block binding rejections:
retryPolicy budget, so a
provider left at its default still gets the binding retries.Invalidsignatureinthinkingblock or
bound to a different conversation), not on the failure code, so the policy
survives code remapping by a gateway.Both:
llm/retry / llm/retry-started events,
so the normal retry UI and session history still work.SERVER, TIMEOUT, TRANSPORT, EMPTY_RESPONSE, CONTEXT_WINDOW_EXCEEDED,
QUOTA, and AUTH are never retried by this plugin.dsh plugin --profile desktop add github:dsh-labs/dsh-omp-retry
Use your profile name instead of desktop for a web or custom profile, then
restart DSH. The bundle inserts the omp-rate-limit-retry row itself.
The defaults are maxRetries: 10, floorMs: 30000, and maxDelayMs: 300000
for rate limits and maxRetries: 5, initialDelayMs: 500, maxDelayMs: 8000,
jitterRatio: 0.25 for binding rejections. Override the row in the profile's
cordis.patch.yml:
- id: omp-rate-limit-retry
config:
maxRetries: 10
floorMs: 30000
maxDelayMs: 300000
thinkingBlock:
maxRetries: 5
initialDelayMs: 500
maxDelayMs: 8000
jitterRatio: 0.25
maxRetries: 0 disables the corresponding policy. Malformed values fail the
plugin load with a message naming the offending key instead of silently
disabling retries.
For fast non-429 retries, keep the provider policy close to OMP's local backoff:
retryPolicy:
mode: normal
maxRetries: 10
retryableCodes:
- EMPTY_RESPONSE
- RATE_LIMIT
- SERVER
- TIMEOUT
- TRANSPORT
backoff:
initialDelayMs: 500
maxDelayMs: 8000
jitterRatio: 0.25
Keeping RATE_LIMIT in the list is a fallback for when this bundle is removed;
while the bundle is active it takes 429s first.
Verified against DSH Desktop 0.2.2-rc.2 and 0.2.2-rc.1, and previously
against 0.2.1-rc.5. The bundle declares the range it supports, and DSH refuses
to install or start a bundle whose engines.dsh range the running release does
not satisfy:
"engines": { "dsh": ">=0.2.1-rc.5 <0.3.0-0" }
The plugin relies on three internal contracts:
agent/request-error waterfall payload (failure.code,
failure.message, failure.providerRetryAfterMs, retryPolicy, signal),llm-retry session projection (llmRetry), read through
ctx.sessionProjections.stateOf(session, 'llmRetry'),llm/retry and llm/retry-started events the built-in retry executor
writes and the llmRetry projection folds.All three are unchanged between 0.2.2-rc.1 and 0.2.2-rc.2: the payload type,
the projection key and stateOf signature, and dsh-llm-retry's implementation
are identical. RATE_LIMIT is still a built-in transient code — still in the
default retryableCodes and still marked retryChoice — so the 429 path is
unaffected. Three 0.2.2-rc.2 changes touch neighbouring ground without
changing this bundle:
Session.append gained an array overload; the single-event form this bundle
calls still works.ATTACHMENT_* codes instead of UNKNOWN;
those failures were already delegated and stay delegated.If a future DSH changes those contracts, the plugin may need an update; it fails closed by delegating to the next listener.
The plugin is written in TypeScript under src/; dist/ is the build output
and is committed so github: installs load without a build step.
npm install
npm run build
npm test
npm test builds first, then runs the node:test suite against dist/. After
changing src/, rebuild and commit dist/ — CI fails when the two drift.
anthropic-beta: thinking-binding-controls-2026-08-01 with
thinking.block_binding.prefix_mismatch_behavior: "drop_block", or drop the
stale block before the request leaves the client.Retry-After above maxDelayMs is not waited out.MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。