CocoSearch

•

Indexes codebases into PostgreSQL using pgvector embeddings via Ollama to enable local-first hybrid semantic code search.

CocoSearch is a privacy-first, local-first hybrid semantic code search tool designed to help developers quickly understand and navigate codebases. It combines vector similarity from local Ollama-generated embeddings with traditional keyword matching using RRF fusion, allowing users to find code by its meaning, not just exact text. Leveraging CocoIndex and Tree-sitter for intelligent code chunking and symbol extraction, and PostgreSQL with pgvector for efficient storage, all operations remain entirely on your machine. It offers versatile interfaces including a command-line interface (CLI), an interactive REPL, a web dashboard, and seamless integration as an MCP server for AI assistants like Claude Code.

Características Principales

01Hybrid search combining semantic similarity and keyword matching via RRF fusion.
02Symbol filtering to narrow results by functions, classes, methods, or interfaces with glob patterns.
03Context expansion that automatically expands results to enclosing function or class boundaries.
04Query caching for faster repeated searches with exact and semantic thresholds.
05Privacy-first design with all operations running locally, no external API calls or telemetry.
060 GitHub stars

Casos de Uso

01Accelerate self-onboarding to new codebases by quickly finding relevant code sections.
02Integrate with AI assistants (e.g., Claude Code) for enhanced code exploration and generation.
03Perform advanced code analysis, debugging, and pipeline diagnostics to understand search result rankings.