dsh-tool-args-unwrap
Run the following command in DeepSeek Harness:
dsh plugin install shy19805/dsh-tool-args-unwrap
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install shy19805/dsh-tool-args-unwrap in your DeepSeek Harness terminal to install this plugin; full source code is at https://github.com/shy19805/dsh-tool-args-unwrap
About this plugin
When running small or mid-sized models through long sessions with heavy tool-calling, models occasionally emit shape-malformed arguments — most typically an extra {"arguments":} wrapper around the real payload. The host persists that wrapper verbatim into tool/call and assistant/message, then replays the entire history back next turn. The model sees its own bad example and imitates it, deepening recursively (observed 1→38 layers in the wild). Restarting the session "fixes" it not by resetting model state but by removing the bad exemplars.
dsh-tool-args-unwrap intercepts and corrects arguments before they are persisted, repairing execution, persistence, and history replay in one pass. Since v0.3.0 it also sanitizes stale malformed records replayed in old sessions (clone-on-write in memory; persisted data is never touched), so the session heals on the very next turn. It covers four defect families observed across 16,535 real tool/call records and judges every rewrite against the host's own validator — the acceptance rule is strictly fewer violations, never merely "required keys present." When in doubt, the block passes through unchanged.
Ideal for DSH developers who run small or mid-sized models through long sessions or high-frequency tool-calling loops. If you have hit the frustrating "the agent says it can't break free and only a restart helps" cycle, this plugin should save you a lot of manual debugging time.
Use Cases
- Nested argument wrappers deepening recursively in long sessions with small models
- Models repeatedly imitating their own malformed tool-call arguments in high-frequency calling loops
- Stale malformed parameters persisted in old sessions causing continued failures
Best For
- Developers using small or mid-sized models in DSH
- Agent developers running long sessions or high-frequency tool-calling loops
- DSH users who hit the agent-can-not-escape-only-restart-helps pattern
Related Plugins
A method pack that makes AI coding agents plan against your real baseline, prove completion with fresh evidence, and reduce reworks and unsafe changes.
Turns the DeepSeek Harness session into a captain that builds a durable sub-agent team, splits goals into dependency-aware tasks, and coordinates work via direct messages and a live Web UI.
Gives coding agents design judgment, letting Claude Code, Cursor, and 70+ agents generate and iterate high-quality UI, presentations, and graphics right from the terminal.
Run the Pi ecosystem's plugins on DeepSeek Harness, unmodified, via a compatibility layer that implements Pi's public extension ABI on DSH's native services.