Skip to content

wespiper/signal-hub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

41 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Signal Hub

CI Python License GitHub release

Intelligent developer assistant that extends Claude's context through MCP+RAG, providing seamless access to codebase knowledge while optimizing costs through smart model routing and caching.

Overview

Signal Hub is part of the Signal ecosystem, serving as the central convergence point where all your code context comes together for intelligent AI routing. It acts as an MCP (Model Context Protocol) server that gives Claude unlimited effective context through RAG (Retrieval-Augmented Generation) while intelligently routing queries to the most cost-effective model.

🎯 Signal Hub Editions

Signal Hub Basic (Open Source)

The community edition provides core functionality for extending Claude's context:

  • βœ… MCP server integration with Claude Code
  • βœ… Codebase indexing and semantic search
  • βœ… Basic RAG retrieval and context assembly
  • βœ… Simple rule-based model routing
  • βœ… Semantic caching for repeated queries
  • βœ… Manual escalation to premium models
  • βœ… Basic cost tracking

Signal Hub (Pro/Enterprise) - Coming Soon

Advanced features for teams and power users:

  • πŸš€ ML-powered intelligent model routing
  • πŸ“ˆ Learning algorithms that improve over time
  • πŸ’° Advanced cost optimization (save 70%+ on AI costs)
  • πŸ“Š Detailed analytics and ROI reporting
  • πŸ‘₯ Team collaboration and sharing
  • πŸ” Enterprise security and compliance
  • ⚑ Priority support and SLAs

Early Access Program: Currently, all features are available to early adopters to help us refine the product and pricing. Join our Discord to participate!

Key Features

  • πŸš€ Unlimited Context: Access your entire codebase through semantic search
  • πŸ’° Cost Optimization: Automatic routing between Haiku, Sonnet, and Opus based on complexity
  • ⚑ Lightning Fast: Semantic caching for instant responses to similar queries
  • πŸ”„ Continuous Learning: Improves routing decisions based on user feedback (Pro)
  • πŸ› οΈ Zero Friction: Works out of the box with minimal configuration
  • 🌍 Open Source: Community-driven development with transparent roadmap

Quick Start

Prerequisites

  • Python 3.11 or higher
  • Docker Desktop
  • Git

One-Command Setup

macOS/Linux

git clone https://github.com/wespiper/signal-hub.git
cd signal-hub
./scripts/setup.sh

Windows

git clone https://github.com/wespiper/signal-hub.git
cd signal-hub
.\scripts\setup.ps1

Manual Setup

  1. Install Poetry:
curl -sSL https://install.python-poetry.org | python3 -
  1. Install dependencies:
poetry install
  1. Configure Signal Hub:
cp config/.env.example config/.env
# Add your OpenAI API key for embeddings
  1. Start services:
cd docker && docker compose up -d
cd .. && signal-hub serve --config config/dev.yaml
  1. Connect with Claude Code by adding Signal Hub to your MCP servers configuration.

Usage

Signal Hub provides several MCP tools for intelligent code navigation:

  • search_code: Semantic search across your entire codebase
  • explain_code: Get detailed explanations with relevant context
  • find_similar: Find code similar to a given snippet
  • get_context: Get relevant context for your current task
  • escalate_query: Manual escalation to better model (coming in Sprint 3)

Architecture

Signal Hub consists of several key components:

  1. MCP Server: Handles communication with Claude Code
  2. Indexing Pipeline: Scans and embeds your codebase
  3. RAG System: Retrieves relevant context for queries
  4. Model Router: Intelligently selects the appropriate model
  5. Cache Layer: Stores and retrieves similar queries

Development

Running Tests

# Run all tests with coverage
make test

# Run specific test categories
pytest tests/unit/
pytest tests/integration/

# Generate coverage report
make test-coverage

Code Quality

make format     # Format code with Black
make lint       # Run Ruff linter
make type-check # Type checking with MyPy
make quality    # Run all quality checks

Development Workflow

  1. Start Development Environment:

    make dev
  2. Run with Early Access Features:

    SIGNAL_HUB_EARLY_ACCESS=true signal-hub serve
  3. Monitor Logs:

    # JSON logs for production
    SIGNAL_HUB_LOG_FORMAT=json signal-hub serve
    
    # Check metrics endpoint
    curl http://localhost:3334/metrics

Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

Roadmap

Phase 1: Open Source Foundation (Sprints 1-3 Complete βœ…)

  • βœ… Basic MCP server implementation with plugin architecture
  • βœ… Codebase indexing and embedding pipeline
  • βœ… File parser framework (Python, JavaScript, Markdown)
  • βœ… ChromaDB integration for vector storage
  • βœ… Development environment with Docker
  • βœ… Comprehensive logging and monitoring
  • βœ… CI/CD pipeline with GitHub Actions
  • βœ… Security scanning and dependency management
  • βœ… NEW: RAG retrieval system with semantic search
  • βœ… NEW: Intelligent AST-based code chunking
  • βœ… NEW: Context assembly with deduplication
  • βœ… NEW: MCP tools (search_code, explain_code, find_similar, get_context)
  • βœ… NEW: 5x performance improvement in embedding generation

Phase 2: Model Routing & Optimization (Sprint 3 Complete βœ…)

  • βœ… Rule-based model routing (Haiku/Sonnet/Opus)
  • βœ… Semantic caching for repeated queries
  • βœ… Basic cost tracking and reporting
  • βœ… Manual escalation mechanism (@haiku/@sonnet/@opus)
  • βœ… Cache management and eviction strategies
  • βœ… Routing configuration system
  • βœ… Security foundations (API keys, rate limiting, auth)

Phase 3: Polish & Documentation (Next - Sprint 4)

  • πŸ“š Comprehensive setup and usage documentation
  • 🎯 Example configurations and tutorials
  • ⚑ Performance optimizations
  • πŸš€ Community launch preparation
  • πŸ“Š Simple analytics dashboard
  • πŸ”„ Production migration guides

Phase 4: Monetization & Scale

  • Pro tier with advanced features
  • Enterprise deployment options
  • Team management capabilities

License

Signal Hub is open source software licensed under the MIT License. See LICENSE for details.

Support

Acknowledgments

Signal Hub is built on top of excellent open source projects:

  • MCP - Model Context Protocol by Anthropic
  • ChromaDB - Vector database for embeddings
  • Tree-sitter - Code parsing library

Signal Hub - Where your codebase knowledge meets intelligent AI routing.

About

Intelligent developer assistant that extends Claude's context through MCP+RAG

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages