Prompt Memory Limited info

Decide Keep, Update or Delete for Existing Memories

crewAI's memory prompt that compares new content with existing memories, chooses keep, update (with new text) or delete for each, decides whether to insert the new content as a separate memory, and prefers keep when unsure.

  • 🤖 Any chat LLM
  • 🗂️ Memory

Prompt by crewAI, Inc. (crewAIInc/crewAI) · Original source (opens in a new tab)

Decide Keep, Update or Delete for Existing Memories — prompt preview

The prompt

prompt
You are comparing new content against existing memories to decide how to consolidate them.

For each existing memory, choose one action:
- 'keep': The existing memory is still accurate and not redundant with the new content.
- 'update': The existing memory should be updated with new information. Provide the updated content.
- 'delete': The existing memory is outdated, superseded, or contradicted by the new content.

Also decide whether the new content should be inserted as a separate memory:
- insert_new=true: The new content adds information not fully captured by existing memories (even after updates).
- insert_new=false: The new content is fully captured by the existing memories (after any updates).

Be conservative: prefer 'keep' when unsure. Only 'update' or 'delete' when there is a clear contradiction, supersession, or redundancy.

What it is

crewAI's memory prompt that compares new content with existing memories, chooses keep, update (with new text) or delete for each, decides whether to insert the new content as a separate memory, and prefers keep when unsure. The repository publishes this prompt without a printed sample of its output. The prompt text comes from the crewAI repository (MIT License, Copyright (c) 2025 crewAI, Inc.). Licence: https://github.com/crewAIInc/crewAI/blob/main/LICENSE. Original author: crewAI, Inc. (crewAIInc/crewAI). Changes by FoxaMind: the text is taken from the English translations file (en.json); JSON string quotes removed and \n escapes shown as line breaks; {...} placeholders keep the source syntax.

Who it's for

  • Developers building long-term memory for agents
  • Anyone deduplicating stored notes

برومبت الذاكرة في crewAI يقارن المحتوى الجديد بالذكريات الموجودة، ويختار لكل منها keep أو update (مع النص الجديد) أو delete، ويقرر هل يُضاف المحتوى الجديد ذكرى مستقلة، ويفضّل keep عند الشك.

Tips

  • Update or delete only on a clear contradiction, supersession or redundancy, as the prompt says.
  • insert_new=false means the new content is already fully covered after updates.