dsh-model-context-catalog
Route-level contextWindow catalog for llm-pi-ai models: a Settings page lists configured routes, stores the real window per route, and syncs it through the public Settings API so long sessions are no longer misjudged as context overflow.
为 llm-pi-ai 模型维护路由级 contextWindow:设置页列出已配置路由、按路由保存真实窗口值,并经公开 Settings API 同步,避免长会话被误判为上下文溢出。
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
- 13
- mo. downloads
- –
- 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-codex-connect
franksong2702/dsh-codex-connect
Connect ChatGPT OAuth and OpenAI Codex models to DeepSeek Harness, with opt-in search and image tools.
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.