TrueMemory logo
TrueMemory
★ 382
vs
code-graph-rag logo
code-graph-rag
★ 5.3k

TrueMemory vs code-graph-rag

TrueMemory: TrueMemory is a neuroscience-inspired persistent memory system for AI agents. It achieves state-of-the-art scores on LoCoMo, LongMemEval, and BEAM benchmarks while running entirely offline on a single SQLite file. The six-layer retrieval pipeline with an encoding gate filters noise and stores only meaningful information.; code-graph-rag: Code-Graph-RAG is an accurate Retrieval-Augmented Generation (RAG) system designed for multi-language codebases. It uses Tree-sitter to analyze code, build comprehensive knowledge graphs, and allows natural language querying of codebase structure and relationships. The system also includes advanced editing capabilities, enabling users to modify code directly through natural language prompts.

01

TL;DR

TrueMemory logo
TrueMemoryRAG / Knowledge Base · ★ 382

Personal AI assistant that remembers user preferences and history across conversations.

code-graph-rag logo
code-graph-ragRAG / Knowledge Base · ★ 5.3k
When to choose:
  • You want to parse a multi-language monorepo with Tree-sitter into a Memgraph knowledge graph and query or edit it via natural language or Claude Code MCP.
  • You want semantic code search using UniXcoder embeddings paired with Cypher graph queries.
When to skip:
  • You want RAG over PDFs, Word files, and slides rather than source code repositories; use RAGFlow or MaxKB.
  • You want a zero-dependency code context MCP server without running Docker and Memgraph; jCodeMunch or Context7 are much lighter.
02

Side-by-Side Comparison

Field
TrueMemory logoTrueMemory
code-graph-rag logocode-graph-rag
Category
RAG / Knowledge Base
RAG / Knowledge Base
Stars
★ 382
★ 5.3k
License
AGPL-3.0
MIT
Install Command
curl -LsSf https://raw.githubusercontent.com/buildingjoshbetter/TrueMemory/main/install.sh | sh
git clone https://github.com/vitali87/code-graph-rag.git && cd code-graph-rag && uv sync --extra treesitter-full && cp .env.example .env && docker-compose up -d
Updated
1w ago
1d ago
Open Source
Yes
Yes
Tags
agent-memory, ai, ai-agents
ai, ast, claude-code
03

Features

TrueMemory logoTrueMemory
01Remembers everything across sessions – facts, preferences, decisions, corrections.
02State-of-the-art benchmark scores: 93.0% on LoCoMo, 92.0% on LongMemEval, 76.6% on BEAM-1M.
03Runs locally on a single SQLite file – zero cloud, zero API keys for Edge and Base tiers.
04Neuroscience-inspired architecture with six retrieval layers and an encoding gate.
05Works with Claude Code and Claude Desktop via pre-built lifecycle hooks.
code-graph-rag logocode-graph-rag
01Multi-Language Support
02Tree-sitter Parsing
03Knowledge Graph Storage
04Natural Language Querying
05Advanced File Editing
04

Use Cases

TrueMemory logoTrueMemory
↳Personal AI assistant that remembers user preferences and history across conversations.
↳Developer tool that maintains context across long coding sessions.
↳Research and simulation where agents need long-horizon memory.
code-graph-rag logocode-graph-rag
↳Analyze and ingest multi-language codebases into a knowledge graph.
↳Query codebase structure and relationships using natural language.
↳Receive AI-powered optimization suggestions and perform surgical code edits.
FAQ

FAQ

What is the difference between TrueMemory and code-graph-rag?
Both TrueMemory and code-graph-rag are in the RAG / Knowledge Base category. TrueMemory has 382 stars, while code-graph-rag has 5.3k stars.
Which is better, TrueMemory or code-graph-rag?
The best choice depends on your use case. Choose TrueMemory if Personal AI assistant that remembers user preferences and history across conversations., and code-graph-rag if Analyze and ingest multi-language codebases into a knowledge graph..
Is TrueMemory free or open source?
Yes, TrueMemory is open source on GitHub (AGPL-3.0).
Is code-graph-rag free or open source?
Yes, code-graph-rag is open source on GitHub (MIT).
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