Claude Context Enhanced is a stability-focused fork of claude-context with critical bug fixes and performance improvements. This enhanced version ensures reliable snapshot persistence, faster synchronization, and improved data availability for your semantic code search needs.
This fork includes the following improvements over the original claude-context:
- Fixed Snapshot Persistence - Resolved critical issue where snapshots weren't being saved after indexing
- Improved Background Sync - Reduced sync interval from 5 minutes to 2 minutes for faster updates
- Automatic Milvus Flush - Added automatic flush after indexing to ensure immediate data availability
- Enhanced Health Checks - Comprehensive MCP server configuration validation and health monitoring
- Better File Management - Added comprehensive context ignore patterns for cleaner indexing
Claude Context is an MCP plugin that adds semantic code search to Claude Code and other AI coding agents, giving them deep context from your entire codebase.
π§ Your Entire Codebase as Context: Uses semantic search to find all relevant code from millions of lines, bringing results straight into Claude's context.
π° Cost-Effective for Large Codebases: Efficiently stores your codebase in a vector database and only uses related code in context to keep costs manageable.
Get a free vector database on Zilliz Cloud
Claude Context needs a vector database. You can sign up on Zilliz Cloud to get an API key.
Copy your Personal Key to replace your-zilliz-cloud-api-key in the configuration examples.
Get OpenAI API Key for embedding model
You need an OpenAI API key for the embedding model. Get one at OpenAI.
Your API key starts with sk-. Copy your key and use it in the configuration examples below as your-openai-api-key.
System Requirements:
- Node.js >= 20.0.0 and < 24.0.0
Claude Context is not compatible with Node.js 24.0.0, you need to downgrade it first if your node version is greater or equal to 24.
Use the command line interface to add the Claude Context Enhanced MCP server:
# Install from npm (coming soon)
claude mcp add claude-context-enhanced \
-e OPENAI_API_KEY=sk-your-openai-api-key \
-e MILVUS_TOKEN=your-zilliz-cloud-api-key \
-- npx claude-context-enhanced@latest
# Or install from GitHub
claude mcp add claude-context-enhanced \
-e OPENAI_API_KEY=sk-your-openai-api-key \
-e MILVUS_TOKEN=your-zilliz-cloud-api-key \
-- npx @gitabozaid/claude-context-enhanced@latestSee the Claude Code MCP documentation for more details about MCP server management.
-
Open Claude Code
cd your-project-directory claude -
Index your codebase:
Index this codebase -
Check indexing status:
Check the indexing status -
Start searching:
Find functions that handle user authentication
π That's it! You now have enhanced semantic code search with improved reliability.
All features from the original claude-context, plus:
- π Hybrid Code Search: BM25 + dense vector search
- π§ Context-Aware: Understand code relationships across millions of lines
- β‘ Incremental Indexing: Efficiently re-index only changed files using Merkle trees
- π§© Intelligent Code Chunking: AST-based code analysis
- ποΈ Scalable: Integrates with Zilliz Cloud for scalable vector search
- π οΈ Customizable: Configure file extensions, ignore patterns, and embedding models
- Enhanced Stability: Critical fixes for snapshot persistence and data availability
- Faster Sync: Reduced background sync interval for quicker updates
Index a codebase directory for hybrid search (BM25 + dense vector).
Search the indexed codebase using natural language queries with hybrid search.
Clear the search index for a specific codebase.
Get the current indexing status of a codebase with progress percentage.
# Clone repository
git clone https://github.com/gitabozaid/claude-context-enhanced.git
cd claude-context-enhanced
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Start development mode
pnpm dev# Build all packages
pnpm build
# Build specific package
pnpm build:core
pnpm build:vscode
pnpm build:mcp- v0.1.3-enhanced
- Fixed snapshot not saving after successful indexing
- Reduced background sync interval from 5 minutes to 2 minutes
- Added automatic Milvus flush after indexing for immediate data availability
- Resolved MCP server configuration issues with comprehensive health checks
- Added comprehensive context ignore patterns
Contributions are welcome! This project maintains compatibility with the original claude-context while adding stability improvements.
This project is a fork of claude-context by Zilliz. Special thanks to the original maintainers for creating such a powerful tool.
Original Project: zilliztech/claude-context
This project is licensed under the MIT License - see the LICENSE file for details.
Same license as the original project.
- This Fork: github.com/gitabozaid/claude-context-enhanced
- Original Project: github.com/zilliztech/claude-context
- Milvus Documentation
- Zilliz Cloud