Fsq Codebase
БесплатноНе проверенEnables fast semantic code search using FSQ embeddings, with zero-config indexing and support for multiple programming languages via the Model Context Protocol.
Описание
Enables fast semantic code search using FSQ embeddings, with zero-config indexing and support for multiple programming languages via the Model Context Protocol.
README
Zero-config codebase indexer with FSQ embeddings for fast semantic code search. Why Finite Scalar Quantization to compress? Because nobody has tried it before, that's why. Also FSQ still loosely maintains the shape of the vector and does not need a codebook, in case I ever wanted to round trip the embeddings back to code (for example for previewing purposes, like a jpg thumbnail).
Features
- Fast semantic search: 10x compression with int8 embeddings, 2.7x faster search
- Multi-language: Python, JavaScript, TypeScript, Go, Rust, Java, and more
- Zero-config: Just point at a directory and search
- MCP server: Claude Code integration via Model Context Protocol
Installation
Work in progress. For now you would need to build the model yourself. ANd
Quick Start
Python API
from fsq_codebase import CodebaseIndex, FSQEmbedder
# Index a codebase
index = CodebaseIndex.create("./my-project")
results = index.query("add rate limiting", top_k=10)
print(results.tree())
# Or use the embedder directly
embedder = FSQEmbedder.from_bundled("codet5plus-96d")
embeddings = embedder.encode(["def hello(): pass", "function greet() {}"])
MCP Server (Claude Code)
# Start the MCP server
fsq-codebase --index ./codebase.index
Configure in Claude Code's .mcp.json:
{
"mcpServers": {
"fsq-codebase": {
"command": "fsq-codebase",
"args": ["--index", "./codebase.index", "--verbose"]
}
}
}
Bundled Models
| Model | Encoder | FSQ Dim | Size |
|---|---|---|---|
codet5plus-96d |
CodeT5+ 110M | 96 | 268 KB |
unixcoder-96d |
UniXcoder | 96 | 652 KB |
The encoder (CodeT5+ or UniXcoder) downloads automatically from HuggingFace on first use (~440MB).
Performance
Compared to CodeT5+ baseline on CoIR benchmark:
| Model | MRR | Storage | Search Speed |
|---|---|---|---|
| CodeT5+ baseline | 0.9699 | 1024B | 0.39ms |
| fsq-codebase | 0.9706 | 96B | 0.14ms |
10.7x compression with 2.7x faster search while maintaining accuracy.
License
MIT
Установить Fsq Codebase в Claude Desktop, Claude Code, Cursor
unyly install fsq-codebaseСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add fsq-codebase -- uvx --from git+https://github.com/cprepos/codeinfuse fsq-codebaseFAQ
Fsq Codebase MCP бесплатный?
Да, Fsq Codebase MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Fsq Codebase?
Нет, Fsq Codebase работает без API-ключей и переменных окружения.
Fsq Codebase — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Fsq Codebase в Claude Desktop, Claude Code или Cursor?
Открой Fsq Codebase на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Fsq Codebase with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
