DSH Plugins Marketplace

DSH Plugins

Plugins

/

Models & Providers

/

dsh-context-windows

d

dsh-context-windows

Manifest valid

Adds a Settings section to adjust the advertised context window of each connected WorkBuddy and Trae model, writing the override into the connector's context budgets.

UI (client)hasBundlePatch

dsh-context-windows

A DeepSeek Harness client plugin that adds a Settings → 模型上下文窗口 / Model Context Windows page, giving WorkBuddy and Trae the same per-model visual context-window adjustment that Qoder CN has under its own Settings section.

What it does

  • Lists the models of each connected WorkBuddy / Trae region on one page.
  • For each model, offers a <select> of context-window sizes (plus a "default / follow upstream" option that clears the override).
  • Writes the chosen value into the connector's existing contextBudgets config field via the Host settings service, so the set value actually takes effect in applyContextBudgets.
  • Re-fetches the model roster after each write, so the effective (advertised) window proves the change round-tripped.
  • Bilingual (zh / en) via the Host locale service; uses proven theme tokens and self-paints an opaque background so it is readable on glass themes.

Honest limitations (stated in the UI)

A budget only changes the context window DSH advertises for the model, which drives auto-compression timing. It does not change the window the upstream service actually serves for a request.

  • WorkBuddy applies Math.min(native, budget): any positive value at or below the native window is effective, so the page offers a graded "turn it down" ladder.
  • Trae accepts only its own declared ladder (dev / 500K when Max >= 500K / Max). A model that declares no Max window has a single option and is shown as read-only rather than offering a no-op control.
  • Qoder CN is left to its own Settings page (it already has this feature).

Structure

FileRole
index.jsHost half: settings.section-agnostic loopback routes GET /plugins/dsh-context-windows/state and POST /plugins/dsh-context-windows/set that read/write regions[panel].contextBudgets through settings.describe() / settings.mutate().
client.jsBrowser half: registers the settings.section page and renders the visual controls.
cordis.patch.ymlInserts the bundle into the profile patch.
locale/zh.json, locale/en.jsonHost display metadata (meta.title, meta.description).
icon.svgSettings icon.

The client reads model rosters from each connector's own proven routes:

  • /plugins/dsh-connect-workbuddy/usage?region=cn|global
  • /plugins/dsh-connect-trae/usage?region=cn|enterprise|ai&detail=fast

Install

Add the plugin to the desktop profile with the DSH CLI:

dsh plugin --profile desktop add D:\path\to\dsh-context-windows

Or install the published package from GitHub:

dsh plugin --profile desktop add github:SoulZhou/dsh-context-windows

A full quit and reopen of the DSH desktop app is required for the Host half to load; Ctrl+R only reloads the renderer. See the dsh-client-plugin skill for the full backup / verification procedure.

After installing, open Settings → 模型上下文窗口 / Model Context Windows to adjust each connected WorkBuddy / Trae model.

Changelog

  • 1.0.1 — First public release: added repository metadata, LICENSE, a full-canvas 512×512 icon, and explicit install instructions.
  • 1.0.0 — Initial internal build and verification.

Comments

Loading…

Similar plugins

dsh-context-budget

by zpis666

Adds per-route context window and compaction threshold fields to the Models settings page and a vendor-aware thinking-effort picker to the composer, writing llm-pi-ai capacities, reasoningEfforts, and

Development & InfrastructureModels & ProvidersManifest valid

★ 0

↓ 74/wk

MIT

JavaScript

Sep 9, 2026

dsh plugin --profile web add dsh-context-budget

DSH plugin: matches a model you declared on a custom gateway to the capability metadata it should have — context window, output cap, reasoning levels and image support — by looking the bare model name

Models & ProvidersManifest valid

★ 0

MIT

JavaScript

dsh plugin --profile web add dsh-model-metadata

by yembors64632

DSH 插件:一个插件接入 WorkBuddy / Trae / Qoder 三渠道模型,带统一状态面板、一键签到与渠道管理

Manifest valid

★ 17

↓ 1.3k/wk

MIT

JavaScript

Sep 28, 2026

dsh plugin --profile web add dsh-connect

by zyd232

DSH plugin: stop automatic context compaction from firing far too early on smaller context windows. Set the trigger per provider/model — no config edits, no pinned presets.

Sessions & MessagesManifest valid

★ 4

↓ 551/wk

MIT

JavaScript

Nov 18, 2026

dsh plugin --profile web add dsh-compaction-policy

by QJAG1024

DSH plugin: auto-fill metadata (context window, output cap, display name, input modalities) for custom-provider models from the Model Metadata Registry (models.dev)

Manifest valid

★ 5

↓ 37/wk

MIT

TypeScript

Aug 16, 2026

dsh plugin --profile web add dsh-model-meta-autofill

by dsh-plugin-lab

DSH 插件:把 WorkBuddy 桌面 App 里的模型接入 DeepSeek Harness,零配置直接用。(原生嵌入"设置-插件-插件配置")

Models & ProvidersManifest valid

★ 44

↓ 1.9k/wk

MIT

TypeScript

Nov 14, 2026

dsh plugin --profile web add dsh-workbuddy-bridge