Mastra adds memory hooks to monitor and transform agent observations
AIMastra says it now lets developers add lifecycle and transform hooks to its observational memory system. Lifecycle hooks log cycle starts and ends with token usage, while transform hooks can modify observations and reflections before they are stored. The release also includes skillResultRedactor(), which replaces skill file contents in tool results with a placeholder so the agent still remembers the skill.







