# socraticode

A local context engine that indexes your repo and hands the agent semantic search, dependency graphs and symbol-level impact analysis.

- plugin · `type=plugin` · Claude Code · ★ 3354
- Author: giancarloerra
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/giancarloerra/SocratiCode
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/plugins/socraticode

## What it does

SocratiCode builds a local index of your codebase and serves it to the agent over MCP. Search is hybrid: semantic embeddings plus BM25, fused with RRF. Under the hood it chunks files with AST awareness, builds polyglot dependency graphs with circular-dependency detection, and traces call flow and blast radius at symbol level. Database schemas, API specs and infra configs get indexed too, so they show up in the same search.

Indexing runs in batches with resumable checkpoints, so a pause, crash or restart doesn't lose progress. A file watcher keeps the index current on every change, and several agents can share one index at once.

Everything runs locally. Docker handles the setup, no API keys needed. Cloud embeddings (OpenAI, Google Gemini) and Qdrant are optional if you want them. No running Docker, no plugin — check that first. The license is AGPL-3.0, which matters if you plan to embed the engine in your own product.

## Requirements
- Works with: Docker

## Install

### Claude Code (native platform)

**Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add anthropics/claude-plugins-community
```
In the agent chat (not a shell):
```text
/plugin install socraticode@claude-community
```

## When to use it
- find the right code in a repo with tens of millions of lines
- trace what breaks when you change a function
- spot circular dependencies between modules
- keep the index fresh after every file edit
- search database schemas and API specs alongside code

## Example prompts
- Index this repository and find where authorization is handled
- Show me the dependency graph for the `billing` module and any cycles in it
- What breaks if I change this function's signature?

## Similar
- [ponytail](https://affpapa.org/en/nevibecode/plugins/ponytail.md) — plugin · ★ 176443
- [impeccable](https://affpapa.org/en/nevibecode/plugins/impeccable.md) — plugin · ★ 88212
- [last-30-days-skill](https://affpapa.org/en/nevibecode/plugins/last-30-days-skill.md) — plugin · ★ 65508
- [claude-hud](https://affpapa.org/en/nevibecode/plugins/claude-hud.md) — plugin · ★ 28841
- [understand-anything](https://affpapa.org/en/nevibecode/plugins/understand-anything.md) — plugin · ★ 88314
- [mem0](https://affpapa.org/en/nevibecode/plugins/mem0.md) — plugin · ★ 67829

From the same set: [giancarloerra/socraticode](https://affpapa.org/en/nevibecode/by/giancarloerra/socraticode.md) — 2 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
