AI agents need to balance immediate memory writing with periodic offline review to keep knowledge useful and up to date.
An agent can write a lesson while doing a task, or return to session records later and consolidate them in an offline process known as dreaming. Immediate writing makes the information available to the next session but competes with the current task for attention. Offline review can compare past experiences, correct outdated notes, and improve organization, but it requires compute and its results may not be ready immediately. A sensible design is to preserve searchable records and review important, frequently used or change-prone knowledge more often than rarely used stable notes.
