/codegraph

CodeGraph/USA - Graph-native semantic code intelligence

Primary LanguageShell

CodeGraph/USA

Transform how AI understands code through graph-native semantic intelligence.

πŸš€ Quick Start

# Clone this repository
git clone --recursive https://github.com/Consiliency/codegraph
cd codegraph

# Start the development environment
./scripts/start-dev.sh

# Run the demo
./scripts/demo.sh

πŸ“‹ System Requirements

  • Docker 20.10+
  • Docker Compose 2.0+
  • Node.js 18+
  • Python 3.11+
  • 16GB RAM recommended
  • 20GB free disk space

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Browser   │────▢│ TypeScript  │────▢│   Python    β”‚
β”‚ (Dashboard) β”‚     β”‚   API       β”‚     β”‚  Analysis   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                            β”‚                    β”‚
                            β–Ό                    β–Ό
                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚  Memgraph   β”‚     β”‚   Qdrant    β”‚
                    β”‚   (Graph)   β”‚     β”‚  (Vectors)  β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“ Repository Structure

  • codegraph-core: High-performance C++ engine (Tree-sitter, BLAKE3)
  • codegraph-api: TypeScript GraphQL/REST API server
  • codegraph-analysis: Python ML workflows and analysis
  • codegraph-proto: Protocol Buffer definitions
  • codegraph-deploy: Docker compose and infrastructure

🚦 Getting Started

  1. Clone and setup:

    git clone --recursive https://github.com/Consiliency/codegraph
    cd codegraph
    cp .env.example .env
    # Edit .env and add your OpenAI API key
  2. Start services:

    ./scripts/start-dev.sh
  3. Access the system:

πŸ“Š Current Capabilities

  • βœ… Multi-language AST parsing (Python, JavaScript, TypeScript)
  • βœ… Graph-based code representation
  • βœ… Semantic search with OpenAI embeddings
  • βœ… Real-time monitoring dashboard
  • βœ… Protocol buffer communication
  • βœ… 70% LLM token reduction (projected)

πŸ› οΈ Development

See CONTRIBUTING.md for development guidelines.

πŸ“œ License

Apache License 2.0