rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:GooDAnDReaDY/dsh-dsml-artifact-guard
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
🇬🇧 English • 🇷🇺 Русский • 🇨🇳 中文说明
|
⭐ If you find this plugin helpful, please star it on GitHub — your support helps maintain and develop the project.
🐛 Found a bug or have a feature idea? Feel free to open an issue on GitHub in any language. |
When streaming responses from DeepSeek models via third-party proxies, gateways, or incompatible providers, protocol closing tags for tool invocations (DSML — DeepSeek Markup Language) occasionally leak into the visible text channel. Users observe raw markup at the end of their conversation:
Response completed successfully.
</|DSML|parameter> </|DSML|invoke> </|DSML|tool_calls>
Additionally, reasoning models (such as DeepSeek-R1 / V3) or interrupted network streams can leave orphan </think> tags, dangling tokens (<|end of sentence|>), or unclosed thinking blocks that corrupt markdown rendering.
@goodandready/dsh-dsml-artifact-guard is a high-performance runtime guard for DeepSeek Harness that cleans these protocol artifacts in real time before they reach the user interface:
llm/stream hook synchronously, returning an AsyncIterable directly to preserve runtime integrity and avoid fatal TypeError: stream is not async iterable errors.</|DSML|...) when connections terminate abruptly.cleanThinkArtifacts): Strips orphan </think> tags, removes trailing reasoning markers, and heals unclosed <think> blocks at stream finish.Install into your DeepSeek Harness web profile:
dsh plugin --profile web add @goodandready/dsh-dsml-artifact-guard
Restart your DeepSeek Harness instance.
settings.yaml)Configure matching rules in settings.yaml or through the Web UI Settings Card:
# settings.yaml
dsh-dsml-artifact-guard:
mode: sanitize
modelPattern: "deepseek"
providers: []
cleanThinkArtifacts: false
| Parameter | Type | Default | Description |
|---|---|---|---|
mode |
string |
"sanitize" |
Operation mode: "sanitize" (strip tags), "audit" (log only), or "disabled" |
modelPattern |
string |
"deepseek" |
Case-insensitive RegExp matched against model IDs (e.g. deepseek, deepseek-v4.*, deepseek/.*) |
providers |
string[] |
[] |
Optional list of provider IDs. When empty, guards all providers |
cleanThinkArtifacts |
boolean |
false |
Strips orphan </think> tags, removes trailing reasoning markers, and heals unclosed reasoning blocks |
showTelemetry |
boolean |
true |
Controls visibility of the Activity & Telemetry dashboard in the settings card |
providerId |
string |
undefined |
(Deprecated) Legacy exact provider identifier; maintained for backward compatibility |
modelId |
string |
undefined |
(Deprecated) Legacy exact model identifier; maintained for backward compatibility |
| Method | Endpoint | Access | Description |
|---|---|---|---|
GET |
/api/dsh-dsml-artifact-guard/stats |
Web UI / Localhost | Retrieves live in-memory telemetry and recent incident history |
POST |
/api/dsh-dsml-artifact-guard/stats |
Loopback & Same-Origin | Resets telemetry counters and clears the recent incident log |
GET |
/api/dsh-dsml-artifact-guard/update |
Web UI / Localhost | Retrieves current version, latest registry version, and update status |
POST |
/api/dsh-dsml-artifact-guard/update |
Loopback & Same-Origin | Triggers in-place package update via DSH CLI |

The settings card provides real-time status of the guard, operating mode controls, live telemetry dashboard with incident history, accessible form inputs, and one-click in-place updates.
Run the automated test suite:
npm test
npm run check
MIT © GooDAnDReaDY
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。