Mastra introduces durable agent goals
The Mastra 1.42.0 update introduces an experimental Goals feature that allows TypeScript-based AI agents to pursue durable, thread-scoped objectives. Supported by a database backend, agents use an in-loop LLM-as-a-judge mechanism to evaluate progress across process restarts and multi-step conversations until the objective is met.
Evaluating agentic behaviors using LLM-as-a-judge directly in the loop is a major step forward for building reliable, autonomous agents in TypeScript.
* Persistent Objectives: Moving away from ephemeral prompt instructions to database-backed, thread-scoped goals ensures agents stay on track even if the application environment restarts or gets interrupted.
* In-Loop LLM Judging: Automating success criteria check-ins directly within the agent loop reduces manual boilerplate and enables dynamic, self-terminating agent sessions.
* TypeScript Ecosystem Boost: As an enterprise-focused TypeScript framework, Mastra is positioning itself as a serious competitor to Python's LangChain and CrewAI for building robust production agents.
* Experimental Caveat: Since the API is marked as experimental, developers should expect potential breaking changes in storage schemas or configurations in future minor releases.
DISCOVERED
2h ago
2026-06-15
PUBLISHED
2h ago
2026-06-15
RELEVANCE
AUTHOR
mastra
