AI · alternatives · 2026

24 alternatives to Mastra Code
The AI coding agent that never compacts
Below are 24 products that do a similar job, ranked by how close each is in meaning and then by launch-day votes. Prices are shown for the 13 we have checked on their own sites, 13 of them free or with a free tier.
Only the free ones: free alternatives to Mastra Code →
- 1
Context Gatewayfree▲219Context Gateway is an open-source proxy that sits between AI coding agents and language models, compressing tool outputs to reduce token usage and improve quality.
Mar 2026 · github.com · its alternatives →
- 2
Agentmemoryfree▲310Persistent memory for Claude Code, Codex & coding agents
May 2026 · agent-memory.dev · its alternatives →
- 3
ContextPoolfree tier, from $7.99/mo▲180Persistent memory for AI coding agents
Apr 2026 · contextpool.io · its alternatives →
- 4

- 5
ContextsBasefree tier▲75Context Infrastructure for Coding Agents
Sep 2026 · contextsbase.com · its alternatives →
- 6

- 7
Keen Code▲125Keen Code is an open-source CLI coding agent written in Go that helps developers work with AI-assisted programming.
Jun 2026 · mochow13.github.io · its alternatives →
- 8
Contextberg▲102Turn your work into AI agent memory, served over MCP
May 2026 · contextberg.com · its alternatives →
- 9
Statefold▲76Coding agents that keep working while you're away
11d ago · statefold.sh · its alternatives →
- 10

- 11
Reikafree▲72A coding agent CLI designed around small local models first
Oct 2026 · reikacode.com · its alternatives →
- 12

Agent Context is a Visual Studio Code extension that lets developers attach external reference folders to their workspace via symlinks without copying files into their repository.
Apr 2026 · marketplace.visualstudio.com · its alternatives →
- 13
GitHubfree▲10PMB is a local-first memory system designed for AI coding agents like Claude Code, Cursor, and Codex.
Jun 2026 · github.com · its alternatives →
- 14

Your AI has your code's text, never its map. Fix that.
Jun 2026 · luuuc.github.io · its alternatives →
- 15

Semantic code search and memory for AI coding agents. Sub-millisecond lookups, persistent context across sessions.
Jan 2026 · ultrasync.dev · its alternatives →
- 16
Context Mode Insightfree tier, from $20/mo▲24An open-source MCP plugin (300,000+ developers) and a commercial Platform that builds Solutions on top. context-mode keeps raw data out of the LLM context window. Insight surfaces what your team is doing with the saved tokens.
Jun 2026 · context-mode.com · its alternatives →
- 17

A directory of Context Plugins, one per API. Each one grounds your coding agent in the API’s real specification, so what it writes is ready for production.
Sep 2026 · context.apimatic.io · its alternatives →
- 18
Codefree▲20Code is an open-source terminal-based coding agent that orchestrates multiple AI models including ChatGPT, Claude, and Gemini to assist with software development tasks.
2025 · github.com · its alternatives →
- 19

Persistent, project-local memory for AI coding agent via MCP
Aug 2026 · opencntx.dev · its alternatives →
- 20
Mini-coderfree▲6A good idea 👾 A fast, transparent agent for the terminal
Mar 2026 · github.com · its alternatives →
- 21

Open Source Context Infrastructure for AI Agents
May 2026 · ravbyte-ai.github.io · its alternatives →
- 22

This tool enables coding agents to communicate with each other, allowing them to coordinate and share information during development tasks.
2025 · github.com · its alternatives →
- 23
ctxfree▲4Keep your AI coding sessions alive.Never lose context again.
Jun 2026 · github.com · its alternatives →
- 24
Context-compactfree▲6agents. Not a custom truncation strategy, not a sliding window, not dropping old messages and hoping for the best. The failure mode is well-understood: your context window fills up, you truncate from the top, and the agent loses the thread. It forgets the task it was working on, the file path it just wrote to, the UUID it needs to reference. The conversation breaks. The problem is everyone keeps solving it by throwing away information instead. Truncation is fast to implement and quietly wrong. The agent appears to work until it doesn't, and debugging context loss in a long-running session is…
Mar 2026 · github.com · its alternatives →
Also compare
Ranked by how close each launch is in meaning, then by votes. Prices were read from each product’s own site when checked and can change. Refine with your own description →