# shivendra3535/agentforge-ai architecture

> Architecture diagram of the GitHub repository shivendra3535/agentforge-ai, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shivendra3535/agentforge-ai
- Repository: https://github.com/shivendra3535/agentforge-ai

## Overview

AgentForge AI accepts a natural-language software request, then coordinates planning, code generation, review, test generation, and documentation. The React dashboard supports login, job submission, progress tracking, and viewing agent results. The README describes the gateway, Eureka discovery, Kafka messaging, WebSocket updates, and MySQL persistence; sampled orchestration code confirms stage dispatch and result storage. Agent service excerpts show calls to the shared LLM client, which calls Ollama. Some service-to-service transport details and gateway routing are documented but not shown in sampled implementation.

Main entry points: [`orchestrator-service/src/main/java/com/microervices/services/WorkflowService.java`](https://github.com/shivendra3535/agentforge-ai/blob/main/orchestrator-service/src/main/java/com/microervices/services/WorkflowService.java) (Workflow Orchestrator), [`orchestrator-service/src/main/java/com/microervices/config/KafkaTopicConfig.java`](https://github.com/shivendra3535/agentforge-ai/blob/main/orchestrator-service/src/main/java/com/microervices/config/KafkaTopicConfig.java) (Kafka Topics), [`llm-client/src/main/java/com/microervices/llm/LlmService.java`](https://github.com/shivendra3535/agentforge-ai/blob/main/llm-client/src/main/java/com/microervices/llm/LlmService.java) (LLM Client), [`frontend/src/pages/JobTrackerPage.jsx`](https://github.com/shivendra3535/agentforge-ai/blob/main/frontend/src/pages/JobTrackerPage.jsx) (Job Tracker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Dashboard"]
  node_dashboard["React Dashboard<br/>[App.jsx]"]
  node_job_ui["Job Submission<br/>[NewJobPage.jsx]"]
  node_tracker["Job Tracker<br/>[JobTrackerPage.jsx]"]
  node_api_client["API Client<br/>[client.js]"]
  node_stepper["Pipeline Stepper"]
end

subgraph group_platform["Platform Services"]
  node_gateway["API Gateway"]
  node_discovery["Eureka Discovery"]
end

subgraph group_workflow["Workflow Orchestration"]
  node_orchestrator["Workflow Orchestrator"]
  node_job_api["Job Status API"]
  node_auth["Authentication<br/>[AuthService.java]"]
  node_jwt["JWT Security<br/>[JwtUtil.java]"]
  node_job_store[("Workflow Data")]
  node_kafka["Kafka Topics"]
  node_websocket["WebSocket Updates"]
end

subgraph group_agents["AI Agent Stages"]
  node_planner["Planner Agent"]
  node_coder["Coder Agent<br/>[CoderService.java]"]
  node_debugger["Debugger Agent"]
  node_tester["Tester Agent<br/>[TesterService.java]"]
  node_documenter["Documenter Agent"]
end

subgraph group_runtime["AI Runtime"]
  node_llm["LLM Client<br/>[LlmService.java]"]
end

node_user(("User"))
node_ollama["Ollama Model API"]

node_user -->|"uses"| node_dashboard
node_dashboard -->|"offers"| node_job_ui
node_job_ui -.->|"submits via"| node_api_client
node_api_client -.->|"sends requests"| node_gateway
node_gateway -.->|"uses discovery"| node_discovery
node_discovery -.->|"locates service"| node_orchestrator
node_orchestrator -->|"saves jobs and results"| node_job_store
node_job_api -->|"loads job"| node_orchestrator
node_job_api -->|"reads results"| node_job_store
node_orchestrator -->|"dispatches tasks"| node_kafka
node_kafka -.->|"delivers tasks"| node_planner
node_kafka -.->|"delivers tasks"| node_coder
node_kafka -.->|"delivers tasks"| node_debugger
node_kafka -.->|"delivers tasks"| node_tester
node_kafka -.->|"delivers tasks"| node_documenter
node_planner -->|"calls"| node_llm
node_coder -->|"calls"| node_llm
node_debugger -->|"calls"| node_llm
node_tester -->|"calls"| node_llm
node_documenter -->|"calls"| node_llm
node_llm -->|"posts prompts"| node_ollama
node_orchestrator -->|"publishes progress"| node_websocket
node_websocket -.->|"streams updates"| node_tracker
node_tracker -.->|"fetches status"| node_job_api
node_tracker -->|"renders stages"| node_stepper
node_auth -->|"generates token"| node_jwt
node_auth -->|"stores users"| node_job_store
node_orchestrator -->|"then dispatches"| node_coder
node_orchestrator -->|"then dispatches"| node_debugger
node_orchestrator -->|"then dispatches"| node_tester
node_orchestrator -->|"then dispatches"| node_documenter

click node_dashboard "https://github.com/shivendra3535/agentforge-ai/blob/main/frontend/src/App.jsx"
click node_job_ui "https://github.com/shivendra3535/agentforge-ai/blob/main/frontend/src/pages/NewJobPage.jsx"
click node_tracker "https://github.com/shivendra3535/agentforge-ai/blob/main/frontend/src/pages/JobTrackerPage.jsx"
click node_api_client "https://github.com/shivendra3535/agentforge-ai/blob/main/frontend/src/api/client.js"
click node_stepper "https://github.com/shivendra3535/agentforge-ai/blob/main/frontend/src/components/PipelineStepper.jsx"
click node_gateway "https://github.com/shivendra3535/agentforge-ai/blob/main/api-gateway/src/main/java/com/microervices/ApiGatewayApplication.java"
click node_discovery "https://github.com/shivendra3535/agentforge-ai/blob/main/eureka-server/src/main/java/com/microervices/EurekaServerApplication.java"
click node_orchestrator "https://github.com/shivendra3535/agentforge-ai/blob/main/orchestrator-service/src/main/java/com/microervices/services/WorkflowService.java"
click node_job_api "https://github.com/shivendra3535/agentforge-ai/blob/main/orchestrator-service/src/main/java/com/microervices/controller/JobStatusController.java"
click node_auth "https://github.com/shivendra3535/agentforge-ai/blob/main/orchestrator-service/src/main/java/com/microervices/services/AuthService.java"
click node_jwt "https://github.com/shivendra3535/agentforge-ai/blob/main/orchestrator-service/src/main/java/com/microervices/security/JwtUtil.java"
click node_job_store "https://github.com/shivendra3535/agentforge-ai/tree/main/orchestrator-service/src/main/java/com/microervices/repository"
click node_kafka "https://github.com/shivendra3535/agentforge-ai/blob/main/orchestrator-service/src/main/java/com/microervices/config/KafkaTopicConfig.java"
click node_websocket "https://github.com/shivendra3535/agentforge-ai/blob/main/orchestrator-service/src/main/java/com/microervices/config/WebSocketConfig.java"
click node_planner "https://github.com/shivendra3535/agentforge-ai/blob/main/planner-agent/src/main/java/com/microervices/service/PlannerService.java"
click node_coder "https://github.com/shivendra3535/agentforge-ai/blob/main/coder-agent/src/main/java/com/microervices/service/CoderService.java"
click node_debugger "https://github.com/shivendra3535/agentforge-ai/blob/main/debugger-agent/src/main/java/com/microervices/service/DebuggerService.java"
click node_tester "https://github.com/shivendra3535/agentforge-ai/blob/main/tester-agent/src/main/java/com/microervices/service/TesterService.java"
click node_llm "https://github.com/shivendra3535/agentforge-ai/blob/main/llm-client/src/main/java/com/microervices/llm/LlmService.java"

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_dashboard,node_job_ui,node_tracker,node_api_client,node_stepper,node_user toneBlue
class node_gateway,node_discovery toneAmber
class node_orchestrator,node_job_api,node_auth,node_jwt,node_job_store,node_kafka,node_websocket,node_ollama toneMint
class node_planner,node_coder,node_debugger,node_tester,node_documenter toneRose
class node_llm toneIndigo
```

## Components

### Dashboard

- [React Dashboard](https://github.com/shivendra3535/agentforge-ai/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Job Submission](https://github.com/shivendra3535/agentforge-ai/blob/main/frontend/src/pages/NewJobPage.jsx): `frontend/src/pages/NewJobPage.jsx`
- [Job Tracker](https://github.com/shivendra3535/agentforge-ai/blob/main/frontend/src/pages/JobTrackerPage.jsx): `frontend/src/pages/JobTrackerPage.jsx`
- [API Client](https://github.com/shivendra3535/agentforge-ai/blob/main/frontend/src/api/client.js): `frontend/src/api/client.js`
- [Pipeline Stepper](https://github.com/shivendra3535/agentforge-ai/blob/main/frontend/src/components/PipelineStepper.jsx): `frontend/src/components/PipelineStepper.jsx`

### Platform Services

- [API Gateway](https://github.com/shivendra3535/agentforge-ai/blob/main/api-gateway/src/main/java/com/microervices/ApiGatewayApplication.java): `api-gateway/src/main/java/com/microervices/ApiGatewayApplication.java`
- [Eureka Discovery](https://github.com/shivendra3535/agentforge-ai/blob/main/eureka-server/src/main/java/com/microervices/EurekaServerApplication.java): `eureka-server/src/main/java/com/microervices/EurekaServerApplication.java`

### Workflow Orchestration

- [Workflow Orchestrator](https://github.com/shivendra3535/agentforge-ai/blob/main/orchestrator-service/src/main/java/com/microervices/services/WorkflowService.java): `orchestrator-service/src/main/java/com/microervices/services/WorkflowService.java`
- [Job Status API](https://github.com/shivendra3535/agentforge-ai/blob/main/orchestrator-service/src/main/java/com/microervices/controller/JobStatusController.java): `orchestrator-service/src/main/java/com/microervices/controller/JobStatusController.java`
- [Authentication](https://github.com/shivendra3535/agentforge-ai/blob/main/orchestrator-service/src/main/java/com/microervices/services/AuthService.java): `orchestrator-service/src/main/java/com/microervices/services/AuthService.java`
- [JWT Security](https://github.com/shivendra3535/agentforge-ai/blob/main/orchestrator-service/src/main/java/com/microervices/security/JwtUtil.java): `orchestrator-service/src/main/java/com/microervices/security/JwtUtil.java`
- [Workflow Data](https://github.com/shivendra3535/agentforge-ai/tree/main/orchestrator-service/src/main/java/com/microervices/repository): `orchestrator-service/src/main/java/com/microervices/repository`
- [Kafka Topics](https://github.com/shivendra3535/agentforge-ai/blob/main/orchestrator-service/src/main/java/com/microervices/config/KafkaTopicConfig.java): `orchestrator-service/src/main/java/com/microervices/config/KafkaTopicConfig.java`
- [WebSocket Updates](https://github.com/shivendra3535/agentforge-ai/blob/main/orchestrator-service/src/main/java/com/microervices/config/WebSocketConfig.java): `orchestrator-service/src/main/java/com/microervices/config/WebSocketConfig.java`

### AI Agent Stages

- [Planner Agent](https://github.com/shivendra3535/agentforge-ai/blob/main/planner-agent/src/main/java/com/microervices/service/PlannerService.java): `planner-agent/src/main/java/com/microervices/service/PlannerService.java`
- [Coder Agent](https://github.com/shivendra3535/agentforge-ai/blob/main/coder-agent/src/main/java/com/microervices/service/CoderService.java): `coder-agent/src/main/java/com/microervices/service/CoderService.java`
- [Debugger Agent](https://github.com/shivendra3535/agentforge-ai/blob/main/debugger-agent/src/main/java/com/microervices/service/DebuggerService.java): `debugger-agent/src/main/java/com/microervices/service/DebuggerService.java`
- [Tester Agent](https://github.com/shivendra3535/agentforge-ai/blob/main/tester-agent/src/main/java/com/microervices/service/TesterService.java): `tester-agent/src/main/java/com/microervices/service/TesterService.java`
- **Documenter Agent**

### AI Runtime

- [LLM Client](https://github.com/shivendra3535/agentforge-ai/blob/main/llm-client/src/main/java/com/microervices/llm/LlmService.java): `llm-client/src/main/java/com/microervices/llm/LlmService.java`

### Other components

- **User**
- **Ollama Model API**

## Connections

- User → React Dashboard: uses (evidence: `README.md`)
- React Dashboard → Job Submission: offers (evidence: `frontend/src/App.jsx`)
- Job Submission → API Client: submits via
- API Client → API Gateway: sends requests
- API Gateway → Eureka Discovery: uses discovery (evidence: `README.md`)
- Eureka Discovery → Workflow Orchestrator: locates service (evidence: `README.md`)
- Workflow Orchestrator → Workflow Data: saves jobs and results (evidence: `orchestrator-service/src/main/java/com/microervices/services/WorkflowService.java`)
- Job Status API → Workflow Orchestrator: loads job (evidence: `orchestrator-service/src/main/java/com/microervices/controller/JobStatusController.java`)
- Job Status API → Workflow Data: reads results (evidence: `orchestrator-service/src/main/java/com/microervices/controller/JobStatusController.java`)
- Workflow Orchestrator → Kafka Topics: dispatches tasks (evidence: `orchestrator-service/src/main/java/com/microervices/services/WorkflowService.java`)
- Kafka Topics → Planner Agent: delivers tasks (evidence: `README.md`)
- Kafka Topics → Coder Agent: delivers tasks (evidence: `README.md`)
- Kafka Topics → Debugger Agent: delivers tasks (evidence: `README.md`)
- Kafka Topics → Tester Agent: delivers tasks (evidence: `README.md`)
- Kafka Topics → Documenter Agent: delivers tasks (evidence: `README.md`)
- Planner Agent → LLM Client: calls (evidence: `planner-agent/src/main/java/com/microervices/service/PlannerService.java`)
- Coder Agent → LLM Client: calls (evidence: `coder-agent/src/main/java/com/microervices/service/CoderService.java`)
- Debugger Agent → LLM Client: calls (evidence: `debugger-agent/src/main/java/com/microervices/service/DebuggerService.java`)
- Tester Agent → LLM Client: calls (evidence: `tester-agent/src/main/java/com/microervices/service/TesterService.java`)
- Documenter Agent → LLM Client: calls
- LLM Client → Ollama Model API: posts prompts (evidence: `llm-client/src/main/java/com/microervices/llm/LlmService.java`)
- Workflow Orchestrator → WebSocket Updates: publishes progress (evidence: `orchestrator-service/src/main/java/com/microervices/services/WorkflowService.java`)
- WebSocket Updates → Job Tracker: streams updates (evidence: `README.md`)
- Job Tracker → Job Status API: fetches status (evidence: `README.md`)
- Job Tracker → Pipeline Stepper: renders stages
- Authentication → JWT Security: generates token (evidence: `orchestrator-service/src/main/java/com/microervices/services/AuthService.java`)
- Authentication → Workflow Data: stores users (evidence: `orchestrator-service/src/main/java/com/microervices/services/AuthService.java`)
- Workflow Orchestrator → Coder Agent: then dispatches (evidence: `orchestrator-service/src/main/java/com/microervices/services/WorkflowService.java`)
- Workflow Orchestrator → Debugger Agent: then dispatches (evidence: `orchestrator-service/src/main/java/com/microervices/services/WorkflowService.java`)
- Workflow Orchestrator → Tester Agent: then dispatches (evidence: `orchestrator-service/src/main/java/com/microervices/services/WorkflowService.java`)
- Workflow Orchestrator → Documenter Agent: then dispatches (evidence: `orchestrator-service/src/main/java/com/microervices/services/WorkflowService.java`)
