# harishkumar4771/autodev_agents architecture

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

- Interactive diagram: https://gitdiagram.com/harishkumar4771/autodev_agents
- Repository: https://github.com/harishkumar4771/autodev_agents

## Overview

AutoDev Agents is a Streamlit app that runs a deterministic, mocked-LLM coding workflow. A user selects a preset requirement and starts a LangGraph pipeline: planning and test generation run in parallel, code and tests are executed, and a critic passes, retries development, or escalates. The UI streams logs and displays code, tests, and execution results. The graph and agents are all implemented in app.py; relationships shown are supported by the README or the provided app.py excerpts.

Main entry points: [`app.py`](https://github.com/harishkumar4771/autodev_agents/blob/main/app.py) (LangGraph workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_streamlit_ui["Streamlit UI<br/>[app.py]"]
  node_presets["Preset requirements<br/>[app.py]"]
end

subgraph group_workflow["Agent workflow"]
  node_workflow_graph["LangGraph workflow<br/>[app.py]"]
  node_planner["Planner<br/>[app.py]"]
  node_developer["Developer<br/>[app.py]"]
  node_test_agent["Test Agent<br/>[app.py]"]
  node_critic["Critic<br/>[app.py]"]
end

subgraph group_execution["Test execution"]
  node_temp_sandbox["Temp sandbox<br/>[app.py]"]
  node_pytest_runner["Pytest runner<br/>[app.py]"]
end

node_user(("User"))

node_user -->|"selects and starts"| node_streamlit_ui
node_streamlit_ui -->|"selects requirement"| node_presets
node_streamlit_ui -->|"streams run"| node_workflow_graph
node_workflow_graph -->|"dispatches"| node_planner
node_workflow_graph -->|"dispatches"| node_test_agent
node_workflow_graph -->|"dispatches"| node_developer
node_workflow_graph -->|"dispatches execution"| node_temp_sandbox
node_workflow_graph -->|"dispatches"| node_critic
node_planner -->|"returns plan"| node_workflow_graph
node_test_agent -->|"provides tests"| node_temp_sandbox
node_developer -->|"provides code"| node_temp_sandbox
node_temp_sandbox -->|"runs tests"| node_pytest_runner
node_pytest_runner -->|"returns results"| node_workflow_graph
node_critic -->|"returns verdict"| node_workflow_graph
node_workflow_graph -->|"retries on verdict"| node_developer
node_workflow_graph -->|"streams updates"| node_streamlit_ui

click node_streamlit_ui "https://github.com/harishkumar4771/autodev_agents/blob/main/app.py"
click node_presets "https://github.com/harishkumar4771/autodev_agents/blob/main/app.py"
click node_workflow_graph "https://github.com/harishkumar4771/autodev_agents/blob/main/app.py"
click node_planner "https://github.com/harishkumar4771/autodev_agents/blob/main/app.py"
click node_developer "https://github.com/harishkumar4771/autodev_agents/blob/main/app.py"
click node_test_agent "https://github.com/harishkumar4771/autodev_agents/blob/main/app.py"
click node_critic "https://github.com/harishkumar4771/autodev_agents/blob/main/app.py"
click node_temp_sandbox "https://github.com/harishkumar4771/autodev_agents/blob/main/app.py"
click node_pytest_runner "https://github.com/harishkumar4771/autodev_agents/blob/main/app.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_streamlit_ui,node_presets,node_user toneBlue
class node_workflow_graph,node_planner,node_developer,node_test_agent,node_critic toneAmber
class node_temp_sandbox,node_pytest_runner toneMint
```

## Components

### User interface

- [Streamlit UI](https://github.com/harishkumar4771/autodev_agents/blob/main/app.py): `app.py`
- [Preset requirements](https://github.com/harishkumar4771/autodev_agents/blob/main/app.py): `app.py`

### Agent workflow

- [LangGraph workflow](https://github.com/harishkumar4771/autodev_agents/blob/main/app.py): `app.py`
- [Planner](https://github.com/harishkumar4771/autodev_agents/blob/main/app.py): `app.py`
- [Developer](https://github.com/harishkumar4771/autodev_agents/blob/main/app.py): `app.py`
- [Test Agent](https://github.com/harishkumar4771/autodev_agents/blob/main/app.py): `app.py`
- [Critic](https://github.com/harishkumar4771/autodev_agents/blob/main/app.py): `app.py`

### Test execution

- [Temp sandbox](https://github.com/harishkumar4771/autodev_agents/blob/main/app.py): `app.py`
- [Pytest runner](https://github.com/harishkumar4771/autodev_agents/blob/main/app.py): `app.py`

### Other components

- **User**

## Connections

- User → Streamlit UI: selects and starts (evidence: `README.md`)
- Streamlit UI → Preset requirements: selects requirement (evidence: `app.py`)
- Streamlit UI → LangGraph workflow: streams run (evidence: `app.py`)
- LangGraph workflow → Planner: dispatches (evidence: `app.py`)
- LangGraph workflow → Test Agent: dispatches (evidence: `app.py`)
- LangGraph workflow → Developer: dispatches (evidence: `app.py`)
- LangGraph workflow → Temp sandbox: dispatches execution (evidence: `app.py`)
- LangGraph workflow → Critic: dispatches (evidence: `app.py`)
- Planner → LangGraph workflow: returns plan (evidence: `README.md`)
- Test Agent → Temp sandbox: provides tests (evidence: `app.py`)
- Developer → Temp sandbox: provides code (evidence: `app.py`)
- Temp sandbox → Pytest runner: runs tests (evidence: `app.py`)
- Pytest runner → LangGraph workflow: returns results (evidence: `README.md`)
- Critic → LangGraph workflow: returns verdict (evidence: `README.md`)
- LangGraph workflow → Developer: retries on verdict (evidence: `app.py`)
- LangGraph workflow → Streamlit UI: streams updates (evidence: `app.py`)
