By gplv2
Semantic code search with multiple modes: semantic (embedding similarity for conceptual queries), fulltext (FTS5 keyword matching for exact identifiers), and hybrid (combined - best of both). Supports Voyage AI (code-optimized), OpenAI, or local models via LM Studio. JSON output for AI tools.
Get a chunk by reference with optional context. Use after query finds something interesting to expand context.
Clean up the index by removing entries for files that have been deleted and pruning deleted git branches.
Detect hardware acceleration support (CUDA, MPS) for cross-encoder reranking
Display comprehensive database diagnostics including table sizes, indexes, SQLite info, FTS5 stats, and integrity checks.
Run indexing with ogrep. If no path is provided, index the current directory.
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Semantic grep for codebases — local-first, SQLite-backed, with agentic Claude Code integration.
ogrep helps you search code by meaning, not just keywords. It builds a local semantic index (.ogrep/index.sqlite by default) and retrieves the most relevant code chunks for questions like:
GitHub: github.com/gplv2/ogrep-marketplace Website: ogrep.be — quick overview
ogrep now runs as a dedicated Claude Code subagent — dispatched automatically when Claude encounters conceptual code questions. This is a fundamental shift from passive skill to active agent.
What changed:
subagent_type (like episodic-memory), running in its own context window with a specialized system prompt--summarize overview first, narrow to relevant files, then expand specific chunks. Saves ~85% tokens vs raw resultsfile:line references. No raw JSON in your conversationWhy it matters: Claude now dispatches ogrep at the right moment for conceptual questions, without manual invocation. The agent handles the full search workflow autonomously and returns concise, actionable results.
Trimmed skill definition from 548 to 180 lines (67% reduction). Better trigger accuracy with explicit negative examples.
AST-aware chunking is now enabled by default when tree-sitter is available. This produces semantically coherent chunks (complete functions, classes) instead of arbitrary line breaks.
--ast flag removed (now default behavior)--no-ast flag added to explicitly disablepip install "ogrep[ast]" # Enable AST support
ogrep index . # AST enabled automatically
ogrep index . --no-ast # Explicitly disable
Voyage AI's voyage-code-3 achieves best search quality in our benchmarks:
| Configuration | Hit@1 | MRR | Cost |
|---|---|---|---|
| Voyage voyage-code-3 | 7/10 | 0.717 | $0.06/M |
| OpenAI text-embedding-3-small | 6/10 | 0.700 | $0.02/M |
| Nomic (local) + flashrank | 6/10 | 0.633 | Free |
pip install "ogrep[voyage]"
export VOYAGE_API_KEY="pa-..."
ogrep index . -m voyage-code-3
Reranking degrades results when using high-quality embeddings:
| Embedding | Without Rerank | With Rerank | Action |
|---|---|---|---|
| Voyage | 0.717 MRR | 0.593 (-17%) | ❌ Don't rerank |
| OpenAI | 0.700 MRR | 0.550 (-21%) | ❌ Don't rerank |
| Nomic (local) | 0.545 MRR | 0.633 (+16%) | ✅ Use reranking |
The rule: Reranking helps weak embeddings but hurts strong ones.
When reranking is needed, FlashRank is now the default:
--glob "*.py" and --exclude "tests/*"--summarize for file-level aggregation (~85% token savings)ogrep query "auth" --branch main--ast flag removed (AST is now default)--no-json for text)pip install ogrep
pipx install ogrep
Note: pipx sometimes has issues. If you encounter problems, use pip instead.
# Add the marketplace
/plugin marketplace add gplv2/ogrep-marketplace
# Install the plugin
/plugin install ogrep@ogrep-marketplace
npx claudepluginhub gplv2/ogrep-marketplace --plugin ogrepBeacon — semantic code search for Claude Code
Semantic code search powered by ColBERT. Replaces grep/ripgrep with natural language understanding for smarter code navigation.
Smart semantic + hybrid code search for local repositories
Semantic code search for Claude Code. Automatically indexes your project and provides intelligent search capabilities.
Precise local semantic code search via MCP. Indexes your codebase with Go AST parsing, embeds with Ollama or LM Studio, and exposes vector search to Claude through an MCP server — no cloud, no npm.
A vector-powered CLI for semantic search over files (Vexor skill bundle).