Introduction¶
DeepSeek Harness (DSH) does not natively support a Fast Mode similar to Codex’s. The dsh-turbo-mode plugin fills this gap: while keeping the model, reasoning intensity, prompt, and tools completely unchanged, it routes requests through the provider’s priority queue to reduce time-to-first-token by leveraging the server-side priority tier.
This plugin is maintained by iambubu0523, categorized under model inference, with 0 stars.
What Problem It Solves¶
- Codex has Fast Mode; DSH does not
- Same model, same reasoning intensity, same prompt — the only difference is that requests go through the provider’s priority queue
- The mechanism is generic: as long as the endpoint follows OpenAI’s
service_tierconvention (e.g.,api.openai.com), it works out of the box; switching providers does not require switching plugins — the plugin itself decides whether to send the field
Core Features¶
Server-Side Priority Tier Injection¶
Adds one official field to the request JSON; model / reasoning intensity / prompt / tools remain untouched.
- Standard tier: The request is sent as-is, not a single byte changed
- Fast tier: Only when the endpoint has been confirmed to support a priority tier, one field is added to the request JSON
- Model, reasoning intensity, prompt, tools, temperature, max tokens, validation steps — all unchanged
- If the endpoint doesn’t support it / hasn’t been measured / was tested but showed no effect, the switch has no effect, and the reason is stated alongside (e.g.,
This endpoint has no official priority tier; Fast is not active)
Self-Assessment & Honest Degradation¶
- OpenAI official endpoints → inject directly
- Other endpoints → probe first, then decide
- Unknown endpoints → never guess and send
Real Metrics & 429 Fallback¶
- TTFT, tok/s, P95, 429 count — all derived from actual HTTP exchanges, not estimates
- Reads
Retry-Afterto delay (not retry), does not rotate keys, does not bypass rate limits - If no benefit is measured, no injection occurs; the UI explicitly shows “Not Active” rather than pretending to accelerate
Installation & Activation¶
DSH plugins are installed as bundles and require DSH ≥ 0.2.2.
Method 1: Install directly from GitHub (recommended, no npm account needed)
In the plugin panel’s install field, enter:
github:iambubu0523/dsh-turbo
On the host side, this maps to plugin_manager’s install_bundle (target = the spec above); the plugin manager will use pnpm to pull the package directly from GitHub.
To pin a version, include the tag:
github:iambubu0523/dsh-turbo#v0.1.0
Method 2: Local directory
git clone or download the Release archive and extract it to any location (e.g., ~/plugins/dsh-turbo), then enter the absolute path of that directory in the plugin panel (e.g., C:\Users\you\plugins\dsh-turbo).
Method 3: npm (pending release)
Package name dsh-turbo-mode; once published, just enter this name in the panel. It is not yet available on npm.
Note: This project’s package name is
dsh-turbo-mode. Thedsh-turbopackage already on npm belongs to a different author’s project — do not mix them.
After installation, no restart is needed; the Turbo switch appears below the input box (if it doesn’t appear, toggle the bundle off and on in the plugin page to hot-reload).
Typical Usage¶
- Toggle the switch: Applies to the current session; if no session is selected, it changes the default tier (new sessions inherit it)
- Ask the agent: Tell the agent “turn on Fast” — it will call the
turbo_modetool (action: status | set | metrics | probe) - Probe a relay: Pass
action: "probe"toturbo_mode. The plugin uses the same model, same reasoning intensity, and a minimal prompt, alternating standard / fast N times each, then compares TTFT - A single round does not produce a verdict:
samples < 3always returnsinconclusive - Verdict is based on historical aggregation: each endpoint+model retains the last 5 probes, takes the 3 most recent valid results; at least 2 must be ≥15% faster (and the majority of rounds must be faster) to mark as “Verified”; if none are faster, mark as “Ineffective”; if one is faster and one is not, mark as “Unknown” — Fast stays off until it reproduces
- View data:
GET /turbo/state,GET /turbo/metrics(loopback address only)
Supported Endpoints¶
| Endpoint | Behavior |
|---|---|
api.openai.com (including subdomains) |
Injects service_tier: "priority" (OpenAI documented capability) |
api.deepseek.com |
Explicitly not sent (vendor has no such tier) |
| Others (including OpenAI-compatible relays) | Not sent by default. Probe first; only send if an effect is measured; if no effect is measured, never send again |
| Endpoints you explicitly declare in config | Follows your declaration |
Unknown endpoints will never have parameters “guessed” into them — unknown ≠ probably fine.
Configuration¶
The plugin ships with default values in cordis.patch.yml; to override, add a config block with the same id in your profile’s cordis.patch.yml:
- id: turbo
name: dsh-turbo-mode
config:
defaultSpeed: standard # standard | fast, as the default for new sessions
holdMs: 15000 # Max wait on 429
metricsCapacity: 200 # Number of samples retained in memory
probeSamples: 3 # Rounds per probe (max 5)
dshHome: null # Override state directory
providers: {} # Per-endpoint capability declarations
If a relay has documented support but is not in the built-in table:
providers:
'relay.example.com':
support: documented
param: { service_tier: priority }
note: 'Relay docs state priority handling is supported'
Conversely, if an endpoint rejects this parameter, use support: unsupported to disable injection entirely.
How It Works¶
DSH’s loop deeply freezes options before sending a model request, and the LLM call configuration has no entry point for “provider-specific parameters.” So the parameter can only be added at the serialized HTTP layer:
Harness loop → llm/stream (measures only, does not modify request)
→ adapter → fetch hook
├─ Session is standard? → pass through as-is
├─ Session is fast AND endpoint confirmed to support? → add one field to body
└─ Otherwise → pass through as-is, log the reason
- Session attribution is propagated via
AsyncLocalStorage, so concurrent sessions don’t cross-contaminate - The fetch hook self-checks every 2s: if another integration (e.g., a local relay proxy) replaced
globalThis.fetch, the hook re-wraps itself to avoid “silent degradation to standard tier” - In state,
transport.armedonly means “our hook is the outermost fetch”; if a proxy wraps above us but still delegates downward, the request still passes through our hook. The real evidence istransport.delivering(hook was actually called within the last 15s) and thetransport.injectedcounter
Metric Definitions¶
All derived from actual HTTP exchanges, no estimates:
- TTFT / Time-to-First-Token: Wall-clock time from sending the request to receiving the first
text-delta/reasoning-delta - tok/s:
usage.outputTokens ÷ generation duration - Total duration: Until the stream ends
- Rate limiting:
status 429count; retries:retriedflag; held: number of times we proactively waited to honorRetry-After
Limitations¶
- A client cannot increase server-side generation speed; acceleration is only possible if the provider offers a priority queue
- TTFT is heavily affected by network and proxies; the probe’s 15% threshold is conservative and may still be affected by noise
- If a relay “accepts but does not implement”
service_tier, this plugin will honestly mark it as ineffective
Feedback & Data¶
Useful feedback is numbers, not opinions:
- Fast actually works on your endpoint → open an issue using the “Fast lane works on my endpoint” template and paste the full output of
POST /turbo/probe {"samples":3}(includeverdict, both medians,deltaPct, androunds) - Behavior is wrong → use the Bug template and paste
GET /turbo/state(remember to remove keys and private addresses) - Want to chat / just say you installed it → open an issue, no need to pick a template
One hard rule: a single probe round does not count.
Ecosystem Context¶
DSH’s philosophy is “everything is a plugin.” The community catalog is an independent site with no official affiliation with DeepSeek / High-Flyer.
References¶
- Plugin catalog page: https://www.skillhub.cn/plugins/iambubu0523/dsh-turbo
- GitHub repository: https://github.com/iambubu0523/dsh-turbo