Semble

•
6.5k
•

Provides fast and accurate code search capabilities tailored for AI agents, retrieving relevant code snippets instantly.

Semble is a powerful code search library specifically engineered for AI agents. It delivers precise code snippets rapidly, significantly reducing token usage and agent waiting times. With indexing and searching a complete codebase typically taking less than a second, Semble offers dramatically faster performance than traditional code-specialized transformers while maintaining high retrieval quality. It operates entirely on CPU, requiring no API keys, GPU, or external services. Semble can also function as an MCP server, enabling various agent platforms like Claude Code, Cursor, Codex, and OpenCode to access and index repositories on demand.

Key Features

01Indexes repositories in ~250 ms and answers queries in ~1.5 ms, all on CPU.
02Achieves 0.854 NDCG@10, on par with code-specialized transformer models.
03Supports both local directory paths and remote Git URLs for indexing.
04Functions as an MCP server for seamless integration with AI agents.
05Requires zero setup, running on CPU without external services or GPUs.
064 GitHub stars

Use Cases

01Enable AI agents to quickly find relevant code snippets within a codebase.
02Integrate code search functionality into MCP-compatible agent environments like Claude Code or Cursor.
03Develop applications requiring fast, local, and accurate code retrieval for development or analysis.