CodeQual Documentation

August 4, 2025 ยท View on GitHub

Last Updated: July 31, 2025

Current Architecture (Clean Architecture)

๐Ÿ“ Implementation Status

๐Ÿ—๏ธ Architecture

  • architecture/ - System architecture documentation
  • api/ - API documentation and specifications
  • deployment/ - Deployment guides and configurations
  • monitoring/ - Monitoring and observability setup

๐Ÿ”ง Development

๐Ÿš€ Getting Started

  1. Read the Current Implementation Status
  2. Review the TODO List for roadmap
  3. Check /packages/agents/src/standard/ for clean architecture code

Clean Architecture Structure

packages/agents/src/
โ”œโ”€โ”€ standard/              # Core business logic (no external dependencies)
โ”‚   โ”œโ”€โ”€ orchestrator/      # Main pipeline coordination
โ”‚   โ”œโ”€โ”€ comparison/        # Analysis & report generation
โ”‚   โ”œโ”€โ”€ researcher/        # Model selection
โ”‚   โ”œโ”€โ”€ educator/          # Course discovery
โ”‚   โ””โ”€โ”€ types/            # Shared types
โ””โ”€โ”€ infrastructure/        # External dependencies
    โ”œโ”€โ”€ factory.ts        # Dependency injection
    โ””โ”€โ”€ supabase/         # Database implementations

Key Principles

  1. Interface-Based Design - All external dependencies behind interfaces
  2. Dependency Injection - Factory pattern for flexible configuration
  3. Clean Separation - Business logic independent of infrastructure
  4. Simplified Architecture - Comparison agent generates reports directly

Archived Documentation

Historical documentation from before the clean architecture implementation has been moved to archive/2025-07-pre-clean-architecture/.