ctx
★ 1.2k
vs
cognee
★ 33.4k
ctx vs cognee
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.; cognee: Cognee turns documents, code and conversations into persistent graph-based memory for agents to retrieve across sessions. Its local text pipeline can extract and search with small models without an LLM API key, while generated answers and some media processing require additional model configuration.
01
TL;DR
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.
cogneeMemory & Context · ★ 33.4k
When to choose:
- Your tasks depend on relationships across sources and sessions.
- You can evaluate evidence quality and maintain the memory lifecycle.
When to skip:
- A maintained project file already contains all the context you need.
- You need proven retrieval accuracy without running a corpus-specific pilot.
02
Side-by-Side Comparison
Field
Category
Memory & Context
Memory & Context
Stars
★ 1.2k
★ 33.4k
License
Apache-2.0
Apache-2.0
Install Command
curl -fsSL https://ctx.rs/install | sh
uv pip install "cognee[gliner]"
Updated
1w ago
Today
Open Source
Yes
Yes
Tags
agent, agent-skills, agentic
agent-memory, agent-skills, ai
03
Features
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.
01Provides remember, recall, improve and forget operations for stored knowledge.
02Uses a local GLiNER extractor and local embeddings when no LLM key is configured.
03Connects graph, vector and code context during retrieval.
04Offers Python, CLI, plugins and MCP integration paths.
04
Use Cases
↳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.
↳Retain project decisions, fixes and lessons across agent sessions.
↳Connect company documentation, conversations, tickets and code in shared memory.
↳Model domain entities and relationships for grounded context retrieval.
05
Best For
—
Most Popular
FAQ
FAQ
What is the difference between ctx and cognee?
Both ctx and cognee are in the Memory & Context category. ctx has 1.2k stars, while cognee has 33.4k stars.
Which is better, ctx or cognee?
The best choice depends on your use case. Choose ctx if Recover decisions and failed approaches from earlier coding-agent sessions., and cognee if Retain project decisions, fixes and lessons across agent sessions..
Is ctx free or open source?
Yes, ctx is open source on GitHub (Apache-2.0).
Is cognee free or open source?
Yes, cognee is open source on GitHub (Apache-2.0).
Cloud Infrastructure
AdDeploy on DigitalOcean
Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.
→