magic-context logo
magic-context
★ 2.4k
vs
letta logo
letta
★ 25.2k

magic-context vs letta

magic-context: Magic Context is a context and memory plugin for coding agent harnesses (OpenCode, Pi and OMP) that compresses history in the background, lifts decisions and conventions into project memory and recalls them each turn. It replaces the host's built-in compaction so one session per project can run for weeks without pauses.; letta: Letta is a powerful platform for building stateful AI agents equipped with advanced memory, enabling them to learn and self-improve over time. It provides both a command-line interface for local agent execution and a comprehensive API with Python and TypeScript SDKs for seamless integration into applications.

01

TL;DR

magic-context logo
magic-contextMemory & Context · ★ 2.4k

Keep one coding-agent session per project running for weeks

letta logo
lettaMemory & Context · ★ 25.2k
When to choose:
  • You want a long-lived agent that remembers past work and rewrites its own memory and context over time.
  • You want one agent reachable from CLI, desktop, browser, mobile and messaging apps, with subagents, schedules and hooks.
  • You want memory you can inspect: the README says context is tracked in git and can sync to your own repository.
When to skip:
  • You only need to add memory to an agent you already use through MCP; a small MCP memory server is a lighter fit.
  • You rely on older Letta tutorials or the V1 API server: the project restructured, and the V1 server is retired.
  • You want everything to work without signing in: Letta Cloud is the default backend and some features need it.
02

Side-by-Side Comparison

Field
magic-context logomagic-context
letta logoletta
Category
Memory & Context
Memory & Context
Stars
★ 2.4k
★ 25.2k
License
MIT
Apache-2.0
Install Command
npx @cortexkit/magic-context@latest setup
npm install -g @letta-ai/letta-code
Updated
1d ago
5d ago
Open Source
Yes
Yes
Tags
agent-framework, agent-memory, ai
Stateful AI, Agent Platform, Advanced Memory
03

Features

magic-context logomagic-context
01Background history compression that lifts durable knowledge into project memory
02Overnight dreamer agents verify, deduplicate and curate memories
03Automatic recall each turn plus search across memories, past conversations and git history
04Setup wizard that configures OpenCode, Pi or OMP and disables built-in compaction
letta logoletta
01Build stateful AI agents with advanced memory
02Agents capable of learning and self-improvement over time
03CLI tool for running agents locally in your terminal
04Comprehensive API for integrating agents into applications
05Support for skills and subagents; fully model-agnostic
04

Use Cases

magic-context logomagic-context
↳Keep one coding-agent session per project running for weeks
↳Avoid compaction pauses that drop context mid-task
↳Give an agent memory of past decisions and project conventions
letta logoletta
↳Running AI agents locally in your terminal for coding and general tasks.
↳Integrating stateful AI agents into custom applications using the API and SDKs.
↳Developing self-improving AI systems that adapt and learn continually.
05

Best For

magic-context logomagic-context
EssentialTrending
letta logoletta
Most PopularEssentialTrending
FAQ

FAQ

What is the difference between magic-context and letta?
Both magic-context and letta are in the Memory & Context category. magic-context has 2.4k stars, while letta has 25.2k stars.
Which is better, magic-context or letta?
The best choice depends on your use case. Choose magic-context if Keep one coding-agent session per project running for weeks, and letta if Running AI agents locally in your terminal for coding and general tasks..
Is magic-context free or open source?
Yes, magic-context is open source on GitHub (MIT).
Is letta free or open source?
Yes, letta is open source on GitHub (Apache-2.0).
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit
→

Related