Why redact?
Sending secrets or PII to third-party models increases risk and cost. Redaction strips sensitive tokens and replaces them with stable tags.
Practical tips
- Centralize regex rules
- Validate with unit tests
- Provide user overrides for edge-cases