Model or dataset
giancarloerra/SocratiCode avatar
giancarloerra/SocratiCode

SocratiCode: a local Qdrant index that gives coding agents codebase context

Enterprise-grade (40m+ LOC) codebase intelligence, zero-setup, local & private Plugin/Skill/Extension or MCP: hybrid semantic search, polyglot dependency graphs, symbol-level impact analysis & call-flow, interactive HTML viewer, cross-project & branch-aware search, DB/API/infra knowledge. 61% less tokens, 84% fewer calls, 37x faster. Cloud in beta.

3,304 stars421 forksTypeScriptAGPL-3.0

At a glance

What is it?
SocratiCode is an AGPL-3.0 TypeScript MCP server, Claude Code plugin and VS Code extension that builds a local hybrid search index plus dependency and symbol graphs over large repositories. The design bet is zero configuration and Docker-managed storage; the real questions are index build time, AGPL obligations for anyone embedding it, and whether your team wants a vector database on developer machines.
Who is it for?
SocratiCode fits teams with large, multi-language repositories where agent context is the bottleneck and local-only indexing is acceptable: install it from the Claude Code plugin marketplace or the VS Code Marketplace and measure index build time on your own monorepo before making it a default.
Can I use it commercially?
Yes, with strict conditions. AGPL-3.0 is a network copyleft licence: if people use a modified version over a network, for example as a hosted service, you must offer them its source code under the same licence.
Is it still maintained?
Yes. The repository last received commits 1 day ago.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on September 15, 2026, and from our analysis. They are not legal advice.

DEEP OPEN-SOURCE ANALYSIS

The gap SocratiCode targets: agents that read files instead of understanding them

An assistant asked to change a function typically greps for the name, reads a handful of files, and guesses at the rest. On a small repository that works. On a repository measured in millions of lines, the README argues the search itself becomes the cost: it cites a benchmark on VS Code (2.45M lines) claiming 61% less context, 84% fewer tool calls, and 37x faster exploration than grep-based approaches, tested with Claude Opus 4.6. Those numbers come from the project's own benchmark and should be treated as vendor-reported, not independently reproduced here. The target user is an engineer or team running an AI assistant against a large, polyglot codebase who wants the assistant to answer questions like what calls this symbol or what breaks if I change this interface, without pasting half the repository into the context window. The project also claims to index searchable context artifacts such as database schemas, API specs and infrastructure configs, which extends the audience to platform work rather than application code alone.

What actually runs: Docker, Qdrant, embeddings and a fused retrieval layer

The architecture visible in the material is a local pipeline with four stages. First, source is chunked with AST awareness rather than by fixed line windows, which matters because a chunk that ends mid-function produces weak embeddings. Second, those chunks are embedded and stored in Qdrant, the vector database the README names explicitly. Third, retrieval is hybrid: semantic vector search combined with BM25 keyword search, merged with reciprocal rank fusion. Fourth, on top of the text index sit polyglot dependency graphs and symbol-level analysis for impact (blast radius) and call-flow tracing, which the README says covers 18 languages. An interactive HTML viewer renders the graphs, including circular-dependency visualisation. The file watcher keeps the index current on every change, and indexing is batched with resumable checkpoints, so an interrupted run does not restart from zero. Multiple agents can share one index with built-in coordination. The important design point is that the graph work is precomputed: traversal and blast-radius answers are looked up rather than reasoned out by the model, which is the mechanism behind the claim that smaller models can handle architectural questions.

Install paths: plugin, extension, or a stdio MCP server via npx

There are three documented routes. Claude Code users are pointed at the plugin marketplace, described in the README as the recommended option for that host. VS Code and Open VSX users install the extension from the respective marketplaces. Everyone else configures SocratiCode as a local stdio MCP server; the install links embed the exact command, which is npx -y --prefer-online socraticode@latest. Node.js 18.17 or newer is required, and Docker is the dependency that does the heavy lifting for the local database, so the machine needs a working Docker installation before first run. The README states no API keys are required and that data stays local by default. Embedding providers are configurable: OpenAI and Google Gemini are named as cloud options, alongside Qdrant as a remote vector store. The README references a full suite of configuration options but the excerpt provided here does not list the individual config keys, so the concrete key names for choosing a provider or pointing at a remote Qdrant cannot be confirmed from this material and should be read from the repository's own documentation before you plan a rollout.

Where the zero-configuration claim meets its limits

Zero configuration is accurate for the happy path and misleading as a general statement. A local Docker container plus a Qdrant instance plus an embedding model is a real footprint on a developer laptop: disk for the index, memory for the database, and CPU or GPU time for embedding. The README claims support for repositories at or above roughly 40 million lines, but it does not state how long a first full index of such a repository takes, and that number is the one that decides whether the tool is usable in practice. The honest position is that index build cost is unverified from the supplied material and is the first thing to measure on your own code. Two other constraints are structural. The MCP host must support local stdio servers, which rules out hosts that only speak remote HTTP transports. And the tool is the wrong choice for work that does not need codebase context: small repositories, single-file edits, or sessions where the agent already has the relevant files open will pay index maintenance cost for no retrieval benefit.

How this differs from Sourcegraph and from plain grep

The closest comparison is Sourcegraph, which also builds cross-repository code intelligence. The difference in approach is where the index lives and who operates it. Sourcegraph is a server product: you deploy it (or pay for the hosted version), it indexes centrally, and every developer queries the same instance, which is what makes organization-wide code search and code intelligence work across hundreds of repositories. SocratiCode inverts that. The index is built on the developer machine, stored in a local Qdrant instance managed by Docker, and exposed to the assistant through MCP rather than through a web UI. That buys privacy and setup simplicity and costs you shared state: two engineers on the same repository each build and maintain their own index. The README acknowledges this gap by describing SocratiCode Cloud as a private beta with a hosted, shared team index plus SSO, audit logs and VPC or air-gapped deployment. Grep, the other comparison the README makes, has no index at all, which is exactly why it scales badly as a retrieval strategy for an agent: every query re-reads files, and the assistant has no notion of call flow or blast radius.

Maintenance, release cadence and the AGPL-3.0 question

The repository shows three releases in the four days before the last push (v1.13.0, v1.13.1, v1.13.2), which indicates an active patch cadence rather than a stable, slow-moving tool. For adopters that cuts both ways: fixes arrive quickly, and the surface you depend on can shift. The upgrade cost is mostly operational, since the index format and the Docker-managed database are internal; the visible contract is the MCP tool surface your assistant calls, and that is what to watch across versions. On licensing, SocratiCode is AGPL-3.0. The practical consequence is that if you modify it and offer it to users over a network, the AGPL's source-availability condition is generally understood to apply to your modified version. Running it locally as a developer tool is a different situation from embedding it inside a product you distribute or host. This is not legal advice, and any team considering the second case should have counsel read the licence text and the project's own statements rather than rely on a summary. The README also states the open-source core remains free, with the cloud product as a separate beta offering, so there is no stated plan to move features behind a paywall, but that is a statement about intent, not a contractual guarantee.

Who should adopt it, and what to check before you do

Adopt it if your repository is large enough that agent context is the bottleneck, your languages are among the 18 covered, and local-only indexing matches your security posture. The plugin route for Claude Code and the extension for VS Code are the lowest-friction ways to try it, and the npx stdio server covers other MCP hosts. Do not adopt it if you need one shared index for a large team today (that is the beta cloud product, not the open-source core), if your work is small enough that grep is fine, or if AGPL-3.0 obligations conflict with how you ship software. Before committing, run three checks on your own repository: time a full index build and a subsequent incremental update after a branch switch, confirm Docker and the Qdrant container are acceptable on developer machines, and decide explicitly which embedding provider you will use, because that choice is what determines whether code stays on the machine or goes to OpenAI or Gemini. The README's benchmark numbers are the project's own; reproduce the retrieval quality on your code before you make the tool a default for your team.

Editorial conclusion

SocratiCode fits teams with large, multi-language repositories where agent context is the bottleneck and local-only indexing is acceptable: install it from the Claude Code plugin marketplace or the VS Code Marketplace and measure index build time on your own monorepo before making it a default. Skip it if you need a hosted shared index across a large team (that is the beta cloud product), if your work is mostly single-file edits, or if AGPL-3.0 distribution terms do not fit how you ship. Verify three things first: how long a full index takes on your repository, whether Docker and Qdrant are permitted on developer machines, and whether the embedding provider you pick keeps data local or sends code to OpenAI or Gemini.

Official sources

  1. giancarloerra/SocratiCode on GitHub
  2. License: AGPL-3.0
  3. Project website
  4. README
  5. Releases
Community notes

Community notes