Skip to content

Choice memory (anchor.engine.memory)

Reviews what the assistant learned from your choices, and forgets a wrong one.

python -m anchor.engine.memory memory/demo.json list
python -m anchor.engine.memory memory/demo.json forget 2
python -m anchor.engine.memory memory/demo.json clear --yes
Command / option Meaning
file (positional) The memory file (memory/<name>.json, or automations/<name>/memory.json).
list Shows the remembered choices, numbered.
forget N [N...] Forgets the choices with these numbers.
clear Forgets all the choices (asks for confirmation).
--yes With clear: does not ask for confirmation.

The old Portuguese names of these commands (listar, esquecer, limpar) still work, and --help shows them next to the English ones.