Mastra Code

AI agent

An open-source terminal coding agent with Build, Plan and Fast modes and explore, plan and execute subagents, whose observational memory compresses the session into notes instead of compacting it, so long sessions keep their context.

Find alternatives to Mastra Code

TypeAI agent
RoleStandalone tool
AvailabilityFreely available
DeploymentOn-device
Intended forDeveloper
SecurityNot recorded
StatusActive
Sold withinSold on its own
PricingOpen source

What it does

Features 7

code.mastra.ai

Sources

Pricing

Press release · 10 Oct 2026

The launch post calls it open-source; neither page names a price. Model use runs on the user's own provider keys.

Description

Press release · 10 Oct 2026

Launch post of 2026-02-24: "An open-source TUI coding agent with observational memory that compresses context without losing it." The docs list Build, Plan and Fast modes and Explore, Plan and Execute subagents.

What it does

Official documentation · 10 Oct 2026

Sold within

Official documentation · 10 Oct 2026

Installed directly: "npm install -g mastracode".

Name

Official documentation · 10 Oct 2026

"Mastra Code is a terminal-based AI coding agent that never compacts."

URL

Official documentation · 10 Oct 2026

Modalities

Official documentation · 12 Oct 2026

Page: 'Piped stdin is added after a plain-text prompt in the same first message / Show modified files or git diff'.

Also from Mastra

Open Mastra in the directory

Something wrong here? Send a correction — quote this product id: mastra-code.