# renatoreiscvm-max/job-hunter-agent architecture

> Architecture diagram of the GitHub repository renatoreiscvm-max/job-hunter-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/renatoreiscvm-max/job-hunter-agent
- Repository: https://github.com/renatoreiscvm-max/job-hunter-agent

## Overview

Job Hunter Agent searches multiple job portals, verifies posting age, deduplicates and persists listings, then scores matches and presents them in a Streamlit dashboard or scheduled reports. Users configure region, roles, time window, and candidate profile; results include full descriptions and direct-apply links. Optional CV matching, Gemini scoring, and Telegram alerts extend the core flow. The implementation is concentrated in one large Python file; internal links follow the README’s documented architecture, and unsampled implementation details are not inferred.

Main entry points: [`job_hunter_agent.py`](https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/job_hunter_agent.py) (Match Scoring), [`jobs_history.db`](https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/jobs_history.db) (Job History), [`profile.json`](https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/profile.json) (Candidate Profile), [`.github/workflows/daily_job_hunter.yml`](https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/.github/workflows/daily_job_hunter.yml) (Scheduled Sweeps)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_search["Search &amp; Verification"]
  node_search_config["Search Controls"]
  node_portals{{"Job Portals"}}
  node_scraper["Portal Scraper"]
  node_age_filter["Posting Age Check"]
end

subgraph group_matching["Profile Matching"]
  node_profile["Candidate Profile<br/>[profile.json]"]
  node_cv_match["CV Matcher"]
  node_scoring["Match Scoring"]
  node_gemini{{"Gemini API"}}
end

subgraph group_experience["User Experience"]
  node_app["Agent &amp; UI"]
  node_dashboard["Results Dashboard"]
  node_job_reader["Description &amp; Apply"]
end

subgraph group_delivery["Persistence &amp; Delivery"]
  node_database[("Job History<br/>[jobs_history.db]")]
  node_report["CSV &amp; Markdown Reports"]
  node_csv["Jobs CSV"]
  node_telegram["Telegram Alerts"]
  node_scheduler["Scheduled Sweeps"]
end

node_user(("Job Seeker"))
node_telegram_service{{"Telegram"}}

node_user -->|"uses"| node_app
node_app -->|"configures"| node_search_config
node_search_config -->|"starts search"| node_scraper
node_scraper -->|"queries"| node_portals
node_scraper -->|"checks postings"| node_age_filter
node_age_filter -->|"deduplicates &amp; stores"| node_database
node_database -->|"provides listings"| node_scoring
node_profile -->|"guides match"| node_scoring
node_user -->|"provides CV"| node_cv_match
node_cv_match -->|"aligns resume"| node_scoring
node_scoring -.->|"deep-scores"| node_gemini
node_scoring -->|"shows matches"| node_dashboard
node_dashboard -->|"opens description"| node_job_reader
node_job_reader -->|"offers apply link"| node_user
node_scoring -->|"generates"| node_report
node_scoring -->|"exports"| node_csv
node_scoring -->|"alerts on matches"| node_telegram
node_telegram -.->|"sends alerts"| node_telegram_service
node_scheduler -->|"runs sweeps"| node_app

click node_app "https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/job_hunter_agent.py"
click node_search_config "https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/job_hunter_agent.py"
click node_scraper "https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/job_hunter_agent.py"
click node_age_filter "https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/job_hunter_agent.py"
click node_profile "https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/profile.json"
click node_cv_match "https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/job_hunter_agent.py"
click node_scoring "https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/job_hunter_agent.py"
click node_database "https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/jobs_history.db"
click node_dashboard "https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/job_hunter_agent.py"
click node_job_reader "https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/job_hunter_agent.py"
click node_report "https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/latest_jobs_report.md"
click node_csv "https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/latest_jobs_24h.csv"
click node_telegram "https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/job_hunter_agent.py"
click node_scheduler "https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/.github/workflows/daily_job_hunter.yml"

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_search_config,node_portals,node_scraper,node_age_filter toneBlue
class node_profile,node_cv_match,node_scoring,node_gemini toneAmber
class node_app,node_dashboard,node_job_reader toneMint
class node_database,node_report,node_csv,node_telegram,node_scheduler toneRose
class node_user,node_telegram_service toneIndigo
```

## Components

### Search & Verification

- [Search Controls](https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/job_hunter_agent.py): `job_hunter_agent.py`
- **Job Portals**
- [Portal Scraper](https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/job_hunter_agent.py): `job_hunter_agent.py`
- [Posting Age Check](https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/job_hunter_agent.py): `job_hunter_agent.py`

### Profile Matching

- [Candidate Profile](https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/profile.json): `profile.json`
- [CV Matcher](https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/job_hunter_agent.py): `job_hunter_agent.py`
- [Match Scoring](https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/job_hunter_agent.py): `job_hunter_agent.py`
- **Gemini API**

### User Experience

- [Agent & UI](https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/job_hunter_agent.py): `job_hunter_agent.py`
- [Results Dashboard](https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/job_hunter_agent.py): `job_hunter_agent.py`
- [Description & Apply](https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/job_hunter_agent.py): `job_hunter_agent.py`

### Persistence & Delivery

- [Job History](https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/jobs_history.db): `jobs_history.db`
- [CSV & Markdown Reports](https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/latest_jobs_report.md): `latest_jobs_report.md`
- [Jobs CSV](https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/latest_jobs_24h.csv): `latest_jobs_24h.csv`
- [Telegram Alerts](https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/job_hunter_agent.py): `job_hunter_agent.py`
- [Scheduled Sweeps](https://github.com/renatoreiscvm-max/job-hunter-agent/blob/main/.github/workflows/daily_job_hunter.yml): `.github/workflows/daily_job_hunter.yml`

### Other components

- **Job Seeker**
- **Telegram**

## Connections

- Job Seeker → Agent & UI: uses (evidence: `README.md`)
- Agent & UI → Search Controls: configures (evidence: `README.md`)
- Search Controls → Portal Scraper: starts search (evidence: `README.md`)
- Portal Scraper → Job Portals: queries (evidence: `README.md`)
- Portal Scraper → Posting Age Check: checks postings (evidence: `README.md`)
- Posting Age Check → Job History: deduplicates & stores (evidence: `README.md`)
- Job History → Match Scoring: provides listings (evidence: `README.md`)
- Candidate Profile → Match Scoring: guides match (evidence: `README.md`)
- Job Seeker → CV Matcher: provides CV (evidence: `README.md`)
- CV Matcher → Match Scoring: aligns resume (evidence: `README.md`)
- Match Scoring → Gemini API: deep-scores (evidence: `README.md`)
- Match Scoring → Results Dashboard: shows matches (evidence: `README.md`)
- Results Dashboard → Description & Apply: opens description (evidence: `README.md`)
- Description & Apply → Job Seeker: offers apply link (evidence: `README.md`)
- Match Scoring → CSV & Markdown Reports: generates (evidence: `README.md`)
- Match Scoring → Jobs CSV: exports (evidence: `README.md`)
- Match Scoring → Telegram Alerts: alerts on matches (evidence: `README.md`)
- Telegram Alerts → Telegram: sends alerts (evidence: `README.md`)
- Scheduled Sweeps → Agent & UI: runs sweeps (evidence: `README.md`)
