From d14e8b350614b0b9a1918891a30d0a4a11bb812d Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 19 Oct 2026 12:50:42 +0000 Subject: [PATCH] docs(memory): note that the prompt only names memory tools the agent can call Documents the dewee change for nextlevelbuilder/dewee#1511 and #1512: a tool profile or deny rule that removes a memory tool also removes the system prompt text that asks for it. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01EWyWRb7AcoYizxU7sqPNK5 --- src/content/docs/en/concepts/memory-and-knowledge.md | 2 ++ src/content/docs/vi/concepts/memory-and-knowledge.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/content/docs/en/concepts/memory-and-knowledge.md b/src/content/docs/en/concepts/memory-and-knowledge.md index 6258b2d..6a0968c 100644 --- a/src/content/docs/en/concepts/memory-and-knowledge.md +++ b/src/content/docs/en/concepts/memory-and-knowledge.md @@ -28,6 +28,8 @@ Memory files are split into chunks of up to 1,000 characters and indexed for ful | `memory_get` | Reads only the lines it needs from a memory file | | `memory_expand` | Loads the full summary of a past session by ID | +The system prompt only tells the agent to use the memory tools it can actually call. If a tool profile or deny rule removes `memory_search`, the memory recall instructions are left out, and `memory_get` or `memory_expand` are only mentioned when they are allowed too. + Agents also get relevant memory without asking. Before each turn, dewee checks the user's message against past session summaries and adds up to 5 abstracts that score at least 0.3 to the system prompt, within about 200 tokens. Tune it with `auto_inject_enabled`, `auto_inject_threshold` and `auto_inject_max_tokens`. ## Consolidation diff --git a/src/content/docs/vi/concepts/memory-and-knowledge.md b/src/content/docs/vi/concepts/memory-and-knowledge.md index b8152a1..1086d76 100644 --- a/src/content/docs/vi/concepts/memory-and-knowledge.md +++ b/src/content/docs/vi/concepts/memory-and-knowledge.md @@ -28,6 +28,8 @@ File bộ nhớ được chia thành các đoạn tối đa 1.000 ký tự và | `memory_get` | Chỉ đọc những dòng cần thiết trong một file bộ nhớ | | `memory_expand` | Nạp toàn bộ bản tóm tắt của một session trước theo ID | +System prompt chỉ hướng dẫn agent dùng những tool bộ nhớ mà nó thực sự gọi được. Nếu một tool profile hoặc quy tắc deny loại bỏ `memory_search`, phần hướng dẫn gợi nhớ bộ nhớ sẽ bị bỏ qua, còn `memory_get` hoặc `memory_expand` chỉ được nhắc tới khi chúng cũng được cho phép. + Agent cũng nhận được bộ nhớ liên quan mà không cần hỏi. Trước mỗi lượt, dewee đối chiếu tin nhắn của người dùng với bản tóm tắt các session trước, rồi thêm tối đa 5 phần tóm lược có điểm từ 0,3 trở lên vào system prompt, trong giới hạn khoảng 200 token. Bạn điều chỉnh bằng `auto_inject_enabled`, `auto_inject_threshold` và `auto_inject_max_tokens`. ## Hợp nhất bộ nhớ