# ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai architecture

> Architecture diagram of the GitHub repository ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai
- Repository: https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai

## Overview

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: [`backend/main.py`](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/backend/main.py) (Run API), [`test_pfe/02-orchestration-agents-layer/iac-agent/src/pipeline.py`](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/iac-agent/src/pipeline.py) (IaC pipeline), [`test_pfe/02-orchestration-agents-layer/planner-agent/pipeline.py`](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/planner-agent/pipeline.py) (Request planner), [`test_pfe/02-orchestration-agents-layer/cicd-agent/src/pipeline.py`](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/cicd-agent/src/pipeline.py) (CI/CD pipeline)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["User interface"]
  node_app_shell["App shell<br/>[app.component.ts]"]
  node_routes["Run routes<br/>[app.routes.ts]"]
  node_run_page["CI/CD run page"]
  node_run_model["Run data model<br/>[run.model.ts]"]
  node_api["API client<br/>[api.service.ts]"]
  node_cicd_client["CI/CD client<br/>[cicd.service.ts]"]
end

subgraph group_platform["API and orchestration"]
  node_backend["Run API<br/>[main.py]"]
  node_orchestrator_utils["Orchestration utilities"]
  node_agent_bridge["Agent bridge"]
  node_artifact_routes["Artifact routes<br/>[artifacts.py]"]
  node_build_routes["CI/CD build routes<br/>[cicd_build.py]"]
  node_judge_routes["Log judging<br/>[log_judge.py]"]
  node_judge["LLM judge<br/>[llm_judge.py]"]
  node_history[("Session history")]
  node_websocket["WebSocket manager"]
end

subgraph group_agents["Specialist agents"]
  node_planner["Request planner<br/>[pipeline.py]"]
  node_cicd_pipeline["CI/CD pipeline<br/>[pipeline.py]"]
  node_cicd_intent["CI/CD intent<br/>[intent_layer.py]"]
  node_cicd_deps["Dependency analysis"]
  node_iac_pipeline["IaC pipeline<br/>[pipeline.py]"]
  node_docker_pipeline["Docker pipeline<br/>[pipeline.py]"]
  node_k8s_pipeline["Kubernetes pipeline<br/>[pipeline.py]"]
  node_sandbox["Execution sandbox<br/>[pipeline.py]"]
end

subgraph group_generation["Artifact generation"]
  node_iac_analyze["Project analysis<br/>[analyze_project.py]"]
  node_iac_resolver["Prompt resolver"]
  node_iac_rag["IaC knowledge base<br/>[rag_kb.py]"]
  node_iac_generate["Terraform generation<br/>[generate_file.py]"]
  node_iac_llm["IaC LLM client<br/>[llm_client.py]"]
  node_iac_validate["Terraform validation<br/>[validate.py]"]
  node_iac_write["Terraform writing<br/>[write_files.py]"]
end

node_user(("User"))

node_user -.->|"uses"| node_app_shell
node_app_shell -->|"hosts"| node_routes
node_routes -->|"routes to"| node_run_page
node_backend -->|"uses"| node_orchestrator_utils
node_backend -->|"uses"| node_agent_bridge
node_backend -->|"registers"| node_artifact_routes
node_backend -->|"registers"| node_build_routes
node_backend -->|"registers"| node_judge_routes
node_backend -->|"uses"| node_history
node_backend -->|"uses"| node_websocket
node_backend -->|"uses"| node_judge
node_planner -.->|"selects agent"| node_cicd_pipeline
node_planner -.->|"selects agent"| node_iac_pipeline
node_planner -.->|"selects agent"| node_docker_pipeline
node_planner -.->|"selects agent"| node_k8s_pipeline
node_cicd_pipeline -->|"resolves intent"| node_cicd_intent
node_cicd_pipeline -->|"analyzes dependencies"| node_cicd_deps
node_iac_pipeline -->|"analyzes project"| node_iac_analyze
node_iac_pipeline -->|"resolves intent"| node_iac_resolver
node_iac_pipeline -->|"queries knowledge"| node_iac_rag
node_iac_pipeline -->|"generates Terraform"| node_iac_generate
node_iac_pipeline -->|"validates output"| node_iac_validate
node_iac_pipeline -->|"writes files"| node_iac_write
node_iac_generate -.->|"uses model"| node_iac_llm
node_k8s_pipeline -.->|"executes in"| node_sandbox

click node_app_shell "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/frontend/src/app/app.component.ts"
click node_routes "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/frontend/src/app/app.routes.ts"
click node_run_page "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/frontend/src/app/components/cicd-run-page/cicd-run-page.component.ts"
click node_run_model "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/frontend/src/app/models/run.model.ts"
click node_api "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/frontend/src/app/services/api.service.ts"
click node_cicd_client "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/frontend/src/app/services/cicd.service.ts"
click node_backend "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/backend/main.py"
click node_orchestrator_utils "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/backend/orchestrator_utils.py"
click node_agent_bridge "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/backend/execution_agent_bridge.py"
click node_artifact_routes "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/backend/routes/artifacts.py"
click node_build_routes "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/backend/routes/cicd_build.py"
click node_judge_routes "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/backend/routes/log_judge.py"
click node_judge "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/backend/llm_judge.py"
click node_history "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/backend/session_history_router.py"
click node_websocket "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/backend/websocket_manager.py"
click node_planner "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/planner-agent/pipeline.py"
click node_cicd_pipeline "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/cicd-agent/src/pipeline.py"
click node_cicd_intent "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/cicd-agent/src/components/intent_layer.py"
click node_cicd_deps "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/cicd-agent/src/components/dependency_analyzer.py"
click node_iac_pipeline "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/iac-agent/src/pipeline.py"
click node_iac_analyze "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/iac-agent/src/components/analyze_project.py"
click node_iac_resolver "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/iac-agent/src/components/prompt_intent_resolver.py"
click node_iac_rag "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/iac-agent/src/components/rag_kb.py"
click node_iac_generate "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/iac-agent/src/components/generate_file.py"
click node_iac_llm "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/iac-agent/src/components/llm_client.py"
click node_iac_validate "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/iac-agent/src/components/validate.py"
click node_iac_write "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/iac-agent/src/components/write_files.py"
click node_docker_pipeline "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/docker-agent/src/pipeline.py"
click node_k8s_pipeline "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/k8s-agent/src/pipeline.py"
click node_sandbox "https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/execution-sandbox/pipeline.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app_shell,node_routes,node_run_page,node_run_model,node_api,node_cicd_client,node_user toneBlue
class node_backend,node_orchestrator_utils,node_agent_bridge,node_artifact_routes,node_build_routes,node_judge_routes,node_judge,node_history,node_websocket toneAmber
class node_planner,node_cicd_pipeline,node_cicd_intent,node_cicd_deps,node_iac_pipeline,node_docker_pipeline,node_k8s_pipeline,node_sandbox toneMint
class node_iac_analyze,node_iac_resolver,node_iac_rag,node_iac_generate,node_iac_llm,node_iac_validate,node_iac_write toneRose
```

## Components

### User interface

- [App shell](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/frontend/src/app/app.component.ts): `frontend/src/app/app.component.ts`
- [Run routes](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/frontend/src/app/app.routes.ts): `frontend/src/app/app.routes.ts`
- [CI/CD run page](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/frontend/src/app/components/cicd-run-page/cicd-run-page.component.ts): `frontend/src/app/components/cicd-run-page/cicd-run-page.component.ts`
- [Run data model](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/frontend/src/app/models/run.model.ts): `frontend/src/app/models/run.model.ts`
- [API client](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/frontend/src/app/services/api.service.ts): `frontend/src/app/services/api.service.ts`
- [CI/CD client](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/frontend/src/app/services/cicd.service.ts): `frontend/src/app/services/cicd.service.ts`

### API and orchestration

- [Run API](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/backend/main.py): `backend/main.py`
- [Orchestration utilities](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/backend/orchestrator_utils.py): `backend/orchestrator_utils.py`
- [Agent bridge](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/backend/execution_agent_bridge.py): `backend/execution_agent_bridge.py`
- [Artifact routes](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/backend/routes/artifacts.py): `backend/routes/artifacts.py`
- [CI/CD build routes](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/backend/routes/cicd_build.py): `backend/routes/cicd_build.py`
- [Log judging](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/backend/routes/log_judge.py): `backend/routes/log_judge.py`
- [LLM judge](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/backend/llm_judge.py): `backend/llm_judge.py`
- [Session history](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/backend/session_history_router.py): `backend/session_history_router.py`
- [WebSocket manager](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/backend/websocket_manager.py): `backend/websocket_manager.py`

### Specialist agents

- [Request planner](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/planner-agent/pipeline.py): `test_pfe/02-orchestration-agents-layer/planner-agent/pipeline.py`
- [CI/CD pipeline](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/cicd-agent/src/pipeline.py): `test_pfe/02-orchestration-agents-layer/cicd-agent/src/pipeline.py`
- [CI/CD intent](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/cicd-agent/src/components/intent_layer.py): `test_pfe/02-orchestration-agents-layer/cicd-agent/src/components/intent_layer.py`
- [Dependency analysis](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/cicd-agent/src/components/dependency_analyzer.py): `test_pfe/02-orchestration-agents-layer/cicd-agent/src/components/dependency_analyzer.py`
- [IaC pipeline](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/iac-agent/src/pipeline.py): `test_pfe/02-orchestration-agents-layer/iac-agent/src/pipeline.py`
- [Docker pipeline](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/docker-agent/src/pipeline.py): `test_pfe/02-orchestration-agents-layer/docker-agent/src/pipeline.py`
- [Kubernetes pipeline](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/k8s-agent/src/pipeline.py): `test_pfe/02-orchestration-agents-layer/k8s-agent/src/pipeline.py`
- [Execution sandbox](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/execution-sandbox/pipeline.py): `test_pfe/02-orchestration-agents-layer/execution-sandbox/pipeline.py`

### Artifact generation

- [Project analysis](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/iac-agent/src/components/analyze_project.py): `test_pfe/02-orchestration-agents-layer/iac-agent/src/components/analyze_project.py`
- [Prompt resolver](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/iac-agent/src/components/prompt_intent_resolver.py): `test_pfe/02-orchestration-agents-layer/iac-agent/src/components/prompt_intent_resolver.py`
- [IaC knowledge base](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/iac-agent/src/components/rag_kb.py): `test_pfe/02-orchestration-agents-layer/iac-agent/src/components/rag_kb.py`
- [Terraform generation](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/iac-agent/src/components/generate_file.py): `test_pfe/02-orchestration-agents-layer/iac-agent/src/components/generate_file.py`
- [IaC LLM client](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/iac-agent/src/components/llm_client.py): `test_pfe/02-orchestration-agents-layer/iac-agent/src/components/llm_client.py`
- [Terraform validation](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/iac-agent/src/components/validate.py): `test_pfe/02-orchestration-agents-layer/iac-agent/src/components/validate.py`
- [Terraform writing](https://github.com/ahmedkbenzid/pfe-automatization-of-devops-with-generative-ai-and-agentic-ai/blob/main/test_pfe/02-orchestration-agents-layer/iac-agent/src/components/write_files.py): `test_pfe/02-orchestration-agents-layer/iac-agent/src/components/write_files.py`

### Other components

- **User**

## Connections

- User → App shell: uses
- App shell → Run routes: hosts (evidence: `frontend/src/app/app.component.ts`)
- Run routes → CI/CD run page: routes to (evidence: `frontend/src/app/app.routes.ts`)
- Run API → Orchestration utilities: uses (evidence: `backend/main.py`)
- Run API → Agent bridge: uses (evidence: `backend/main.py`)
- Run API → Artifact routes: registers (evidence: `backend/main.py`)
- Run API → CI/CD build routes: registers (evidence: `backend/main.py`)
- Run API → Log judging: registers (evidence: `backend/main.py`)
- Run API → Session history: uses (evidence: `backend/main.py`)
- Run API → WebSocket manager: uses (evidence: `backend/main.py`)
- Run API → LLM judge: uses (evidence: `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 (evidence: `test_pfe/02-orchestration-agents-layer/cicd-agent/src/pipeline.py`)
- CI/CD pipeline → Dependency analysis: analyzes dependencies (evidence: `test_pfe/02-orchestration-agents-layer/cicd-agent/src/pipeline.py`)
- IaC pipeline → Project analysis: analyzes project (evidence: `test_pfe/02-orchestration-agents-layer/iac-agent/src/pipeline.py`)
- IaC pipeline → Prompt resolver: resolves intent (evidence: `test_pfe/02-orchestration-agents-layer/iac-agent/src/pipeline.py`)
- IaC pipeline → IaC knowledge base: queries knowledge (evidence: `test_pfe/02-orchestration-agents-layer/iac-agent/src/pipeline.py`)
- IaC pipeline → Terraform generation: generates Terraform (evidence: `test_pfe/02-orchestration-agents-layer/iac-agent/src/pipeline.py`)
- IaC pipeline → Terraform validation: validates output (evidence: `test_pfe/02-orchestration-agents-layer/iac-agent/src/pipeline.py`)
- IaC pipeline → Terraform writing: writes files (evidence: `test_pfe/02-orchestration-agents-layer/iac-agent/src/pipeline.py`)
- Terraform generation → IaC LLM client: uses model (evidence: `test_pfe/02-orchestration-agents-layer/iac-agent/src/components/generate_file.py`)
- Kubernetes pipeline → Execution sandbox: executes in
