Home/Developer Tools/SocratiCode
SocratiCode logo

SocratiCode

giancarloerra/SocratiCode

Enterprise-grade codebase intelligence with local setup, hybrid semantic search, and polyglot dependency graphs

GraphCanon updated today · GitHub synced today · 27 views this month

3.3k stars409 forksLast push 1w TypeScript AGPL-3.0

Decision brief

SocratiCode is an advanced code intelligence tool tailored for large-scale enterprise projects.

Good fit when

  • - When working with extremely large codebases (>40 million lines of code), as SocratiCode supports such scale efficiently.
  • - For teams that prioritize local and private setups over cloud-based services, ensuring data privacy and compliance.

Avoid when

  • - If your project scale is small (<1 million lines of code), you may find SocratiCode's capabilities overkill and more complex than necessary.
  • - For organizations that do not require local setup and can leverage cloud-based solutions, as using SocratiCode might offer redundant features.

Observed Jul 12, 2026 · Source: enrich:decision_facts

Verify the decision

Adoption

Package downloads where a registry match exists. GitHub stars (3,263) are secondary evidence.

npm downloads (30d)
18,109·npm downloads API·today

Maintenance and security

Full trust report
Maintenance
Very active (6d since push)
As of today
Provenance
Not a fork · Personal account
As of today
Security (OSV)
No MCP manifest
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

npm install SocratiCode
npm

How it fits your stack(11)

Typed graph edges - alternatives, integrations, successors, and dependencies. Ranked by relationship type, not raw GitHub stars.

Integrates

Relationship graph

Optional deeper exploration of typed edges and category neighbours.

Similar tools

Same-category neighbours not already linked as typed edges.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

SocratiCode offers advanced capabilities for code analysis including symbol-level impact analysis, cross-project and branch-aware search. Integrates with various AI frameworks like Claude and Gemini.

Capability facts

Deploy
Self-host

Source: dockerfile:docker-compose.yml · Aug 21, 2026

Docker
Dockerfile present

Source: dockerfile:docker-compose.yml · Aug 21, 2026

CLI
CLI entrypoint

Source: package.json:bin|scripts · Aug 21, 2026

MCP server
Ships MCP server

Source: package.json:@modelcontextprotocol/* · Aug 21, 2026

Languages
typescript, javascript

Source: github.language+package.json · Aug 21, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Node.js runtimeNode.js

Source: README excerpt (regex_v1, Aug 21, 2026)

"command": "npx",
Source link
Works with Claude DesktopClaude Desktop

Source: README excerpt (regex_v1, Aug 21, 2026)

**All MCP hosts** — add the following to your `mcpServers` (Claude Desktop, Windsurf, Cline, Roo Code) or `servers` (VS Code project-local `.vscode/mcp.js
Source link
Works with CursorCursor

Source: README excerpt (regex_v1, Aug 21, 2026)

**One-click install** — Claude Code, VS Code and Cursor:
Source link

Tags

README

Quick Start

Only Docker (running) required.

One-click install — Claude Code, VS Code and Cursor:

All MCP hosts — add the following to your mcpServers (Claude Desktop, Windsurf, Cline, Roo Code) or servers (VS Code project-local .vscode/mcp.json) config:

"socraticode": {
  "command": "npx",
  "args": ["-y", "socraticode"]
}

Claude Code — install the plugin (recommended, includes workflow skills for best results):

From your shell:

claude plugin marketplace add giancarloerra/socraticode
claude plugin install socraticode@socraticode

Or from within Claude Code:

/plugin marketplace add giancarloerra/socraticode
/plugin install socraticode@socraticode

Auto-updates: After installing, enable automatic updates by opening /plugin → Marketplaces → select socraticode → Enable auto-update.

Or as MCP only (without skills):

claude mcp add socraticode -- npx -y socraticode

Updating: npx caches the package after the first run. To get the latest version, clear the cache and restart your MCP host: rm -rf ~/.npm/_npx && claude mcp restart socraticode. Alternatively, use npx -y socraticode@latest in your config to always check for updates on startup (slightly slower).

OpenCode — add to your opencode.json (or opencode.jsonc):

{
  "mcp": {
    "socraticode": {
      "type": "local",
      "command": ["npx", "-y", "socraticode"],
      "enabled": true
    }
  }
}

OpenAI Codex CLI — add to ~/.codex/config.toml:

[mcp_servers.socraticode]
command = "npx"
args = ["-y", "socraticode"]

Restart your host. On first use SocratiCode automatically pulls Docker images, starts its own Qdrant and Ollama containers, and downloads the embedding model — one-time setup, ~5 minutes depending on your connection. After that, it starts in seconds.

First time on a project — ask your AI: "Index this codebase". Indexing runs in the background; ask "What is the codebase index status?" to monitor progress. Depending on codebase size and whether you're using GPU-accelerated Ollama or cloud embeddings, first-time indexing can take anywhere from a few seconds to a few minutes (it takes under 10 minutes to first-index +3 million lines of code on a Macbook Pro M4). Once complete it doesn't need to be run again, you can search, explore the dependency graph, and query context artifacts.

Every time after that — just use the tools (search, graph, etc.). On server startup SocratiCode automatically detects previously indexed projects, restarts the file watcher, and runs an incremental update to catch any changes made while the server was down. If indexing was interrupted, it resumes automatically from the last checkpoint. You can also explicitly start or restart the watcher with codebase_watch { action: "start" }.

macOS / Windows on large codebases: Docker containers can't use the GPU. For medium-to-large repos, install native Ollama (auto-detected, no config change needed) for Metal/CUDA acceleration, or use OpenAI embeddings for speed without a local install. Full details.

Recommended: For best results, add the Agent Instructions to your AI assistant's system prompt or project instructions file (CLAUDE.md, AGENTS.md, etc.). The key principle — search before reading — helps your AI use SocratiCode's tools effectively and avoid unnecessary file reads.

Claude Code users: If you installed the SocratiCode plugin, the Agent Instructions are included automatically as skills — no need to add them to your CLAUDE.md. The plugin also bundles the MCP server, so you don't need a separate claude mcp add.

Advanced: cloud embeddings (OpenAI / Google), external Qdrant, remote Ollama, native Ollama, and dozens of tuning optio

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.