magic-context logo
magic-context
★ 2.5k
vs
claude-mem logo
claude-mem
★ 118.0k

magic-context vs claude-mem

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.; claude-mem: Claude-Mem captures supported agent activity through hooks and summarizes it with an observer. Local SQLite records and semantic search supply a compact project index to later sessions, with capture support varying by agent.

01

TL;DR

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

Keep one coding-agent session per project running for weeks

claude-mem logo
claude-memMemory & Context · ★ 118.0k

Recover project context in a later coding session.

02

Side-by-Side Comparison

Field
magic-context logomagic-context
claude-mem logoclaude-mem
Category
Memory & Context
Memory & Context
Stars
★ 2.5k
★ 118.0k
License
MIT
Apache-2.0
Install Command
npx @cortexkit/magic-context@latest setup
npx claude-mem install
Updated
Today
Today
Open Source
Yes
Yes
Tags
agent-framework, agent-memory, ai
ai, ai-agents, ai-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
claude-mem logoclaude-mem
01Hooks feed tool activity to a local worker.
02Observer-generated observations and summaries persist locally.
03MCP search retrieves details behind compact context indexes.
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
claude-mem logoclaude-mem
↳Recover project context in a later coding session.
↳Search past observations when a task needs details.
↳Share selected memory across supported agent integrations.
05

Best For

magic-context logomagic-context
EssentialTrending
claude-mem logoclaude-mem
Most Popular
FAQ

FAQ

What is the difference between magic-context and claude-mem?
Both magic-context and claude-mem are in the Memory & Context category. magic-context has 2.5k stars, while claude-mem has 118.0k stars.
Which is better, magic-context or claude-mem?
The best choice depends on your use case. Choose magic-context if Keep one coding-agent session per project running for weeks, and claude-mem if Recover project context in a later coding session..
Is magic-context free or open source?
Yes, magic-context is open source on GitHub (MIT).
Is claude-mem free or open source?
Yes, claude-mem 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