# manojkesani/accessibility-agent-system architecture

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

- Interactive diagram: https://gitdiagram.com/manojkesani/accessibility-agent-system
- Repository: https://github.com/manojkesani/accessibility-agent-system

## Overview

This is a Streamlit-driven accessibility auditing and remediation system. A user submits a GitHub repository; the workflow clones and scans its source, locates issues, delegates proposed fixes to HTML/CSS/JavaScript experts, critiques them, applies approved changes, and generates reports. GitHub branch and pull-request operations are a distinct delivery stage. The graph preserves documented workflow capabilities, but several stage-to-stage links are supported by the README rather than complete workflow excerpts; `code.py` is included as a core module, with its role and connections not inferred.

Main entry points: [`workflows/accessibility_workflow.py`](https://github.com/manojkesani/accessibility-agent-system/blob/main/workflows/accessibility_workflow.py) (Workflow orchestrator), [`agents/base_agent.py`](https://github.com/manojkesani/accessibility-agent-system/blob/main/agents/base_agent.py) (Agent foundation), [`agents/manager_agent.py`](https://github.com/manojkesani/accessibility-agent-system/blob/main/agents/manager_agent.py) (Fix manager), [`utils/github_handler.py`](https://github.com/manojkesani/accessibility-agent-system/blob/main/utils/github_handler.py) (Repository operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_app["Streamlit UI<br/>[app.py]"]
end

subgraph group_workflow["Audit workflow"]
  node_workflow_engine["Workflow orchestrator"]
  node_config["Runtime configuration<br/>[config.py]"]
end

subgraph group_agents["Analysis and agents"]
  node_analyzer["Accessibility analyzer"]
  node_locator["Issue locator<br/>[issue_locator.py]"]
  node_manager["Fix manager<br/>[manager_agent.py]"]
  node_html_expert["HTML expert<br/>[domain_experts.py]"]
  node_css_expert["CSS expert<br/>[domain_experts.py]"]
  node_js_expert["JavaScript expert<br/>[domain_experts.py]"]
  node_critic["Fix critic<br/>[critic_agent.py]"]
  node_base_agent["Agent foundation<br/>[base_agent.py]"]
end

subgraph group_delivery["Fixes and reporting"]
  node_github_handler["Repository operations<br/>[github_handler.py]"]
  node_github_agent["GitHub agent<br/>[github_agent.py]"]
  node_report_generator["Report generator"]
end

node_user(("Repository user"))
node_repo["Target repository"]
node_groq["Groq LLM"]
node_github_service["GitHub service"]
node_code_module["Core code module<br/>[code.py]"]

node_user -->|"submits repository"| node_app
node_app -->|"starts workflow"| node_workflow_engine
node_workflow_engine -->|"clones repository"| node_github_handler
node_repo -->|"provides source"| node_github_handler
node_workflow_engine -->|"runs scan"| node_analyzer
node_workflow_engine -->|"locates issues"| node_locator
node_workflow_engine -->|"delegates fixes"| node_manager
node_manager -->|"delegates HTML"| node_html_expert
node_manager -->|"delegates CSS"| node_css_expert
node_manager -->|"delegates JavaScript"| node_js_expert
node_workflow_engine -->|"reviews fixes"| node_critic
node_workflow_engine -->|"applies approved fixes"| node_github_agent
node_github_agent -->|"invokes operations"| node_github_handler
node_github_handler -->|"pushes and opens PR"| node_github_service
node_workflow_engine -->|"generates reports"| node_report_generator
node_app -->|"displays reports"| node_report_generator
node_base_agent -->|"configures model"| node_groq
node_analyzer -->|"inherits from"| node_base_agent
node_locator -->|"inherits from"| node_base_agent
node_manager -->|"inherits from"| node_base_agent
node_critic -->|"inherits from"| node_base_agent
node_github_agent -->|"inherits from"| node_base_agent
node_github_handler -->|"reads settings"| node_config
node_base_agent -->|"reads model settings"| node_config

click node_app "https://github.com/manojkesani/accessibility-agent-system/blob/main/app.py"
click node_workflow_engine "https://github.com/manojkesani/accessibility-agent-system/blob/main/workflows/accessibility_workflow.py"
click node_github_handler "https://github.com/manojkesani/accessibility-agent-system/blob/main/utils/github_handler.py"
click node_analyzer "https://github.com/manojkesani/accessibility-agent-system/blob/main/agents/accessibility_analyzer.py"
click node_locator "https://github.com/manojkesani/accessibility-agent-system/blob/main/agents/issue_locator.py"
click node_manager "https://github.com/manojkesani/accessibility-agent-system/blob/main/agents/manager_agent.py"
click node_html_expert "https://github.com/manojkesani/accessibility-agent-system/blob/main/agents/domain_experts.py"
click node_css_expert "https://github.com/manojkesani/accessibility-agent-system/blob/main/agents/domain_experts.py"
click node_js_expert "https://github.com/manojkesani/accessibility-agent-system/blob/main/agents/domain_experts.py"
click node_critic "https://github.com/manojkesani/accessibility-agent-system/blob/main/agents/critic_agent.py"
click node_github_agent "https://github.com/manojkesani/accessibility-agent-system/blob/main/agents/github_agent.py"
click node_report_generator "https://github.com/manojkesani/accessibility-agent-system/blob/main/utils/report_generator.py"
click node_base_agent "https://github.com/manojkesani/accessibility-agent-system/blob/main/agents/base_agent.py"
click node_config "https://github.com/manojkesani/accessibility-agent-system/blob/main/config.py"
click node_code_module "https://github.com/manojkesani/accessibility-agent-system/blob/main/code.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,node_user toneBlue
class node_workflow_engine,node_config toneAmber
class node_analyzer,node_locator,node_manager,node_html_expert,node_css_expert,node_js_expert,node_critic,node_base_agent toneMint
class node_github_handler,node_github_agent,node_report_generator toneRose
class node_repo,node_groq,node_github_service toneIndigo
class node_code_module toneTeal
```

## Components

### User interface

- [Streamlit UI](https://github.com/manojkesani/accessibility-agent-system/blob/main/app.py): `app.py`

### Audit workflow

- [Workflow orchestrator](https://github.com/manojkesani/accessibility-agent-system/blob/main/workflows/accessibility_workflow.py): `workflows/accessibility_workflow.py`
- [Runtime configuration](https://github.com/manojkesani/accessibility-agent-system/blob/main/config.py): `config.py`

### Analysis and agents

- [Accessibility analyzer](https://github.com/manojkesani/accessibility-agent-system/blob/main/agents/accessibility_analyzer.py): `agents/accessibility_analyzer.py`
- [Issue locator](https://github.com/manojkesani/accessibility-agent-system/blob/main/agents/issue_locator.py): `agents/issue_locator.py`
- [Fix manager](https://github.com/manojkesani/accessibility-agent-system/blob/main/agents/manager_agent.py): `agents/manager_agent.py`
- [HTML expert](https://github.com/manojkesani/accessibility-agent-system/blob/main/agents/domain_experts.py): `agents/domain_experts.py`
- [CSS expert](https://github.com/manojkesani/accessibility-agent-system/blob/main/agents/domain_experts.py): `agents/domain_experts.py`
- [JavaScript expert](https://github.com/manojkesani/accessibility-agent-system/blob/main/agents/domain_experts.py): `agents/domain_experts.py`
- [Fix critic](https://github.com/manojkesani/accessibility-agent-system/blob/main/agents/critic_agent.py): `agents/critic_agent.py`
- [Agent foundation](https://github.com/manojkesani/accessibility-agent-system/blob/main/agents/base_agent.py): `agents/base_agent.py`

### Fixes and reporting

- [Repository operations](https://github.com/manojkesani/accessibility-agent-system/blob/main/utils/github_handler.py): `utils/github_handler.py`
- [GitHub agent](https://github.com/manojkesani/accessibility-agent-system/blob/main/agents/github_agent.py): `agents/github_agent.py`
- [Report generator](https://github.com/manojkesani/accessibility-agent-system/blob/main/utils/report_generator.py): `utils/report_generator.py`

### Other components

- **Repository user**
- **Target repository**
- **Groq LLM**
- **GitHub service**
- [Core code module](https://github.com/manojkesani/accessibility-agent-system/blob/main/code.py): `code.py`

## Connections

- Repository user → Streamlit UI: submits repository (evidence: `README.md`)
- Streamlit UI → Workflow orchestrator: starts workflow (evidence: `app.py`)
- Workflow orchestrator → Repository operations: clones repository (evidence: `workflows/accessibility_workflow.py`)
- Target repository → Repository operations: provides source (evidence: `utils/github_handler.py`)
- Workflow orchestrator → Accessibility analyzer: runs scan (evidence: `README.md`)
- Workflow orchestrator → Issue locator: locates issues (evidence: `README.md`)
- Workflow orchestrator → Fix manager: delegates fixes (evidence: `workflows/accessibility_workflow.py`)
- Fix manager → HTML expert: delegates HTML (evidence: `agents/manager_agent.py`)
- Fix manager → CSS expert: delegates CSS (evidence: `agents/manager_agent.py`)
- Fix manager → JavaScript expert: delegates JavaScript (evidence: `agents/manager_agent.py`)
- Workflow orchestrator → Fix critic: reviews fixes (evidence: `README.md`)
- Workflow orchestrator → GitHub agent: applies approved fixes (evidence: `workflows/accessibility_workflow.py`)
- GitHub agent → Repository operations: invokes operations (evidence: `agents/github_agent.py`)
- Repository operations → GitHub service: pushes and opens PR (evidence: `utils/github_handler.py`)
- Workflow orchestrator → Report generator: generates reports (evidence: `workflows/accessibility_workflow.py`)
- Streamlit UI → Report generator: displays reports (evidence: `app.py`)
- Agent foundation → Groq LLM: configures model (evidence: `agents/base_agent.py`)
- Accessibility analyzer → Agent foundation: inherits from (evidence: `agents/accessibility_analyzer.py`)
- Issue locator → Agent foundation: inherits from (evidence: `agents/issue_locator.py`)
- Fix manager → Agent foundation: inherits from (evidence: `agents/manager_agent.py`)
- Fix critic → Agent foundation: inherits from (evidence: `agents/critic_agent.py`)
- GitHub agent → Agent foundation: inherits from (evidence: `agents/github_agent.py`)
- Repository operations → Runtime configuration: reads settings (evidence: `utils/github_handler.py`)
- Agent foundation → Runtime configuration: reads model settings (evidence: `agents/base_agent.py`)
