diff --git a/website/docs/user-guide/features/memory.md b/website/docs/user-guide/features/memory.md index d0873d6b955c1..b4814d2a178fb 100644 --- a/website/docs/user-guide/features/memory.md +++ b/website/docs/user-guide/features/memory.md @@ -20,7 +20,13 @@ Two files make up the agent's memory: Both are stored in `~/.hermes/memories/` and are injected into the system prompt as a frozen snapshot at session start. The agent manages its own memory via the `memory` tool — it can add, replace, or remove entries. :::info -Character limits keep memory focused. When memory is full, the agent consolidates or replaces entries to make room for new information. +Character limits keep memory focused. Memory does **not** auto-compact: when a +write would exceed the limit, the `memory` tool returns an error instead of +silently dropping entries. The agent then makes room itself — consolidating or +removing entries in the same turn before retrying (see [What Happens When Memory +is Full](#what-happens-when-memory-is-full)). Note that `replace` is also bound +by the limit: swapping an entry for a longer one can still overflow, so the new +content must be shortened (or another entry removed) to fit. ::: ## How Memory Appears in the System Prompt