From 14ccb9f5a4675d92c1d5f6c19599e9bf4ccb1641 Mon Sep 17 00:00:00 2001 From: Cameron Pfiffer Date: Sun, 19 Oct 2025 12:18:18 -0700 Subject: [PATCH] Document duplicate deletion behavior in tool description MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds important note that all archival memories with identical text will be deleted when using flag_archival_memory_for_deletion. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- tools/flag_memory_deletion.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/flag_memory_deletion.py b/tools/flag_memory_deletion.py index 0f089b6..e47311a 100644 --- a/tools/flag_memory_deletion.py +++ b/tools/flag_memory_deletion.py @@ -27,6 +27,9 @@ def flag_archival_memory_for_deletion(reason: str, memory_text: str, confirm: bo The system will search for all archival memories with this exact text and delete them. + IMPORTANT: If multiple archival memories have identical text, ALL of them will be deleted. + Make sure the memory_text is unique enough to avoid unintended deletions. + Args: reason: The reason why this memory should be deleted memory_text: The exact text content of the archival memory to delete -- 2.51.2