
Mastra Code
The AI coding agent that never compacts
Mastra Code launched on February 27, 2026 with 198 votes, #148 of 16,628 launches that month and more than 99% of that year's launches.
What it does
If you’ve used a coding agent, you know the pain. You’re deep into a feature and everything is clicking. Then the context window fills up, it compacts, and key details are lost. Mastra Code is different. Powered by our state-of-the-art observational memory, it watches, reflects, and compresses context without losing important details. The result: long-running coding sessions that stay precise, letting you build faster, merge sooner, and ship more.
Mastra Code is a terminal-based AI coding agent that never compacts. Built on Mastra's AgentController , Agent , and Memory primitives. It runs in your terminal, connects to thousands of AI models, and provides tools for reading, searching, editing, and executing code. Mastra Code requires Node.js 22.19.0 or later. To enable @ filename suggestions, install the dependency described in File autocomplete . Install Mastra Code globally: npm pnpm Yarn Bun npm install -g mastracode pnpm add -g mastracode yarn global add mastracode bun add --global mastracode Or run it with npx : npm pnpm Yarn Bun npx mastracode pnpm dlx mastracode yarn dlx mastracode bun x mastracode Navigate to your project…from code.mastra.ai
Does a similar job
all alternatives →
Mastra FactoryAug 2026 · mastra.ai · ▲536We wanted to build a course for new Mastra devs to get started quickly. However, we knew videos would go out of date and be more difficult to maintain. We decided to launch our "course" as an MCP server. This way your coding agent actually teaches the course content to you and can help you write the code. We think this is a really interactive way to learn. Using an editor with MCP support (such as Cursor, Windsurf, or VSCode), your code agent will call the appropriate MCP tools which will return context for the agent. This context tries to instruct the agent that it should be teaching you…
Mastra 1.0Jan 2026 · github.com · ▲451Hi HN, we’re Sam, Shane, and Abhi, and we’re building Mastra (https://mastra.ai), an open-source JavaScript SDK for building agents on top of Vercel’s AI SDK. You can start a Mastra project with `npm create mastra` and create workflow graphs that can suspend/resume, build a RAG pipeline and write evals, give agents memory, create multi-agent workflows, and view it all in a local playground. Previously, we built Gatsby, the open-source React web framework. Later, we worked on an AI-powered CRM but it felt like we were having to roll all the AI bits (agentic workflows, evals,…
Context GatewayMar 2026 · github.com · ▲220We built an open-source proxy that sits between coding agents (Claude Code, OpenClaw, etc.) and the LLM, compressing tool outputs before they enter the context window. Demo: https://www.youtube.com/watch?v=-vFZ6MPrwjw#t=9s. Motivation: Agents are terrible at managing context. A single file read or grep can dump thousands of tokens into the window, most of it noise. This isn't just expensive — it actively degrades quality. Long-context benchmarks consistently show steep accuracy drops as context grows (OpenAI's GPT-5.4 eval goes from 97.2% at 32k to 36.6% at 1M…
AgentmemoryMay 2026 · agent-memory.dev · ▲310Persistent memory for Claude Code, Codex & coding agents


More ai this month
the category →



Paintings by AI models: programs run through a simulation of oil paint.
AI · 20d ago · stillwet.art

PixVerse R2▲381A real-time world model you can explore and change
AI · 28d ago · world.pixverse.video
Source: Product Hunt launch ↗
Launched alongside, February 2026
the whole month →



Lovon AI Therapy▲801Feel closer and have more fun with your partner every day!
AI · Feb 2026 · lovon.app

Hello my name is Ben Ward for the past 3 years I have been remastering the financial game Wall Street Raider created by Michael Jenkins originally on DOS in 1986. It has been a rough journey but I finally see the light at the end of the tunnel. I just recently redid the website and thought maybe the full story of how this project came to be would interest you all. Thank you for reading.
Work · Feb 2026 · wallstreetraider.com