DMasker PII Guard
DMasker PII Guard is a VS Code Chat participant that masks personally identifiable information locally before sending prompts to a language model.
Usage
Open VS Code Chat and mention @dmasker in a prompt. DMasker can mask PII in:
- Plain text prompts
- Attached files
- Text selections
- JSON, YAML, CSV, TSV, and SQL values
Masked values are rehydrated deterministically in the model response through SessionVault.
Outbound inspection
Use View: Open Output and select DMasker Outbound Inspector to inspect:
- Masked outbound payloads
- Active vault mappings
- Rehydration verification status
Commands
- DMasker: Clear Session PII Vault - clears all active mappings.
- DMasker: Rotate Session Salt & Clear Vault - rotates the deterministic salt and clears the vault.
Configuration
dmasker.dateShiftDays: maximum date offset used for deterministic date masking.
dmasker.showMaskSummary: show or hide the masking summary in chat responses.
| |