semble
Fast and Accurate Code Search for Agents
Decision gist · record as of 2026-08-14
Yes. Semble is actively maintained, has low install friction, carries a permissive MIT license, and solves a real problem for agent-assisted development. It has no known vulnerabilities and supports current Python versions (3.10–3.13). Install it if you work with coding agents or need fast, token-efficient code search; the MCP integration and CLI are both straightforward to set up.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- On first use, downloads an embedding model from Hugging Face (one-time, requires network access).
- Low friction: pure Python wheel with 7 runtime dependencies including model2vec for embeddings and questionary for CLI prompts.
License · maintenance · safety
permissive license (permissive) — MIT License permits unrestricted commercial and private use, modification, and redistribution with only attribution and license-text retention required.
last release 2026-08-12 (2 days) · last repo commit 2026-08-12 · 5,879 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 131,242 downloads/mo, #11,598 on PyPI
Alternatives
Verify before relying
pip install semble
from semble import SembleIndex
index = SembleIndex.from_path("./my-project")
results = index.search("authentication flow")
for result in results:
print(result)- Whether the embedding model download size and cache footprint are acceptable for resource-constrained environments.
- Performance characteristics when indexing very large codebases (millions of lines) or with many concurrent searches.
- Compatibility and behavior with non-standard or mixed-language repositories.
What it is and what it does
Semble is a code search engine designed for AI agents and developers. It builds an index of a codebase using embeddings from model2vec, then answers natural-language queries by returning only the relevant code snippets—not full files. The library runs entirely on CPU with no external APIs or GPU required, and caches both indexes and the embedding model locally.
You can use Semble three ways: as an MCP server (for Claude Code, Cursor, Codex, and other agents), as a CLI tool for one-off searches, or as a Python library for programmatic access. It reads .gitignore and .sembleignore to control which files are indexed, and automatically skips well-known non-source directories. The fact sheet indicates indexing takes roughly 500 ms for an average repo and queries return in roughly 1 ms, with token savings estimated at ~99% compared to reading full files.
Use it for
- Integrate code search into Claude Code, Cursor, or other MCP-compatible agents so they can find relevant snippets without grepping or reading full files.
- Build a CLI tool to search a remote repository (cloned on demand) or local codebase without setting up a full development environment.
- Use as a Python library to add semantic code search to custom tooling, RAG pipelines, or agent workflows.
- Quickly locate code patterns (e.g., 'how is authentication handled?') across unfamiliar codebases during onboarding or code review.
- Track token savings across searches to quantify efficiency gains when using Semble instead of traditional grep-and-read workflows.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Semble is actively maintained, has low install friction, carries a permissive MIT license, and solves a real problem for agent-assisted development. It has no known vulnerabilities and supports current Python versions (3.10–3.13). Install it if you work with coding agents or need fast, token-efficient code search; the MCP integration and CLI are both straightforward to set up.
Install
semble on PyPI
Before you install
Low friction: pure Python wheel with 7 runtime dependencies including model2vec for embeddings and questionary for CLI prompts. Active maintenance—released 2 days ago with 5879 repository stars and continuous commits.
Requires Python 3.10 or later. On first use, downloads an embedding model from Hugging Face (one-time, requires network access).
License in practice
MIT License permits unrestricted commercial and private use, modification, and redistribution with only attribution and license-text retention required.
Quickstart
pip install semble
from semble import SembleIndex
index = SembleIndex.from_path("./my-project")
results = index.search("authentication flow")
for result in results:
print(result)
Verify before relying
- Whether the embedding model download size and cache footprint are acceptable for resource-constrained environments.
- Performance characteristics when indexing very large codebases (millions of lines) or with many concurrent searches.
- Compatibility and behavior with non-standard or mixed-language repositories.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 7 packagesmodel2vecvicinitynumpypathspecorjsonquestionarysemble-grammars |
| Maintenance | Actively maintained 2 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 131,242 / month, #11,598 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Software Development :: Libraries |
Evidence: semble-0.5.5-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “code search for agents”
- sembleSemble is a code search library that indexes and searches codebases…
- strands-agents-toolsProvides ready-to-use tools for AI agents to perform file operations,…
- azure-ai-agentsBuild and deploy AI agents on Azure using models from OpenAI,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also jcodemunch-mcp · serena-agent · memsearch · stashai · fast-agent-mcp · code-puppy · minimax-coding-plan-mcp · boost-skill-cli · arxiv-mcp-server · headroom-ai