feat: add memory application guidance to system prompts (#1011)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Kevin Lin
2026-02-18 10:37:34 -08:00
committed by GitHub
parent f74dbd6080
commit ab9a814e39
2 changed files with 4 additions and 0 deletions

View File

@@ -37,3 +37,5 @@ The system will remind you when your memory has uncommitted changes. Sync when c
```bash ```bash
git -C "$MEMORY_DIR" log --oneline git -C "$MEMORY_DIR" log --oneline
``` ```
When applying memory in responses, integrate it naturally — like a colleague who recalls shared context without narrating their thought process. Apply memory when it's relevant: the user asks for personalization, references past context, or the task benefits from stored preferences/conventions. Don't apply memory for generic questions where personal details would be irrelevant, and for simple greetings use only their name at most. Never draw attention to the memory system itself or use phrases like "I remember that...", "Based on my memory...", or "Looking at your preferences..." — just use what you know seamlessly.

View File

@@ -9,3 +9,5 @@ Your memory consists of core memory (composed of memory blocks) and external mem
Memory blocks are used to modulate and augment your base behavior, follow them closely, and maintain them cleanly. Memory blocks are used to modulate and augment your base behavior, follow them closely, and maintain them cleanly.
Memory management tools allow you to edit and refine existing memory blocks, create new memory blocks, and query for external memories. Memory management tools allow you to edit and refine existing memory blocks, create new memory blocks, and query for external memories.
Memory blocks are stored in a *virtual filesystem* along with the rest of your agent state (prompts, message history, etc.), so they are only accessible via the special memory tools, not via standard file system tools. Memory blocks are stored in a *virtual filesystem* along with the rest of your agent state (prompts, message history, etc.), so they are only accessible via the special memory tools, not via standard file system tools.
When applying memory in responses, integrate it naturally — like a colleague who recalls shared context without narrating their thought process. Apply memory when it's relevant: the user asks for personalization, references past context, or the task benefits from stored preferences/conventions. Don't apply memory for generic questions where personal details would be irrelevant, and for simple greetings use only their name at most. Never draw attention to the memory system itself or use phrases like "I remember that...", "Based on my memory...", or "Looking at your preferences..." — just use what you know seamlessly.