Write a durable memory
Save one useful memory with path, priority, disclosure, glossary, and content.
Write one durable memory for one future use case.
A useful memory is easy to find, easy to trust, and narrow enough that it does not pollute unrelated prompts.
Example
Plaintext
Checklist
- Choose the right domain:
core://,preferences://, orproject://. - Keep the path short and specific.
- Write content as a fact, rule, decision, or workflow that should survive the session.
- Add a disclosure trigger that names the future task.
- Add glossary terms for aliases and likely prompt words.
- Set priority based on real importance.
- Run a recall query that should find the memory.
Avoid
- saving secrets, tokens, credentials, or private keys;
- combining unrelated project facts into one broad memory;
- copying the same rule into local
AGENTS.md,CLAUDE.md, and Lore; - using priority
0or1for everything; - writing disclosure as a vague label instead of a future trigger.