Expand description
The memory tool: the agent writing to its own MEMORY.md.
Kept in its own module because it is the one built-in tool that writes outside the
workspace — deliberately, to the file the config names, with a budget and a lock (see
crate::memory). Everything it does is reported back to the model and shown to the
user in the transcript, so a memory change is never silent.
Structs§
- Memory
Tool - Taint
Hit - What matched when a
memorycall overlapped a tool result from the current turn (#482). - Turn
Results - Shared per-turn buffer of tool results inspected by
MemoryTool::needs_approval(#482).
Constants§
- MEMORY_
TAINT_ MIN_ RUN - Minimum verbatim overlap (in normalized characters) from a tool result in the same turn that
triggers the approval gate on a
memorymutation (#482).
Functions§
- normalize_
for_ taint - Normalize text for verbatim overlap checks: strip leading reader line-number prefixes
(
^\s*\d+[|:]\s*) per line and collapse runs of whitespace to single spaces.