# raushan291/autodev architecture

> Architecture diagram of the GitHub repository raushan291/autodev, 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/raushan291/autodev
- Repository: https://github.com/raushan291/autodev

## Overview

AutoDev turns a feature request into a coordinated engineering workflow: retrieve repository and session context, plan agent actions, then generate or edit code, review it, test it, and conditionally deploy it. The Streamlit UI enters through app/main.py, which initializes the agents, indexes, and workflow. The README describes end-to-end design/build/review/test/deploy; the graph also preserves repository indexing, persistent sessions, file operations, and GitHub deployment. Workflow excerpts establish key dispatches; links to unsampled agent internals are omitted where their callers are not visible.

Main entry points: [`app/workflows/feature_delivery_workflow.py`](https://github.com/raushan291/autodev/blob/main/app/workflows/feature_delivery_workflow.py) (Feature delivery), [`app/communication/a2a_bus.py`](https://github.com/raushan291/autodev/blob/main/app/communication/a2a_bus.py) (Agent message bus), [`app/main.py`](https://github.com/raushan291/autodev/blob/main/app/main.py) (System assembly), [`app/rag/vector_store.py`](https://github.com/raushan291/autodev/blob/main/app/rag/vector_store.py) (Vector store)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User entry"]
  node_ui["Streamlit UI<br/>[streamlit_app.py]"]
end

subgraph group_orchestration["Workflow orchestration"]
  node_main["System assembly<br/>[main.py]"]
  node_workflow["Feature delivery"]
  node_bus["Agent message bus<br/>[a2a_bus.py]"]
end

subgraph group_engineering["Engineering agents"]
  node_planner["Task planning<br/>[planner_agent.py]"]
  node_assistant["Assistant responses<br/>[assistant_agent.py]"]
  node_codegen["Code generation<br/>[codegen_agent.py]"]
  node_reviewer["Code review<br/>[review_agent.py]"]
  node_tester["Test execution<br/>[testing_agent.py]"]
  node_filemanager["File operations"]
end

subgraph group_context["Context and memory"]
  node_ragagent["Context retrieval<br/>[rag_agent.py]"]
  node_repoindex["Repository indexing<br/>[repo_indexer.py]"]
  node_codeindex["Generated-code indexing<br/>[code_indexer.py]"]
  node_contextindex["Session context indexing<br/>[context_indexer.py]"]
  node_vectorstore[("Vector store<br/>[vector_store.py]")]
  node_sessions[("Session history<br/>[session_store.py]")]
end

subgraph group_integrations["Tools and deployment"]
  node_gemini["Gemini model API<br/>[gemini_client.py]"]
  node_githubdeploy["GitHub deployment<br/>[deploy_agent.py]"]
  node_githubmanager["Git and GitHub manager<br/>[github_manager.py]"]
  node_githubtool["GitHub operations<br/>[github_tool.py]"]
  node_terminal["Terminal execution<br/>[terminal_tool.py]"]
end

node_user(("Feature requester"))

node_user -->|"submits feature"| node_ui
node_ui -->|"starts workflow"| node_main
node_main -->|"creates"| node_workflow
node_main -->|"registers agents"| node_bus
node_main -->|"indexes repository"| node_repoindex
node_main -->|"creates indexer"| node_codeindex
node_main -->|"creates indexer"| node_contextindex
node_main -->|"creates store"| node_vectorstore
node_main -->|"creates store"| node_sessions
node_workflow -->|"persists history"| node_sessions
node_workflow -->|"indexes queries"| node_contextindex
node_workflow -->|"dispatches work"| node_bus
node_bus -.->|"routes messages"| node_planner
node_bus -.->|"routes messages"| node_ragagent
node_bus -.->|"routes messages"| node_codegen
node_bus -.->|"routes messages"| node_reviewer
node_bus -.->|"routes messages"| node_tester
node_bus -.->|"routes messages"| node_filemanager
node_bus -.->|"routes messages"| node_assistant
node_bus -.->|"routes messages"| node_githubdeploy
node_workflow -->|"indexes generated files"| node_codeindex
node_workflow -->|"requests review"| node_reviewer
node_workflow -->|"runs tests"| node_tester
node_workflow -->|"deploys after tests"| node_githubdeploy
node_workflow -->|"dispatches operations"| node_filemanager
node_workflow -->|"requests response"| node_assistant
node_ragagent -->|"searches code"| node_vectorstore
node_ragagent -->|"searches contexts"| node_contextindex
node_repoindex -.->|"stores repository"| node_vectorstore
node_codeindex -.->|"stores code"| node_vectorstore
node_contextindex -->|"stores contexts"| node_vectorstore
node_planner -.->|"requests planning"| node_gemini
node_assistant -.->|"requests response"| node_gemini
node_codegen -.->|"generates code"| node_gemini
node_reviewer -->|"scores code"| node_gemini
node_githubdeploy -.->|"manages deployment"| node_githubmanager
node_githubmanager -->|"executes operations"| node_githubtool
node_tester -.->|"runs commands"| node_terminal

click node_ui "https://github.com/raushan291/autodev/blob/main/ui/streamlit_app.py"
click node_main "https://github.com/raushan291/autodev/blob/main/app/main.py"
click node_workflow "https://github.com/raushan291/autodev/blob/main/app/workflows/feature_delivery_workflow.py"
click node_bus "https://github.com/raushan291/autodev/blob/main/app/communication/a2a_bus.py"
click node_planner "https://github.com/raushan291/autodev/blob/main/app/agents/planner_agent.py"
click node_assistant "https://github.com/raushan291/autodev/blob/main/app/agents/assistant_agent.py"
click node_codegen "https://github.com/raushan291/autodev/blob/main/app/agents/codegen_agent.py"
click node_reviewer "https://github.com/raushan291/autodev/blob/main/app/agents/review_agent.py"
click node_tester "https://github.com/raushan291/autodev/blob/main/app/agents/testing_agent.py"
click node_filemanager "https://github.com/raushan291/autodev/blob/main/app/agents/file_manager_agent.py"
click node_ragagent "https://github.com/raushan291/autodev/blob/main/app/agents/rag_agent.py"
click node_repoindex "https://github.com/raushan291/autodev/blob/main/app/rag/repo_indexer.py"
click node_codeindex "https://github.com/raushan291/autodev/blob/main/app/rag/code_indexer.py"
click node_contextindex "https://github.com/raushan291/autodev/blob/main/app/rag/context_indexer.py"
click node_vectorstore "https://github.com/raushan291/autodev/blob/main/app/rag/vector_store.py"
click node_sessions "https://github.com/raushan291/autodev/blob/main/app/storage/session_store.py"
click node_gemini "https://github.com/raushan291/autodev/blob/main/app/tools/gemini_client.py"
click node_githubdeploy "https://github.com/raushan291/autodev/blob/main/app/agents/deploy_agent.py"
click node_githubmanager "https://github.com/raushan291/autodev/blob/main/app/tools/github_manager.py"
click node_githubtool "https://github.com/raushan291/autodev/blob/main/app/tools/github_tool.py"
click node_terminal "https://github.com/raushan291/autodev/blob/main/app/tools/terminal_tool.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_ui toneBlue
class node_main,node_workflow,node_bus toneAmber
class node_planner,node_assistant,node_codegen,node_reviewer,node_tester,node_filemanager,node_user toneMint
class node_ragagent,node_repoindex,node_codeindex,node_contextindex,node_vectorstore,node_sessions toneRose
class node_gemini,node_githubdeploy,node_githubmanager,node_githubtool,node_terminal toneIndigo
```

## Components

### User entry

- [Streamlit UI](https://github.com/raushan291/autodev/blob/main/ui/streamlit_app.py): `ui/streamlit_app.py`

### Workflow orchestration

- [System assembly](https://github.com/raushan291/autodev/blob/main/app/main.py): `app/main.py`
- [Feature delivery](https://github.com/raushan291/autodev/blob/main/app/workflows/feature_delivery_workflow.py): `app/workflows/feature_delivery_workflow.py`
- [Agent message bus](https://github.com/raushan291/autodev/blob/main/app/communication/a2a_bus.py): `app/communication/a2a_bus.py`

### Engineering agents

- [Task planning](https://github.com/raushan291/autodev/blob/main/app/agents/planner_agent.py): `app/agents/planner_agent.py`
- [Assistant responses](https://github.com/raushan291/autodev/blob/main/app/agents/assistant_agent.py): `app/agents/assistant_agent.py`
- [Code generation](https://github.com/raushan291/autodev/blob/main/app/agents/codegen_agent.py): `app/agents/codegen_agent.py`
- [Code review](https://github.com/raushan291/autodev/blob/main/app/agents/review_agent.py): `app/agents/review_agent.py`
- [Test execution](https://github.com/raushan291/autodev/blob/main/app/agents/testing_agent.py): `app/agents/testing_agent.py`
- [File operations](https://github.com/raushan291/autodev/blob/main/app/agents/file_manager_agent.py): `app/agents/file_manager_agent.py`

### Context and memory

- [Context retrieval](https://github.com/raushan291/autodev/blob/main/app/agents/rag_agent.py): `app/agents/rag_agent.py`
- [Repository indexing](https://github.com/raushan291/autodev/blob/main/app/rag/repo_indexer.py): `app/rag/repo_indexer.py`
- [Generated-code indexing](https://github.com/raushan291/autodev/blob/main/app/rag/code_indexer.py): `app/rag/code_indexer.py`
- [Session context indexing](https://github.com/raushan291/autodev/blob/main/app/rag/context_indexer.py): `app/rag/context_indexer.py`
- [Vector store](https://github.com/raushan291/autodev/blob/main/app/rag/vector_store.py): `app/rag/vector_store.py`
- [Session history](https://github.com/raushan291/autodev/blob/main/app/storage/session_store.py): `app/storage/session_store.py`

### Tools and deployment

- [Gemini model API](https://github.com/raushan291/autodev/blob/main/app/tools/gemini_client.py): `app/tools/gemini_client.py`
- [GitHub deployment](https://github.com/raushan291/autodev/blob/main/app/agents/deploy_agent.py): `app/agents/deploy_agent.py`
- [Git and GitHub manager](https://github.com/raushan291/autodev/blob/main/app/tools/github_manager.py): `app/tools/github_manager.py`
- [GitHub operations](https://github.com/raushan291/autodev/blob/main/app/tools/github_tool.py): `app/tools/github_tool.py`
- [Terminal execution](https://github.com/raushan291/autodev/blob/main/app/tools/terminal_tool.py): `app/tools/terminal_tool.py`

### Other components

- **Feature requester**

## Connections

- Feature requester → Streamlit UI: submits feature (evidence: `README.md`)
- Streamlit UI → System assembly: starts workflow (evidence: `ui/streamlit_app.py`)
- System assembly → Feature delivery: creates (evidence: `app/main.py`)
- System assembly → Agent message bus: registers agents (evidence: `app/main.py`)
- System assembly → Repository indexing: indexes repository (evidence: `app/main.py`)
- System assembly → Generated-code indexing: creates indexer (evidence: `app/main.py`)
- System assembly → Session context indexing: creates indexer (evidence: `app/main.py`)
- System assembly → Vector store: creates store (evidence: `app/main.py`)
- System assembly → Session history: creates store (evidence: `app/main.py`)
- Feature delivery → Session history: persists history (evidence: `app/workflows/feature_delivery_workflow.py`)
- Feature delivery → Session context indexing: indexes queries (evidence: `app/workflows/feature_delivery_workflow.py`)
- Feature delivery → Agent message bus: dispatches work (evidence: `app/workflows/feature_delivery_workflow.py`)
- Agent message bus → Task planning: routes messages
- Agent message bus → Context retrieval: routes messages
- Agent message bus → Code generation: routes messages
- Agent message bus → Code review: routes messages
- Agent message bus → Test execution: routes messages
- Agent message bus → File operations: routes messages
- Agent message bus → Assistant responses: routes messages
- Agent message bus → GitHub deployment: routes messages
- Feature delivery → Generated-code indexing: indexes generated files (evidence: `app/workflows/feature_delivery_workflow.py`)
- Feature delivery → Code review: requests review (evidence: `app/workflows/feature_delivery_workflow.py`)
- Feature delivery → Test execution: runs tests (evidence: `app/workflows/feature_delivery_workflow.py`)
- Feature delivery → GitHub deployment: deploys after tests (evidence: `app/workflows/feature_delivery_workflow.py`)
- Feature delivery → File operations: dispatches operations (evidence: `app/workflows/feature_delivery_workflow.py`)
- Feature delivery → Assistant responses: requests response (evidence: `app/workflows/feature_delivery_workflow.py`)
- Context retrieval → Vector store: searches code (evidence: `app/agents/rag_agent.py`)
- Context retrieval → Session context indexing: searches contexts (evidence: `app/agents/rag_agent.py`)
- Repository indexing → Vector store: stores repository
- Generated-code indexing → Vector store: stores code
- Session context indexing → Vector store: stores contexts (evidence: `app/rag/context_indexer.py`)
- Task planning → Gemini model API: requests planning (evidence: `app/agents/planner_agent.py`)
- Assistant responses → Gemini model API: requests response (evidence: `app/agents/assistant_agent.py`)
- Code generation → Gemini model API: generates code (evidence: `app/agents/codegen_agent.py`)
- Code review → Gemini model API: scores code (evidence: `app/agents/review_agent.py`)
- GitHub deployment → Git and GitHub manager: manages deployment (evidence: `app/agents/deploy_agent.py`)
- Git and GitHub manager → GitHub operations: executes operations (evidence: `app/tools/github_manager.py`)
- Test execution → Terminal execution: runs commands (evidence: `app/agents/testing_agent.py`)
