Skip to main content

Extensible MCP server for semantic code search with plugin architecture supporting multiple embedding providers, vector databases, and data sources.

Project description

CodeWeaver logo

CodeWeaver

Exquisite Context for Agents — Infrastructure that is Extensible, Predictable, and Resilient.

Python Version License Release MCP Compatible

DocumentationInstallationFeaturesComparison


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. 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

Using the CLI with uv:

# 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 init supports 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

  • Hybrid search (sparse + dense vectors)
  • AST-level understanding (27 languages)
  • Reciprocal Rank Fusion (RRF)
  • Language-aware chunking (166+ languages)

🛡️ Industrial Resilience

  • Automatic local fallback (FastEmbed)
  • Circuit breaker pattern for APIs
  • Works airgapped (no cloud required)
  • Pydantic-driven validation at boot-time

🧩 Universal Extensibility

  • 100% DI-driven architecture
  • 17+ integrated providers
  • Custom provider API
  • Zero-code provider swapping

🛠️ Developer Experience

  • Live indexing with file watching
  • Diagnostic tool (cw doctor)
  • Multiple CLI aliases (cw / codeweaver)
  • Selectable profiles for easy setup

💭 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 →


Official Documentation: docs.knitli.com/codeweaver/

Built with ❤️ by Knitli

⬆ Back to top

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

code_weaver-0.1.1.tar.gz (2.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

code_weaver-0.1.1-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

Details for the file code_weaver-0.1.1.tar.gz.

File metadata

  • Download URL: code_weaver-0.1.1.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

Hashes for code_weaver-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c4cff6a4aa1f80555398df456d1763b2855fd6bd866e6a192a2b4a33c2f0cd87
MD5 d00ad32e0eae91ee511b18e2947c08d4
BLAKE2b-256 c1efab37c606d6345b513f375cd0375a753bbd54ee1bc0d48fd7f872009dcbbb

See more details on using hashes here.

Provenance

The following attestation bundles were made for code_weaver-0.1.1.tar.gz:

Publisher: release.yml on knitli/codeweaver

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file code_weaver-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: code_weaver-0.1.1-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

Hashes for code_weaver-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4b0e918991653c8cf0bef0cf1e5921e3335f2a937b6897d605738bfffd78a193
MD5 ffcae32c6457de7165343161d673ff0a
BLAKE2b-256 bca32a6ea552b9b269c3b8a0a5c333155087bbb2aafb4ca6c5ea586dcd0c2dab

See more details on using hashes here.

Provenance

The following attestation bundles were made for code_weaver-0.1.1-py3-none-any.whl:

Publisher: release.yml on knitli/codeweaver

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page