Mastra Adds Memory Hooks to Observe and Modify Agent Memory Cycles
Original titleIntroducing Memory Hooks
AISummary
Mastra has added memory hooks that let developers monitor or alter an agent's observational memory cycles. Lifecycle hooks such as onObservationStart and onReflectionEnd report on each cycle, including token usage for spotting cost spikes, while transform hooks like beforeObservation and afterReflection can prune, remove, or redact memory data.
Source: Mastra Blog · mastra.aiPublished · added here