docs/guides/memory.md
Agent Zero can remember useful facts, solutions, preferences, and imported knowledge so future chats do not always start from zero.
That power needs curation. Long-term AI memory is not a solved problem, even for large AI labs and companies. A memory system can help the agent become more useful, but it can also preserve stale assumptions, wrong conclusions, old test data, or instructions that no longer fit. A sustainable memory system needs some human gardening.
When Agent Zero does something unexpected, keeps repeating a bad habit, or seems strangely confident about the wrong thing, Memory is one of the first places to look.
Open Memory from the dashboard or sidebar.
The dashboard shows remembered entries and imported knowledge chunks. Each row has metadata, a content preview, copy and delete actions, and a detail view.
Use the controls at the top to narrow what you are looking at.
The most useful controls are:
main, fragments, solutions, and skills.Start with ordinary words. If Agent Zero keeps using the wrong command, search for the command. If it keeps assuming the wrong project rule, search for the rule, client name, repo name, or phrase it keeps repeating.
Click a memory row to open its details.
In the detail view you can:
Edit a memory when it is almost right but needs correction. Delete it when it is wrong, obsolete, duplicated, too vague, or harmful to future reasoning.
Good memories are durable and useful:
Good memory reads like a note you would happily give a future teammate.
Remove or rewrite memories that are likely to poison future processing:
The danger is not that one bad memory always wins. The danger is that it becomes one more piece of "evidence" nudging the agent in the wrong direction again and again.
Check Memory early when Agent Zero:
A good debugging loop is:
Keep project-specific memories in the project where they belong. Client rules, repository conventions, local commands, and workflow preferences should not leak into unrelated work.
If Agent Zero is mixing contexts, check whether the memory belongs in global memory or project memory. Moving from "global forever" to "this project only" is one of the simplest ways to keep the system sane.
The dashboard can select multiple rows and copy, export, or delete them.
Before deleting many memories:
Memory curation is not about making the database empty. It is about keeping the right signal and removing the noise that makes the agent less trustworthy.