dsh-model-context-catalog
Configure the contextWindow for models registered in dsh, so long sessions are no longer misjudged as context overflow.
为 dsh 已注册的模型配置上下文窗口,避免长会话被误判为上下文溢出。
How to install
dsh plugin add dsh-model-context-catalog About
dsh-model-context-catalog 为 DeepSeek Harness(DSH)的 llm-pi-ai 模型维护准确的路由级 contextWindow,避免长会话被错误判定为上下文溢出。 效果展示 解决什么问题 自定义模型路由未声明上下文窗口时,DSH/pi-ai 会使用 262,144 tokens 的兜底值。 当实际请求超过这个猜测值时,服务端即使成功返回,也可能被重新分类为: text pi-ai detected context overflow for model "glm-5.3-flash" 这会导致两种典型现象: 工具调用可以继续,但最终自然语言回答失败; /compact 使用同一路由生成摘要,也被误判为溢出,压缩无法提交。 本插件按精确的 provider/model 路由写入正确的 contextWindow,并通过 DSH 公开 Settings API 同步到 llm-pi-ai。它不修改 DSH/pi-ai 内部代码,也不接管 provider 凭据。 完整证据和上游代码路径见 ROOT_CAUSE.md。 安装 从 npm 安装 bash dsh plugin --profile web add dsh-model-context-catalog 从本地目录安装 bash dsh plugin --profile web add /…
Recommendation signals
Meta
- License
- MIT
- Language
- JavaScript
- GitHub stars
- 34
- mo. downloads
- 650
- Last push
- 2026-09-01
- Created
- 2026-09-01
Basic safety check
- Findings
- None
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- context-window, cordis, deepseek-harness, dsh, dsh-plugin, javascript, llm, model-metadata, pi-ai
Related plugins
dsh-plugin-subscriptions
V1ki/dsh-plugin-subscriptions
Use ChatGPT (Codex), Claude, and Grok subscriptions as DeepSeek Harness LLM providers, with Settings login, model catalogs, usage, plus image_generate, video_generate, and x_search tools.
dsh-workbuddy-connect
corrinehu/dsh-workbuddy-connect
Brings the models in the WorkBuddy desktop app straight into DeepSeek Harness — zero configuration in the DSH chat.
claude-code-router
musistudio/claude-code-router
One local control plane for every AI agent: route across models, fuse new capabilities, orchestrate tools, and stay fully in control.
dsh-thinking-effort
hytime/dsh-thinking-effort
Configure reasoning-effort levels and sub-agent defaults for custom DSH models.