Back to DMasker
DMasker for Visual Studio Code

Deterministic PII Masking &
Rehydration Inside VS Code

Use @dmasker in VS Code Chat to mask sensitive SQL, JSON, CSV, and key-value data before sending prompts to an LLM, then automatically restore original values in the response.

ChatCodex
Local   Token expiration error log
@dmasker Summarize this log and check the invalid fields
1 · Your original data David John david.john@acme-corp.example
2 · Sent to the LLM Mara Quinn mara.quinn@example.dev
3 · Rehydrated for you The summary references David John and david.john@acme-corp.example.
DMasker Safe Chat
Completed 4 steps in 2s
@dmasker Mask PII deterministically before LLM calls and restores real values in replies.
│  ◉ Agent  ▦ Auto  Balance  ⌕  ♩  ↑
How the flow works

Mask → LLM → Rehydrate

01

Local Scan & Deterministic Masking

HMAC-SHA256 seeded SessionVault generates realistic, referentially consistent synthetic values for names, emails, phones, dates, Luhn-valid cards, and addresses. Protected spans use sentinels to prevent double-masking.

02

Outbound Audit

Masked payloads are logged in DMasker Outbound Inspector, where you can review exactly what is sent before model calls.

03

Rehydration

Original values are restored across the response before rendering, preserving referential integrity across multi-turn SQL and code workflows.

Supported formats

Bring the data you already use.

SQL INSERT, single & multi-row Comma-safe SQL values SELECT / UPDATE predicates CSV / TSV blocks Attached files via #file: JSON / YAML Space-separated key-value lines Multi-turn code context
Commands & settings

Control masking from VS Code.

DMasker: Clear Session PII Vault DMasker: Rotate Session Salt dmasker.dateShiftDays dmasker.showMaskSummary
Private context, useful answers

Add DMasker to your VS Code workflow.

Install on VS Code Marketplace