Skip to content
Agent Radar

Mastra Code

Updated Mastra

Summary

Mastra Code is an open-source terminal coding agent, announced February 24, 2026, built around observational memory instead of compaction.

Tool
Mastra
Date
Open source
Yes
Pricing
Announced as open source. No license fee is stated in the launch post.

On February 24, 2026, Mastra announced Mastra Code, a terminal coding agent. The post's claim is that observational memory watches the conversation, writes observations, and compresses context without the usual compaction pass that drops details. Threads, messages, token data, and that memory sit in SQLite on your machine via LibSQL, so the stored session stays local.

The agent has a plan mode for research and a build mode for execution. Mastra says it is built from Mastra's own Agent, Memory, Workspace, Tools, Model Router, and MCP primitives; a terminal UI from pi-tui; and ast-grep for structured edits instead of a chain of search-and-replace calls. You install it and run it in the terminal. There is no editor plugin required.

The post does not quote a model price. The later extraction of the loop is Agent Controller. The hub is Mastra.

Alternatives

Mastra compared with its alternatives
ToolLicensePricing note
MastraThis launchTypeScript agent framework. Mastra Code is the terminal agent; AgentController is the extracted loop, in @mastra/core 1.47.0 or later.
Open sourceMastra Code and AgentController are announced as open source. No license fee is stated in the posts we cited.
OpenCodeOpen-source coding agent from the anomalyco/opencode repository, MIT-licensed, with a terminal client and a site at opencode.ai.
MITThe client is MIT-licensed. Model access is separate; this page does not quote a hosted plan.
AiderApache-2.0 terminal pair programmer. The project describes Aider as AI pair programming in your terminal.
Apache-2.0Apache-2.0 software. Model access is separate.
ClineApache-2.0 coding agent published as an SDK, IDE extension, or CLI assistant in the cline/cline repository.
Apache-2.0The repository license is Apache-2.0. Model access is separate.

More from Mastra

View all
  • Mastra Agent Controller

    MastraMastra extracted the loop around Mastra Code into AgentController, shipping in @mastra/core 1.47.0 on June 18, 2026.

Questions

What is Mastra?

Mastra is a TypeScript framework for agents. In 2026 the team shipped Mastra Code, a terminal coding agent, and then AgentController, the class that wraps the agent loop.

What are Mastra alternatives?

OpenAI's Agents SDK and Agents API, OpenHands Agent Canvas, and OpenCode if you want a finished terminal client rather than a framework.

Filed on Agent Radar. Claims in this note are limited to the sources above.