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.221 Home All releases olderv2.1.220 v2.1.222newer

sandbox.credentials.files gains a mask mode with regex extraction

Use it now
Useful4 Signal0
Sandbox Notable

You can mask secrets in credential files so sandboxed commands see placeholders while real values are swapped in on egress.

sandbox.credentials.filesmaskextractonExtractNoMatchmaskDuplicates
What

Credential file entries used to accept only deny; the settings schema now takes an enum of deny and mask, where masked files are shown to sandboxed commands as a sentinel-substituted copy and the host proxy swaps sentinel for the real secret on egress.

Details
  • new sibling keys: extract (a regex whose capture group 1 is the secret, so .netrc, JSON and YAML files still parse), onExtractNoMatch (warn is the default and fails open, deny fails closed, error aborts sandbox setup), maskDuplicates, and injectHosts (defaults to network.allowedDomains)
  • config validation rejects mask on a directory path and rejects an extract regex with no capturing group
  • the sandbox config builder was rewritten for this and now warns on empty injectHosts and on mask entries that degrade to deny
  • the schema states mask currently degrades to deny on macOS and Windows
Evidence

extract must contain at least one capturing group —

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

See this entry in the whole of v2.1.221 →