code-graph-rag logo
code-graph-rag
★ 5.3k
vs
subcog logo
subcog
★ 29

code-graph-rag vs subcog

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.; subcog: Subcog is a persistent memory system for AI coding assistants that captures decisions, learnings, and context from coding sessions. It features a single-binary distribution, three-layer storage architecture (SQLite, FTS5, usearch HNSW), MCP server integration, and Claude Code hooks. It achieves high accuracy on factual recall benchmarks.

01

TL;DR

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.
subcog logo
subcogRAG / Knowledge Base · ★ 29

Capturing and recalling technical decisions during development

02

Side-by-Side Comparison

Field
code-graph-rag logocode-graph-rag
subcog logosubcog
Category
RAG / Knowledge Base
RAG / Knowledge Base
Stars
★ 5.3k
★ 29
License
MIT
MIT
Install Command
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
cargo install subcog
Updated
1d ago
2mo ago
Open Source
Yes
Yes
Tags
ai, ast, claude-code
ai, ai-assistant, claude
03

Features

code-graph-rag logocode-graph-rag
01Multi-Language Support
02Tree-sitter Parsing
03Knowledge Graph Storage
04Natural Language Querying
05Advanced File Editing
subcog logosubcog
01Memory capture with automatic embedding generation (384-dimensional vectors)
02Hybrid search combining BM25 text search and vector similarity (RRF fusion)
03SQLite persistence as single source of truth (ACID-compliant)
04MCP server integration for AI agent interoperability
05Claude Code hooks for seamless IDE integration
04

Use Cases

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.
subcog logosubcog
↳Capturing and recalling technical decisions during development
↳Surfacing relevant past context when working on similar tasks
↳Maintaining persistent memory across coding sessions for AI assistants
FAQ

FAQ

What is the difference between code-graph-rag and subcog?
Both code-graph-rag and subcog are in the RAG / Knowledge Base category. code-graph-rag has 5.3k stars, while subcog has 29 stars.
Which is better, code-graph-rag or subcog?
The best choice depends on your use case. Choose code-graph-rag if Analyze and ingest multi-language codebases into a knowledge graph., and subcog if Capturing and recalling technical decisions during development.
Is code-graph-rag free or open source?
Yes, code-graph-rag is open source on GitHub (MIT).
Is subcog free or open source?
Yes, subcog 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