Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.199 Home All releases olderv2.1.198 v2.1.200newer

Credential Masking: Regex Extract Patterns

The credentials.files sandbox setting now supports extracting and masking only specific values from a file rather than masking the entire file contents.

Details
  • New extract field: a regex with a capture group 1 that identifies the credential value(s) within the file; the proxy substitutes only those captured values
  • New onExtractNoMatch option controls what happens when the pattern matches nothing:
  • "warn" (default) — logs a warning and leaves the file unprotected
  • "deny" — degrades to full-file deny mode (file is blocked from sandbox)
  • "error" — throws at initialization, preventing session start with a misconfigured entry
  • New maskDuplicates option: also masks occurrences of extracted values found elsewhere in the file outside the capture groups

Example config:

{
  "credentials": {
    "files": [{
      "path": "~/.config/tool/credentials",
      "mode": "mask",
      "extract": "token=([A-Za-z0-9_-]+)",
      "onExtractNoMatch": "deny",
      "maskDuplicates": true
    }]
  }
}
Evidence

(search for "onExtractNoMatch", "extract pattern", "maskDuplicates")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

Related

Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.

See this entry in the whole of v2.1.199 →