dsh-pii-anonymizer: Deterministic PII Anonymization for Text Sent to Models on the Agent Loop
dsh-pii-anonymizer is a DSH native bundle plugin maintained by JWE24-code. It utilizes rules and checksum validation at agent/pre-step, system-prompt/assemble, and tools/post-execute to detect structured PII such as API keys, emails, phone numbers, and card numbers. It replaces text sent to model providers with HMAC-keyed placeholders, while local logs and disk files retain the original text. Detection is model-independent, and anonymization is unidirectional with no restoration table. Installation can be performed via `npm install dsh-pii-anonymizer` within a profile or using `/plugins add`. It is suitable for scenarios requiring reduced outbound sensitive information leakage while maintaining placeholder stability across sessions. Names and addresses are not covered. The plugin runs with process-level permissions, so reviewing the source code and MIT license before installation is recommended.
Read More