How ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai works
This repository implements a DevOps automation platform: a user submits a request, orchestration selects specialist agents, and the system generates and validates deployment artifacts that can be reviewed and executed. The frontend also exposes run dashboards, CI/CD runs, and session history. Sampled pipeline imports and calls support several internal agent relationships; unsampled integrations and parts of the agent-selection flow are left unconnected rather than inferred.
Main entry points: main.py Run API · src/pipeline.py IaC pipeline · planner-agent/pipeline.py Request planner · src/pipeline.py CI/CD pipeline
Components 31
User interface
- App shell
frontend/src/app/app.component.ts - Run routes
frontend/src/app/app.routes.ts - CI/CD run page
frontend/src/app/components/cicd-run-page/cicd-run-page.component.ts - Run data model
frontend/src/app/models/run.model.ts - API client
frontend/src/app/services/api.service.ts - CI/CD client
frontend/src/app/services/cicd.service.ts
API and orchestration
- Run API
backend/main.py - Orchestration utilities
backend/orchestrator_utils.py - Agent bridge
backend/execution_agent_bridge.py - Artifact routes
backend/routes/artifacts.py - CI/CD build routes
backend/routes/cicd_build.py - Log judging
backend/routes/log_judge.py - LLM judge
backend/llm_judge.py - Session history
backend/session_history_router.py - WebSocket manager
backend/websocket_manager.py
Specialist agents
- Request planner
test_pfe/02-orchestration-agents-layer/planner-agent/pipeline.py - CI/CD pipeline
test_pfe/02-orchestration-agents-layer/cicd-agent/src/pipeline.py - CI/CD intent
test_pfe/02-orchestration-agents-layer/cicd-agent/src/components/intent_layer.py - Dependency analysis
test_pfe/02-orchestration-agents-layer/cicd-agent/src/components/dependency_analyzer.py - IaC pipeline
test_pfe/02-orchestration-agents-layer/iac-agent/src/pipeline.py - Docker pipeline
test_pfe/02-orchestration-agents-layer/docker-agent/src/pipeline.py - Kubernetes pipeline
test_pfe/02-orchestration-agents-layer/k8s-agent/src/pipeline.py - Execution sandbox
test_pfe/02-orchestration-agents-layer/execution-sandbox/pipeline.py
Artifact generation
- Project analysis
test_pfe/02-orchestration-agents-layer/iac-agent/src/components/analyze_project.py - Prompt resolver
test_pfe/02-orchestration-agents-layer/iac-agent/src/components/prompt_intent_resolver.py - IaC knowledge base
test_pfe/02-orchestration-agents-layer/iac-agent/src/components/rag_kb.py - Terraform generation
test_pfe/02-orchestration-agents-layer/iac-agent/src/components/generate_file.py - IaC LLM client
test_pfe/02-orchestration-agents-layer/iac-agent/src/components/llm_client.py - Terraform validation
test_pfe/02-orchestration-agents-layer/iac-agent/src/components/validate.py - Terraform writing
test_pfe/02-orchestration-agents-layer/iac-agent/src/components/write_files.py
Other components
- User
Connections 25
- User → App shell: uses
- App shell → Run routes: hosts
frontend/src/app/app.component.ts - Run routes → CI/CD run page: routes to
frontend/src/app/app.routes.ts - Run API → Orchestration utilities: uses
backend/main.py - Run API → Agent bridge: uses
backend/main.py - Run API → Artifact routes: registers
backend/main.py - Run API → CI/CD build routes: registers
backend/main.py - Run API → Log judging: registers
backend/main.py - Run API → Session history: uses
backend/main.py - Run API → WebSocket manager: uses
backend/main.py - Run API → LLM judge: uses
backend/main.py - Request planner → CI/CD pipeline: selects agent
- Request planner → IaC pipeline: selects agent
- Request planner → Docker pipeline: selects agent
- Request planner → Kubernetes pipeline: selects agent
- CI/CD pipeline → CI/CD intent: resolves intent
test_pfe/02-orchestration-agents-layer/cicd-agent/src/pipeline.py - CI/CD pipeline → Dependency analysis: analyzes dependencies
test_pfe/02-orchestration-agents-layer/cicd-agent/src/pipeline.py - IaC pipeline → Project analysis: analyzes project
test_pfe/02-orchestration-agents-layer/iac-agent/src/pipeline.py - IaC pipeline → Prompt resolver: resolves intent
test_pfe/02-orchestration-agents-layer/iac-agent/src/pipeline.py - IaC pipeline → IaC knowledge base: queries knowledge
test_pfe/02-orchestration-agents-layer/iac-agent/src/pipeline.py - IaC pipeline → Terraform generation: generates Terraform
test_pfe/02-orchestration-agents-layer/iac-agent/src/pipeline.py - IaC pipeline → Terraform validation: validates output
test_pfe/02-orchestration-agents-layer/iac-agent/src/pipeline.py - IaC pipeline → Terraform writing: writes files
test_pfe/02-orchestration-agents-layer/iac-agent/src/pipeline.py - Terraform generation → IaC LLM client: uses model
test_pfe/02-orchestration-agents-layer/iac-agent/src/components/generate_file.py - Kubernetes pipeline → Execution sandbox: executes in