| 1 | --- |
| 2 | name: forget |
| 3 | description: Help the user remove a stored fact using Codewhale's Context Lens when they ask to forget or delete a memory. |
| 4 | invocation: model+user |
| 5 | --- |
| 6 | |
| 7 | # Forget |
| 8 | |
| 9 | Persistent user memory is opt-in and off by default. `[memory] enabled = true` |
| 10 | or `backend = "native"` in `config.toml` turns it on; an explicit `backend` |
| 11 | overrides `enabled`. The memory tools (`remember`, `memory_search`) exist only |
| 12 | while it is on. |
| 13 | |
| 14 | Forgetting belongs to the user's Context Lens controls. The `remember` tool |
| 15 | supports append and revise candidates only; it cannot submit a deletion. |
| 16 | Do not invent a removal proposal or claim one is pending. |
| 17 | |
| 18 | 1. Check whether persistent memory is enabled in this session. If the memory |
| 19 | tools do not exist, not even behind `tool_search`, tell the user that |
| 20 | persistent memory is disabled and which settings turn it on; do not direct |
| 21 | them to nonexistent Context Lens tools or claim a stored fact exists. |
| 22 | 2. Otherwise, identify the fact the user wants removed, quoting stored text |
| 23 | only when it is actually available. Do not claim a fact exists merely because |
| 24 | it was mentioned in the conversation. |
| 25 | 3. Direct the user to select that fact in Context Lens and use its forget |
| 26 | action. If the host has no Context Lens (for example, a terminal-only |
| 27 | session), say that this action is unavailable there; do not substitute direct |
| 28 | edits to memory files or a fake tool call. |
| 29 | 4. State that nothing has been deleted until the control reports completion. |
| 30 | Verify removal when the host exposes that evidence; otherwise attribute the |
| 31 | confirmation to the user. |
| 32 | |
| 33 | Do not overwrite memory with an empty or contradictory note to simulate deletion. |
| 34 | Removing stored memory does not erase the existing conversation or its history. |
| 35 |