# youseef3550/job-application-agent architecture

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

- Interactive diagram: https://gitdiagram.com/youseef3550/job-application-agent
- Repository: https://github.com/youseef3550/job-application-agent

## Overview

This is a Streamlit job-application assistant: a user uploads a CV, searches for openings, reviews ranked fit scores, generates tailored letters, and logs applications. The app coordinates five agents; CV parsing produces structured data, job search retrieves listings, matching scores them, cover-letter generation uses the CV and ranked jobs, and tracking maintains application history. The README documents these capabilities, though the implementation of each agent is not equally integrated into one shared workflow. Edges reflect shown calls or documented behavior; generated files and external services are represented where supported by the excerpts.

Main entry points: [`app.py`](https://github.com/youseef3550/job-application-agent/blob/main/app.py) (Streamlit demo), [`core/cover_letter_agent.py`](https://github.com/youseef3550/job-application-agent/blob/main/core/cover_letter_agent.py) (Cover letter writer), [`core/cv_parser_agent.py`](https://github.com/youseef3550/job-application-agent/blob/main/core/cv_parser_agent.py) (CV parser), [`core/tracker_agent.py`](https://github.com/youseef3550/job-application-agent/blob/main/core/tracker_agent.py) (Application tracker)

## Diagram (Mermaid)

```mermaid
flowchart TD

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

subgraph group_agents["Application agents"]
  node_cv_parser["CV parser<br/>[cv_parser_agent.py]"]
  node_job_search["Job search"]
  node_matcher["Fit matcher<br/>[matcher_agent.py]"]
  node_cover_letter["Cover letter writer"]
  node_tracker["Application tracker<br/>[tracker_agent.py]"]
end

subgraph group_data["Shared data"]
  node_cv_schema["Parsed CV schema<br/>[state.py]"]
  node_application_store[("Application history")]
end

subgraph group_services["External services"]
  node_groq{{"Groq LLM"}}
  node_jsearch{{"JSearch API"}}
end

node_user(("Job seeker"))

node_user -->|"uses"| node_app
node_app -->|"parses CV"| node_cv_parser
node_app -->|"searches jobs"| node_job_search
node_app -->|"scores jobs"| node_matcher
node_app -->|"generates letters"| node_cover_letter
node_app -->|"logs applications"| node_tracker
node_cv_parser -->|"validates against"| node_cv_schema
node_cv_parser -->|"parses with"| node_groq
node_job_search -->|"requests listings"| node_jsearch
node_matcher -->|"scores with"| node_groq
node_cover_letter -->|"writes with"| node_groq
node_cover_letter -->|"parses CV"| node_cv_parser
node_cover_letter -->|"searches jobs"| node_job_search
node_cover_letter -->|"scores jobs"| node_matcher
node_tracker -->|"reads and writes"| node_application_store
node_tracker -->|"answers queries"| node_groq

click node_app "https://github.com/youseef3550/job-application-agent/blob/main/app.py"
click node_cv_parser "https://github.com/youseef3550/job-application-agent/blob/main/core/cv_parser_agent.py"
click node_job_search "https://github.com/youseef3550/job-application-agent/blob/main/core/job_search_agent.py"
click node_matcher "https://github.com/youseef3550/job-application-agent/blob/main/core/matcher_agent.py"
click node_cover_letter "https://github.com/youseef3550/job-application-agent/blob/main/core/cover_letter_agent.py"
click node_tracker "https://github.com/youseef3550/job-application-agent/blob/main/core/tracker_agent.py"
click node_cv_schema "https://github.com/youseef3550/job-application-agent/blob/main/core/state.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 toneBlue
class node_cv_parser,node_job_search,node_matcher,node_cover_letter,node_tracker toneAmber
class node_cv_schema,node_application_store toneMint
class node_groq,node_jsearch toneRose
class node_user toneIndigo
```

## Components

### User interface

- [Streamlit demo](https://github.com/youseef3550/job-application-agent/blob/main/app.py): `app.py`

### Application agents

- [CV parser](https://github.com/youseef3550/job-application-agent/blob/main/core/cv_parser_agent.py): `core/cv_parser_agent.py`
- [Job search](https://github.com/youseef3550/job-application-agent/blob/main/core/job_search_agent.py): `core/job_search_agent.py`
- [Fit matcher](https://github.com/youseef3550/job-application-agent/blob/main/core/matcher_agent.py): `core/matcher_agent.py`
- [Cover letter writer](https://github.com/youseef3550/job-application-agent/blob/main/core/cover_letter_agent.py): `core/cover_letter_agent.py`
- [Application tracker](https://github.com/youseef3550/job-application-agent/blob/main/core/tracker_agent.py): `core/tracker_agent.py`

### Shared data

- [Parsed CV schema](https://github.com/youseef3550/job-application-agent/blob/main/core/state.py): `core/state.py`
- **Application history**

### External services

- **Groq LLM**
- **JSearch API**

### Other components

- **Job seeker**

## Connections

- Job seeker → Streamlit demo: uses (evidence: `app.py`)
- Streamlit demo → CV parser: parses CV (evidence: `app.py`)
- Streamlit demo → Job search: searches jobs (evidence: `app.py`)
- Streamlit demo → Fit matcher: scores jobs (evidence: `app.py`)
- Streamlit demo → Cover letter writer: generates letters (evidence: `app.py`)
- Streamlit demo → Application tracker: logs applications (evidence: `app.py`)
- CV parser → Parsed CV schema: validates against (evidence: `core/cv_parser_agent.py`)
- CV parser → Groq LLM: parses with (evidence: `core/cv_parser_agent.py`)
- Job search → JSearch API: requests listings (evidence: `core/job_search_agent.py`)
- Fit matcher → Groq LLM: scores with (evidence: `core/matcher_agent.py`)
- Cover letter writer → Groq LLM: writes with (evidence: `core/cover_letter_agent.py`)
- Cover letter writer → CV parser: parses CV (evidence: `core/cover_letter_agent.py`)
- Cover letter writer → Job search: searches jobs (evidence: `core/cover_letter_agent.py`)
- Cover letter writer → Fit matcher: scores jobs (evidence: `core/cover_letter_agent.py`)
- Application tracker → Application history: reads and writes (evidence: `core/tracker_agent.py`)
- Application tracker → Groq LLM: answers queries (evidence: `core/tracker_agent.py`)
