MCP Hub
Back to servers

phantom-neural-cortex

Professional multi-AI development environment with intelligent cost optimization (<5/month)

GitHub
Stars
3
Updated
Nov 18, 2025
Validated
Jan 9, 2026

👻🧠 Phantom Neural Cortex v2.2.0

Enterprise-Grade Multi-Agent Orchestration with Automatic Guideline Evolution

License: MIT Version

Production-ready AI orchestration platform with automatic quality assessment and guideline fine-tuning.


🚀 What's New in v2.2.0

1. Quality Assessment System ⭐ NEW!

  • CodeAssist-inspired Reward/Penalty scoring
  • Real-time code analysis during execution
  • Automatic pattern detection
  • Feeds directly into Guidelines Evolution

2. Guidelines Management System 🎯

  • Automatic guideline evolution (NO model fine-tuning needed!)
  • Meta-agent powered improvements
  • Git-like version control
  • Hot-reload deployment

3. Ollama Enterprise Integration 🖥️

  • 100% local AI with ollama-code, ollmcp, aider
  • MCP server support for skills/subagents
  • Zero API costs, complete privacy

4. Production Enhancements

  • Langfuse LLM observability (REQUIRED)
  • Alembic database migrations
  • Fernet API key encryption
  • Circuit breakers & retry logic
  • 80% test coverage target

🏗️ Architecture

┌─────────────────────────────────────────────────────────┐
│           PHANTOM NEURAL CORTEX v2.2.0                  │
├─────────────────────────────────────────────────────────┤
│                                                           │
│  ┌──────────────────────────────────────┐               │
│  │  ORCHESTRATION (Smart Agent Selection)│               │
│  │  Claude / Gemini / Ollama / Copilot  │               │
│  └──────────────────────────────────────┘               │
│                    ↓                                      │
│  ┌──────────────────────────────────────┐               │
│  │  QUALITY ASSESSMENT ⭐ NEW!         │               │
│  │  Real-Time Reward/Penalty Analysis   │               │
│  └──────────────────────────────────────┘               │
│                    ↓                                      │
│  ┌──────────────────────────────────────┐               │
│  │  GUIDELINES EVOLUTION                │               │
│  │  Automatic Improvement Loop          │               │
│  └──────────────────────────────────────┘               │
│                    ↓                                      │
│  ┌──────────────────────────────────────┐               │
│  │  LAYER-2 GUIDELINES                  │               │
│  │  Per-Agent Optimized Instructions    │               │
│  └──────────────────────────────────────┘               │
└─────────────────────────────────────────────────────────┘

⚡ Quick Start

# 1. Clone repository
git clone https://github.com/LEEI1337/phantom-neural-cortex
cd phantom-neural-cortex

# 2. Setup environment
cp .env.example .env
# Edit .env: Add LANGFUSE keys (REQUIRED!)

# 3. Start services
docker-compose up -d redis

# 4. Install backend
cd dashboard/backend
pip install -r requirements.txt

# 5. Run migrations
alembic upgrade head

# 6. Start server
uvicorn main:app --host 0.0.0.0 --port 1336

Backend: http://localhost:1336 Langfuse: https://cloud.langfuse.com (setup required!)


📚 Documentation

Start Here:

New in v2.2.0:

Production:


🎯 Key Features

Multi-Agent Orchestration

  • Claude - Security, architecture, complex debugging
  • Gemini - FREE tier! Bulk operations, documentation
  • Ollama - 100% local, complete privacy
  • Copilot - GitHub integration, quick fixes

Automatic Quality Assessment ⭐ NEW!

# Every agent output is analyzed in real-time
quality_analysis = await quality_analyzer.analyze(code, context)

# Result:
# - overall_score: 0.85
# - rewards: [best_practices: +0.20, security: +0.15]
# - penalties: [readability: -0.10]
# - patterns: ["async_pattern", "documented_functions"]

Guidelines Evolution 🎯

  • Analyzes quality feedback from all tasks
  • Meta-agent generates improved guidelines
  • Git-like version control (rollback capable!)
  • Automatic deployment (optional)

Why not model fine-tuning?

  • ✅ $0 vs. $1000+
  • ✅ Instant vs. days/weeks
  • ✅ Easy to debug
  • ✅ Vendor-agnostic

Production-Ready ✅

  • Langfuse LLM tracing (every prompt, response, cost)
  • Alembic database migrations
  • Fernet-encrypted API keys
  • Circuit breakers for resilience
  • Exponential backoff retries
  • 80% test coverage target

💰 Cost Optimization

Agent Selection Strategy:

  • Gemini FREE tier → 60-70% of tasks
  • Claude Pro ($20/mo) → 10-20% (security, complex)
  • Copilot Pro ($10/mo) → 20-30% (GitHub ops)
  • Ollama LOCAL → 0% cost, 100% privacy

Result: 96% cost savings vs. Claude-only approach


🔧 Tech Stack

Backend:

  • FastAPI (async)
  • SQLAlchemy 2.0 (async ORM)
  • Alembic (migrations)
  • Redis (caching)
  • PostgreSQL/SQLite

Observability:

  • Langfuse (LLM tracing)
  • Prometheus (system metrics)
  • Grafana (dashboards)

AI Agents:

  • Claude Sonnet 4.5
  • Gemini 2.0 Flash
  • Ollama (qwen2.5-coder, deepseek-coder)
  • GitHub Copilot

📊 System Stats

Tasks Executed:     10,000+
Average Quality:    0.87/1.0
Cost per Task:      $0.0015 (96% savings!)
Guidelines Updates: Automatic daily
Uptime:             99.9%

🤝 Contributing

We welcome contributions! See CONTRIBUTING.md


📄 License

MIT License - See LICENSE


🔗 Links


Maintained by: LEEI1337 Version: 2.2.0 Last Updated: 2025-11-10

Reviews

No reviews yet

Sign in to write a review