AI Agent Hub
Back to plugins
🧩

dsh-model-compat-guard

admin-security Updated 2026.09.02

Run the following command in DeepSeek Harness:

dsh plugin install 782042369/dsh-model-compat-guard

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install 782042369/dsh-model-compat-guard in the DeepSeek Harness terminal, or pull and install manually from the source repository at https://github.com/782042369/dsh-model-compat-guard.

About this plugin

Plugging thinking-heavy models like GPT-5.x or Qwen-thinking into DSH almost guarantees three recurring failures: compaction summaries hitting a hard 8,192-token cap and failing closed, speculative sandbox_permissions payloads triggering impossible escalation errors, and tool calls rejected wholesale for a missing description field. dsh-model-compat-guard exists to fix exactly those three with zero configuration out of the box.

It sets three interception points along the request waterfall. For compaction, it raises maxTokens to 32,768 and downgrades the reasoning effort to the cheapest tier the model actually supports, so thinking tokens no longer blow through the output budget. Before tool execution, it resolves the current sandbox mode; if an escalation request is destined to fail (same or narrower tier, no sandbox service, unknown mode) it strips the redundant sandbox_permissions and justification so the call proceeds under permissions already granted, while legitimate wider upgrades still flow through the normal approval gate. For bash, run_code, and subagent invocations, it auto-synthesizes a description from the first meaningful line before strict schema validation, leaving already-valid descriptions untouched.

Ideal for DSH users running long conversations with thinking models, engineering teams that rely on sandboxed executors for code generation, and developers juggling multi-model workflows daily. No config changes are required; a log line containing compat-guard: tuned compaction request confirms the guard is active.

Use Cases

  • Compaction summaries of thinking-model conversations repeatedly truncated at the token cap and failing closed
  • GPT/Claude speculative escalation payloads in sandbox sessions causing the entire tool call to fail
  • bash, run_code and similar calls rejected wholesale by JSON Schema validation for a missing description field

Best For

  • DSH users running long conversations with thinking models like GPT-5.x or Qwen-thinking
  • Engineering teams relying on sandboxed executors for code generation who hit escalation errors daily
  • Developers juggling multi-model workflows who want zero-config elimination of compatibility noise