Skip to main content
Component: ProjectManagementMixin Module: gaia_agent_code.tools.project_management Import: from gaia_agent_code.tools.project_management import ProjectManagementMixin

Overview

ProjectManagementMixin provides comprehensive project-level operations for the Code Agent, including intelligent project generation with LLM-driven architecture planning, iterative implementation, and multi-language validation. Key Features:
  • End-to-end project generation from natural language
  • LLM-driven architectural planning with JSON schemas
  • Iterative file implementation with validation
  • Comprehensive multi-language validation (Python, JS/TS, CSS, HTML)
  • Test generation and execution with auto-fix
  • Anti-pattern detection and structure validation
Project Generation Workflow:
  1. Generate detailed architectural plan (JSON schema)
  2. Create PLAN.md with structured task breakdown
  3. Implement modules one-by-one with validation
  4. Generate comprehensive test suite
  5. Apply Black formatting
  6. Run tests and auto-fix failures
  7. Final project validation with quality metrics

API Specification


Implementation Highlights

LLM-Driven Architecture Planning

Project Name Validation with Retry

Iterative File Implementation

Test Generation with Timeout


Testing Requirements

File: tests/agents/code/test_project_management_mixin.py Key tests:
  • Project generation from various requirements
  • Name validation and sanitization
  • Module implementation validation
  • Test suite generation
  • Multi-language validation
  • Structure validation (entry points, essentials)
  • Auto-fix workflow
  • Timeout handling

Usage Examples


ProjectManagementMixin Technical Specification