Extensible MCP server for semantic code search with plugin architecture supporting multiple embedding providers, vector databases, and data sources.
Project description
CodeWeaver
Exquisite Context for Agents — Infrastructure that is Extensible, Predictable, and Resilient.
What It Does
CodeWeaver gives Claude and other AI agents precise context from your codebase. Not keyword grep. Not whole-file dumps. Actual structural understanding through hybrid semantic search.
CodeWeaver is Professional Context Infrastructure. With 100% Dependency Injection (DI) and a Pydantic-driven configuration system, it provides the reliability and extensibility required for industrial-grade AI deployments.
Example:
Without CodeWeaver:
Claude: "Let me search for 'auth'... here are 50 files mentioning authentication"
Result: Generic code, wrong context, wasted tokens
With CodeWeaver:
You: "Where do we validate OAuth tokens?"
Claude gets: The exact 3 functions across 2 files, with surrounding context
Result: Precise answers, focused context, 60-80% token reduction
CodeWeaver is no longer in alpha!
Early Release (0.x): CodeWeaver is in active development. APIs may change between minor versions. It's very well-tested but still in 'it works on my machine' territory. Use it, break it, help shape it.
How CodeWeaver Stacks Up
Quick Reference Matrix
| Feature | CodeWeaver | Legacy Search Tools |
|---|---|---|
| Search Type | Hybrid (Semantic + AST + Keyword) | Keyword Only |
| Context Quality | Exquisite / High-Precision | Noisy / Irrelevant |
| Extensibility | DI-Driven (Zero-Code Provider Swap) | Hardcoded |
| Reliability | Resilient (Automatic Local Fallback) | Fails on API Timeout |
| Token Usage | Optimized (60–80% Reduction) | Wasted on Noise |
📊 See detailed competitive analysis →
🚀 Getting Started
Quick Install
# Add CodeWeaver to your project
uv add code-weaver
# Initialize with a profile (recommended uses Voyage AI)
cw init --profile recommended
# Verify setup
cw doctor
# Start the background daemon
cw start
📝 Note:
cw initsupports different Profiles:
recommended: High-precision search (Voyage AI + Qdrant)quickstart: 100% local, private, and free (FastEmbed + Local Qdrant)Want full offline? See the Local-Only Guide.
🐳 Prefer Docker? See Docker setup guide →
✨ Features
🔍 Exquisite Context
|
🛡️ Industrial Resilience
|
🧩 Universal Extensibility
|
🛠️ Developer Experience
|
💭 Philosophy: Context is Oxygen
AI agents face too much irrelevant context, causing token waste, missed patterns, and hallucinations. CodeWeaver addresses this with one focused capability: structural + semantic code understanding that you control.
- Curation over Collection: Give agents exactly what they need, nothing more.
- Privacy-First: Your code stays local if you want it to.
- Infrastructure over Tooling: Built to be the reliable foundation for your AI stack.
📖 Read the detailed rationale →
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file code_weaver-0.1.2.post4.dev0.tar.gz.
File metadata
- Download URL: code_weaver-0.1.2.post4.dev0.tar.gz
- Upload date:
- Size: 2.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef14d3bdb4b710c5d62e3637a8d3fd23a35ec9ef8cb531834cf6ff896b385ccf
|
|
| MD5 |
a94c344392db5eb055bfdf7108d383b3
|
|
| BLAKE2b-256 |
170dd12fa3868c6087a727b62523b5294dfd7a66acf7fcb3fdf7eb7ec829b0ca
|
Provenance
The following attestation bundles were made for code_weaver-0.1.2.post4.dev0.tar.gz:
Publisher:
release.yml on knitli/codeweaver
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
code_weaver-0.1.2.post4.dev0.tar.gz -
Subject digest:
ef14d3bdb4b710c5d62e3637a8d3fd23a35ec9ef8cb531834cf6ff896b385ccf - Sigstore transparency entry: 1330055047
- Sigstore integration time:
-
Permalink:
knitli/codeweaver@26c38c878ee9bce33c2c653da29138c50030d9f2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/knitli
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@26c38c878ee9bce33c2c653da29138c50030d9f2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file code_weaver-0.1.2.post4.dev0-py3-none-any.whl.
File metadata
- Download URL: code_weaver-0.1.2.post4.dev0-py3-none-any.whl
- Upload date:
- Size: 2.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
816e9082241fdac81171d8ad3ea02d9794c7e2c8b6ca322de1944536545b2567
|
|
| MD5 |
dcaff44bee39ce53a3462b91509db8f2
|
|
| BLAKE2b-256 |
1acfe99ed1e6275b063e4e83047d3bbba714e8b00803b46db731a9d8344dc434
|
Provenance
The following attestation bundles were made for code_weaver-0.1.2.post4.dev0-py3-none-any.whl:
Publisher:
release.yml on knitli/codeweaver
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
code_weaver-0.1.2.post4.dev0-py3-none-any.whl -
Subject digest:
816e9082241fdac81171d8ad3ea02d9794c7e2c8b6ca322de1944536545b2567 - Sigstore transparency entry: 1330055325
- Sigstore integration time:
-
Permalink:
knitli/codeweaver@26c38c878ee9bce33c2c653da29138c50030d9f2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/knitli
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@26c38c878ee9bce33c2c653da29138c50030d9f2 -
Trigger Event:
push
-
Statement type: