DSH Plugins Marketplace

DSH Plugins

Plugins

/

Sessions & Messages

/

dsh-context-presets

x

dsh-context-presets

Manifest valid★ 1

按模型自定义上下文窗口的 DSH 插件

UI (client)hasBundlePatch

dsh-context-presets

为 DeepSeek Harness 的每个模型单独设定上下文窗口。

DSH 用模型的上下文窗口做预算与溢出判断。本插件把这件事收敛成一个入口:右键输入框下方的窗口芯片换档,或在设置弹窗里逐个模型精调。所有取值写入 llm-pi-ai 命名空间,由宿主校验与持久化,改动即时生效、无需重启。

只调整 DSH 侧的预算基准,不扩大服务商的真实上限。自定义值不会超过上游声明的窗口。

为什么

同一模型经由不同渠道挂载时真实窗口常常不同,而安装目录给的是保守值;也有人想反向调小窗口,让 DSH 更早压缩。插件把「按模型改窗口」做成一个不依赖第三方插件的小面板。

功能

能力说明
左键状态面板点窗口芯片弹出面板:会话生效值、当前设定、上游默认值、横向档位、自定义输入框
右键档位菜单右键芯片弹出与系统右键菜单同款的列表,换档一步到位
跟随上游档位之一:不写死数值,DSH 使用上游声明的窗口,上游变了就跟着变
自定义面板输入框直接填任意正整数,上限由上游声明决定
设置弹窗按提供方 / 模型列出,标出已自定义与已调整档位的模型,可只看已自定义
批量按提供方一次性应用或恢复,超出上游的模型自动跳过
界面刷新右键菜单与设置弹窗内置,不关闭客户端即可重载界面

窗口值统一以 K / M 显示;不由 llm-pi-ai 管理的路由只显示会话生效值,档位置灰。

安装

dsh plugin --profile web add dsh-context-presets

架构

  • src/core 纯逻辑:档位、设置文档读取、写入计划、菜单条目;
  • src/client 界面:窗口芯片、右键菜单、设置弹窗,经核心槽位 conversation.composer.dock 与 plugins.bundle.config 挂载;
  • src/host 宿主半侧,只占位、不持有状态;
  • build.mjs 把这些模块内联成浏览器可执行的 lib/client.js,lib/index.js 是宿主入口。

兼容性

DSH ≥ 0.2.0-rc.2,Web 客户端。

许可证

MIT

Comments

Loading…

From the same category

billion-context

by ranxianglei

基本稳定可用 100K tokens is enough. Universal context-compression proxy for ALL AI coding agents,10w上下文足矣

Sessions & MessagesManifest valid

★ 2.5k

↓ 650.1k/wk

MIT

TypeScript

Oct 24, 2026

dsh plugin --profile web add billion-context

A DeepSeek coding agent harness: persistent shell, Ultra subagents, auto approval, Chrome MCP and session telemetry

Sessions & Messages

★ 1k

MIT

JavaScript

Index only — not installable

by Han-1413141

DeepSeek Harness session cost meter plugin: session/daily cost, budget, history, OpenCode Go quota, official & custom-provider balance, Codex-like token heatmap, peak/off-peak pricing with pre-switch

Sessions & MessagesManifest valid

★ 507

↓ 26k/wk

MIT

JavaScript

Oct 23, 2026

dsh plugin --profile web add dsh-cost-meter

by Nwflower

Import 14+ external agent chat histories (Claude Code, Codex, ChatGPT, Cursor, Gemini, Reasonix, opencode, ZCode, Grok Build, OpenClaw, Pi, Hermes, Kimi CLI, DSH) into DeepSeek Harness as resumable se

Sessions & MessagesManifest valid

★ 249

MIT

JavaScript

Oct 23, 2026

dsh plugin --profile web add dsh-chat-import

by MichengAI

DSH Archive Manager — 在 DeepSeek Harness 中安全查看、恢复和管理已归档会话 · Safely view, restore, and manage archived sessions in DSH

Sessions & MessagesManifest valid

★ 219

↓ 17.2k/wk

Apache-2.0

JavaScript

Oct 23, 2026

dsh plugin --profile web add @michengai/dsh-archive-manager

by SiriLee

DSH 插件:真正便捷无感的同窗口内对话回退,从不新建分支;自带轻量工作区备份,可一并还原文件(完整 Claude Code /rewind 语义)。 · DSH plugin: genuinely effortless in-window conversation rewind — never forking a new session; ships a lightweight workspac

Sessions & MessagesManifest valid

★ 180

↓ 5.6k/wk

MIT

TypeScript

Oct 23, 2026

dsh plugin --profile web add dsh-rewind-plugin