CodeCompass - Enterprise-grade code intelligence platform (public filtered version)
npx skills add https://github.com/pearlthoughts/codecompass --skill analyze-yii2-projectInstall this skill with the CLI and start using the SKILL.md workflow in your workspace.
Enterprise-grade code intelligence platform for understanding, modernizing, and evolving legacy systems
CodeCompass is a knowledge synthesis platform that transforms how you understand legacy systems. It analyzes code, databases, runtime behavior, and (planned) documentation sources to provide comprehensive system intelligence. Unlike AI code editors that assist with daily development, CodeCompass solves the strategic challenge of understanding and modernizing large-scale systems.
Think of it as: Archaeological intelligence for your codebase—revealing what the system does, why it was built that way, and how to evolve it safely.
Legacy systems are knowledge vaults locked by time:
The real cost: Not maintenance—it's the opportunity cost of blocked innovation.
CodeCompass provides systematic analysis and intelligence:
Time savings:
Risk reduction:
Cost impact (conservative):
Strategic value:
# Clone repository
git clone https://github.com/senguttuvang/codecompass-public.git
cd codecompass-public
# Start infrastructure (PostgreSQL, Weaviate, Redis)
docker-compose up -d
# Install dependencies
pnpm install
# Run database migrations
pnpm run migration:run
# Start application
pnpm start:dev
# Application running at http://localhost:3002
# API Docs: http://localhost:3002/api
# Comprehensive Yii2 framework analysis
pnpm run cli -- analyze:yii2 /path/to/legacy-app
# Extracts:
# - Dependency graphs
# - Business domains
# - Code complexity
# - Architecture patterns
# - Dead code identification
# Analyze database schema to understand business model
pnpm run cli -- analyze-capabilities \
--database production_db \
--project-name "Legacy System"
# Outputs:
# - Business capabilities (User management, Payment processing, etc.)
# - Table relationships and dependencies
# - Data model documentation
# Import production profiler data to identify hot paths
pnpm run cli -- profiler:import yii2-debug-export.json
# Then query usage statistics
pnpm run cli -- query:hot-paths --threshold 1000
# Prioritize migration by ACTUAL usage, not guesswork
# Automated requirements extraction
pnpm run cli -- requirements:extract \
--source /path/to/legacy-app \
--output requirements.md
# Generates comprehensive doc with:
# - Business workflows
# - Business rules and validation
# - Dependencies (internal + external)
# - Domain boundaries (DDD)
# Natural language queries
pnpm run cli -- nl-query "How does authentication work?"
# Semantic search
pnpm run cli -- search:semantic "user authentication flow"
# Analyze specific patterns
pnpm run cli -- analyze:yii2 /path/to/legacy-app
✅ Perfect for:
⚠️ Also useful for:
❌ Not for:
┌─────────────────────────────────────────────────┐
│ NestJS Application (TypeScript) │
│ ├─ Framework Adapters (Yii2, Laravel, etc.) │
│ ├─ AST Analyzers (ts-morph + tree-sitter) │
│ ├─ Dependency Analyzer │
│ ├─ Business Domain Extractor │
│ └─ Migration Orchestrator │
└─────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────┐
│ Storage Layer │
│ ├─ PostgreSQL (structured data) │
│ ├─ Weaviate (semantic vectors & embeddings) │
│ └─ Redis (job queue) │
└─────────────────────────────────────────────────┘
Key principles:
See Architecture & AI Context Integration for details.
# Run tests
pnpm test
# Test with coverage
pnpm test:coverage
# Integration tests
pnpm test:integration
# Type checking
pnpm typecheck
# Copy environment template
cp .env.example .env
# Key settings
CODECOMPASS_WEAVIATE_URL=http://localhost:8081
CODECOMPASS_POSTGRES_URL=postgresql://user:pass@localhost:5432/compass
CODECOMPASS_REDIS_URL=redis://localhost:6379
PORT=3002
# Embedding model (local or API)
EMBEDDING_MODEL=mxbai-embed-large # Local via Ollama (recommended)
CodeCompass complements (doesn't replace) AI code editors:
Workflow:
1. CodeCompass analyzes codebase (strategic intelligence)
2. Developer codes in Cursor/Claude Code (tactical execution)
3. AI editor queries CodeCompass API for enriched context
4. CodeCompass tracks progress and validates changes
Result: Strategic intelligence + tactical execution
See AI Context Integration for API details.
Q: Why not just use Claude Code or Cursor?
A: They're excellent for daily development. CodeCompass solves a different problem: enterprise knowledge synthesis requiring multi-source analysis, system archaeology, and strategic planning. See detailed comparison.
Q: What frameworks are supported?
A: Currently specialized for Yii2→NestJS with framework-agnostic core. Add Laravel, Spring Boot, Django via plugin adapters.
Q: Can I use it for non-migration projects?
A: Absolutely! CodeCompass excels at legacy reverse engineering, technical debt assessment, M&A due diligence, architecture documentation, and knowledge transfer.
Q: What's the cost?
A: Open source (MIT). Infrastructure: $500-1000/month cloud hosting. ROI: 6-40x over 12 months (typical savings: $150-300k per project).
See Full FAQ for more questions.
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
# Clone repo
git clone https://github.com/senguttuvang/codecompass-public.git
cd codecompass-public
# Install dependencies
pnpm install
# Start infrastructure
docker-compose up -d
# Run in watch mode
pnpm start:dev
# Run tests
pnpm test
Functional Source License (FSL) 1.1 - Converts to MIT License on November 25, 2026
This project is licensed under the Functional Source License (FSL) 1.1, which converts to MIT on November 25, 2026.
✅ Unlimited Commercial Use Allowed:
⚠️ Only Restriction:
Cannot repackage and sell as a competing SaaS product (e.g., offering "CodeCompass-as-a-Service"). Use it, don't resell it.
See LICENSE for complete terms. Learn more about FSL at fsl.software.
Built with insights from: