Cookbooks
End-to-end recipes that combine add, search, and scoping into working agents with memory.
A cookbook is a complete recipe, not a single API call. Each one wires the add and search operations together with scoping to build a real agent that remembers across sessions. Copy the example, swap in your own LLM call and IDs, and ship.
Recipes
Support agent
Stop re-asking customers what they already told you.
Coding agent
Give a coding agent durable project memory.
Personal assistant
Track preferences that change over time without contradicting yourself.
AI companion
Keep long-running chats coherent without re-feeding history.
The pattern every recipe follows
- Add durable facts during the conversation — after each meaningful turn or
resolved task, write what's worth remembering. Let FishMem extract and
reconcile facts (
infer: true), or store rules verbatim (infer: false). - Search relevant memories before you answer — retrieve the few memories that bear on the current query and inject them into your prompt, instead of stuffing the entire history.
- Scope per user, agent, or run for isolation — bind every memory to a
user_id,agent_id, and/orrun_idso one customer, project, or session never sees another's facts.