← all repositories
giancarloerra/SocratiCode

Local codebase memory for AI that outgrew grep

SocratiCode indexes your entire codebase and infrastructure so AI assistants can search, trace dependencies, and reason about blast radius instead of grepping for strings.

SocratiCode
Not currently ranked — collecting fresh signals.
star history

What it does

SocratiCode is a local context engine that indexes entire codebases—up to roughly 40 million lines—and surrounding artifacts like database schemas, API specs, and infrastructure configs. It exposes that understanding to any MCP-compatible AI host through hybrid semantic-and-BM25 search, polyglot dependency graphs, and symbol-level impact analysis across 18 languages. Everything runs in Docker on your machine by default; no API keys are required and no data leaves the box.

The interesting bit

Instead of dumping raw files into the context window, it pre-computes architectural relationships—blast radius, call flow, dependency traversal—so smaller models can tackle complex refactoring tasks that normally require expensive reasoning models. The README claims this cuts context usage by 61%, tool calls by 84%, and runs 37× faster than grep-based exploration on a 2.45 M-line benchmark with Claude Opus 4.6.

Key highlights

  • Hybrid search fuses vector embeddings with BM25 ranking via reciprocal rank fusion, paired with AST-aware chunking.
  • Interactive HTML graph explorer for visual dependency navigation, including circular-dependency visualisation.
  • Resumable, batched indexing with automatic checkpoints; a file watcher keeps the index warm across sessions and branches.
  • Multi-agent ready: several AI assistants can share one index with automatic coordination.
  • Cloud options (OpenAI, Gemini embeddings, Qdrant) exist but are strictly opt-in; the default keeps all data local.

Caveats

  • First-time indexing requires Docker and can take several minutes for multi-million-line repos; the README cites under 10 minutes for 3 M+ lines on a MacBook Pro M4.
  • A hosted “Cloud” tier with SSO and shared team indexes is still in private beta, so most users are on the self-managed path for now.

Verdict

Worth a look if you’re trying to get AI assistants to reason accurately across sprawling, polyglot monorepos without pasting files into chat. Skip it if your project is small enough that ripgrep and a good README already answer every question.

Frequently asked

What is giancarloerra/SocratiCode?
SocratiCode indexes your entire codebase and infrastructure so AI assistants can search, trace dependencies, and reason about blast radius instead of grepping for strings.
Is SocratiCode open source?
Yes — giancarloerra/SocratiCode is open source, released under the AGPL-3.0 license.
What language is SocratiCode written in?
giancarloerra/SocratiCode is primarily written in TypeScript.
How popular is SocratiCode?
giancarloerra/SocratiCode has 3.1k stars on GitHub.
Where can I find SocratiCode?
giancarloerra/SocratiCode is on GitHub at https://github.com/giancarloerra/SocratiCode.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.