PerryLink/dsh-mask

PerryLink★ 0JavaScript最后同步: 2026-08-17

在 GitHub 打开

PII masking middleware for DeepSeek Harness: anonymize names, phones, emails, ID cards, bank cards, keys, and addresses to placeholders before they reach the model, restore them at the display layer, keep the restore table only in memory and a controlled storage domain, never log plaintext, and expose /mask and the mask_test tool

README 摘要

dsh-mask PII masking middleware for DeepSeek Harness — anonymize personal data before it reaches the model, restore it at the display layer. Phones, emails, ID cards, bank cards, keys, and more become placeholders at the model boundary; the plaintext never enters your session log. English · 简体中文 · Español · Português · हिन्दी Compatibility Surface Status Harness DeepSeek Harness 0.1.0-rc.6 Node ^22.19.0 \ \ =24.0.0 Platforms Anywhere DSH runs (pure host, zero-dependency regex; no browser half) Model Text models fully supported; no extra model capability required What you get dsh-mask anonymizes personal data at the model boundary — before a message reaches the model — and keeps a restore table so placeholders can be mapped back to the originals at the display layer: - Request-time masking — agent/pre-step messages are rewritten so phones, emails, ID cards, bank cards, keys, and IPs (each opt-in) become -style placeholders. The masked text is what gets logged and sent to the model. - Restore table — the placeholder → original map lives only in memory and a controlled storage domain ( dsh mask ); the plaintext never enters the session log. - Audit, not plaintext — the mask/applied se…

在 GitHub 查看完整 README →
皮肤/UIanonymizationcordisdeepseekdeepseek-harnessdshdsh-pluginmaskpii

分类