ctx logo
ctx
★ 1.2k
vs
claude-mem logo
claude-mem
★ 118.0k

ctx vs claude-mem

ctx: ctx indexes local coding-agent histories for search, transcript retrieval and attribution of committed code to agent sessions. Its CLI also maps code relationships with ctx graph and compacts command output with ctx sift, with local processing as the default.; 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

ctx logo
ctxMemory & Context · ★ 1.2k
When to choose:
  • You need to recover decisions and failed approaches from existing coding transcripts.
  • You can verify source roots, refresh policy, exact readback and import diagnostics.
When to skip:
  • You require verified semantic or code-attribution capabilities from this review.
  • You expect retrieval to redact everything automatically or always return physical file locations.
claude-mem logo
claude-memMemory & Context · ★ 118.0k

Recover project context in a later coding session.

02

Side-by-Side Comparison

Field
ctx logoctx
claude-mem logoclaude-mem
Category
Memory & Context
Memory & Context
Stars
★ 1.2k
★ 118.0k
License
Apache-2.0
Apache-2.0
Install Command
curl -fsSL https://ctx.rs/install | sh
npx claude-mem install
Updated
1w ago
Today
Open Source
Yes
Yes
Tags
agent, agent-skills, agentic
ai, ai-agents, ai-memory
03

Features

ctx logoctx
01Searches local sessions with BM25 and optional local semantic search.
02Links committed code to recorded sessions and tool calls when evidence is available.
03Indexes code relationships in SQLite for graph queries and incremental updates.
04Compacts noisy command output and optionally retains originals for recall.
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

ctx logoctx
↳Recover decisions and failed approaches from earlier coding-agent sessions.
↳Investigate a code change by opening the agent transcript associated with its commit.
↳Inspect callers and dependencies while reducing repetitive tool output.
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

ctx logoctx
—
claude-mem logoclaude-mem
Most Popular
FAQ

FAQ

What is the difference between ctx and claude-mem?
Both ctx and claude-mem are in the Memory & Context category. ctx has 1.2k stars, while claude-mem has 118.0k stars.
Which is better, ctx or claude-mem?
The best choice depends on your use case. Choose ctx if Recover decisions and failed approaches from earlier coding-agent sessions., and claude-mem if Recover project context in a later coding session..
Is ctx free or open source?
Yes, ctx is open source on GitHub (Apache-2.0).
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