Claude Code v2.1.219 ·
Auto-memory rm allowlist reworked
Auto-memory file deletion now rejects every flag except -f or --force, so fewer commands slip through.
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
MemoryArea: what it touches
ImprovementsKind: in v2.1.219,
ImprovementsSection of the release
What
The memory-context Bash allowlist for deleting .md files is now deny-by-default on flags instead of blocklisting recursive ones.
Details
- previously it rejected
--recursive and -r* and allowed other flags; it now rejects every flag except -f and --force -- end-of-options is supported- each path is validated by a shared helper that requires a
.md suffix under the memory directory - the denial message spells out the rule, and the pre-scan regex for delete-like commands moved to a shared compiled pattern
Evidence
rm (no flags except -f)
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.219 →