# vjtmkhrj33-web/job-hunter-agent architecture

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

- Interactive diagram: https://gitdiagram.com/vjtmkhrj33-web/job-hunter-agent
- Repository: https://github.com/vjtmkhrj33-web/job-hunter-agent

## Overview

This is a personal job-search and application workspace combining Antigravity workflows and skills with Python helpers and a local server. The main journey is to discover postings, fetch and normalize them, screen and score fit, prepare tailored application materials, then track and review applications; interview preparation and salary research are supporting branches. The excerpts show scoring, portal handling, posting safeguards, and state utilities. The README documents the human-reviewed workflow, but server routes and most workflow/skill internals were not sampled, so those connections are shown only where documented or left unasserted.

Main entry points: [`core/portals.py`](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/core/portals.py) (Job portals), [`core/engine.py`](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/core/engine.py) (Job analysis engine), [`.agents/workflows/apply.md`](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/.agents/workflows/apply.md) (Apply workflow), [`tools/fetch_page.py`](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/tools/fetch_page.py) (Page retrieval)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Job workflows"]
  node_server["Workspace server<br/>[server.py]"]
  node_daily["Daily scan<br/>[daily-scan.md]"]
  node_apply["Apply workflow<br/>[apply.md]"]
  node_prep["Interview prep<br/>[prep.md]"]
  node_weekly["Weekly review<br/>[weekly-review.md]"]
  node_tracker[("Application tracker<br/>[tracker.csv]")]
end

subgraph group_discovery["Job discovery"]
  node_portal["Job portals<br/>[portals.py]"]
  node_fetch["Page retrieval<br/>[fetch_page.py]"]
  node_robots["Robots policy<br/>[robots_check.py]"]
  node_decode["Page decoding<br/>[page_decode.py]"]
  node_scrape_state["Scrape deduplication<br/>[scrape_state.py]"]
  node_job_key["Job identity<br/>[job_key.py]"]
end

subgraph group_assessment["Fit and research"]
  node_engine["Job analysis engine<br/>[engine.py]"]
  node_guard["Posting integrity<br/>[posting_guard.py]"]
  node_salary["Salary benchmarks<br/>[salary.py]"]
  node_rank[("Ranking state<br/>[rank_state.py]")]
  node_integrations["External integrations<br/>[integrations.py]"]
end

subgraph group_application["Application materials"]
  node_profile["Candidate profile<br/>[master_cv.md]"]
  node_variants["CV variants<br/>[build_variants.py]"]
  node_application_skills["Application assistance<br/>[SKILL.md]"]
  node_resume["Resume tailoring<br/>[SKILL.md]"]
end

node_user(("Job seeker"))

node_user -->|"starts scan"| node_daily
node_user -->|"starts application"| node_apply
node_user -->|"prepares interview"| node_prep
node_user -->|"reviews progress"| node_weekly
node_daily -.->|"uses workspace"| node_server
node_apply -.->|"uses workspace"| node_server
node_portal -->|"retrieves pages"| node_fetch
node_fetch -->|"checks access"| node_robots
node_fetch -->|"decodes content"| node_decode
node_portal -->|"cleans postings"| node_guard
node_portal -->|"uses identity"| node_job_key
node_portal -->|"consults history"| node_scrape_state
node_portal -->|"updates ranking"| node_rank
node_engine -->|"uses portal data"| node_portal
node_engine -->|"estimates compensation"| node_salary
node_engine -->|"checks posting"| node_guard
node_engine -->|"reads ranking state"| node_rank
node_variants -->|"generates documents"| node_engine
node_profile -.->|"provides source CV"| node_variants
node_apply -.->|"uses guidance"| node_application_skills
node_apply -.->|"tailors resume"| node_resume
node_weekly -.->|"reviews applications"| node_tracker
node_prep -.->|"uses preparation guidance"| node_application_skills

click node_server "https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/server.py"
click node_daily "https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/.agents/workflows/daily-scan.md"
click node_apply "https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/.agents/workflows/apply.md"
click node_prep "https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/.agents/workflows/prep.md"
click node_weekly "https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/.agents/workflows/weekly-review.md"
click node_portal "https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/core/portals.py"
click node_fetch "https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/tools/fetch_page.py"
click node_robots "https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/tools/robots_check.py"
click node_decode "https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/tools/page_decode.py"
click node_scrape_state "https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/tools/scrape_state.py"
click node_job_key "https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/tools/job_key.py"
click node_engine "https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/core/engine.py"
click node_guard "https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/tools/posting_guard.py"
click node_salary "https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/core/salary.py"
click node_rank "https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/tools/rank_state.py"
click node_integrations "https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/core/integrations.py"
click node_profile "https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/profile/master_cv.md"
click node_variants "https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/profile/build_variants.py"
click node_application_skills "https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/.agents/skills/job-application-assistant/SKILL.md"
click node_resume "https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/.agents/skills/resume-tailor/SKILL.md"
click node_tracker "https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/tracker.csv"

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_server,node_daily,node_apply,node_prep,node_weekly,node_tracker toneBlue
class node_portal,node_fetch,node_robots,node_decode,node_scrape_state,node_job_key toneAmber
class node_engine,node_guard,node_salary,node_rank,node_integrations toneMint
class node_profile,node_variants,node_application_skills,node_resume toneRose
class node_user toneIndigo
```

## Components

### Job workflows

- [Workspace server](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/server.py): `server.py`
- [Daily scan](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/.agents/workflows/daily-scan.md): `.agents/workflows/daily-scan.md`
- [Apply workflow](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/.agents/workflows/apply.md): `.agents/workflows/apply.md`
- [Interview prep](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/.agents/workflows/prep.md): `.agents/workflows/prep.md`
- [Weekly review](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/.agents/workflows/weekly-review.md): `.agents/workflows/weekly-review.md`
- [Application tracker](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/tracker.csv): `tracker.csv`

### Job discovery

- [Job portals](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/core/portals.py): `core/portals.py`
- [Page retrieval](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/tools/fetch_page.py): `tools/fetch_page.py`
- [Robots policy](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/tools/robots_check.py): `tools/robots_check.py`
- [Page decoding](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/tools/page_decode.py): `tools/page_decode.py`
- [Scrape deduplication](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/tools/scrape_state.py): `tools/scrape_state.py`
- [Job identity](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/tools/job_key.py): `tools/job_key.py`

### Fit and research

- [Job analysis engine](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/core/engine.py): `core/engine.py`
- [Posting integrity](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/tools/posting_guard.py): `tools/posting_guard.py`
- [Salary benchmarks](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/core/salary.py): `core/salary.py`
- [Ranking state](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/tools/rank_state.py): `tools/rank_state.py`
- [External integrations](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/core/integrations.py): `core/integrations.py`

### Application materials

- [Candidate profile](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/profile/master_cv.md): `profile/master_cv.md`
- [CV variants](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/profile/build_variants.py): `profile/build_variants.py`
- [Application assistance](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/.agents/skills/job-application-assistant/SKILL.md): `.agents/skills/job-application-assistant/SKILL.md`
- [Resume tailoring](https://github.com/vjtmkhrj33-web/job-hunter-agent/blob/main/.agents/skills/resume-tailor/SKILL.md): `.agents/skills/resume-tailor/SKILL.md`

### Other components

- **Job seeker**

## Connections

- Job seeker → Daily scan: starts scan (evidence: `README.md`)
- Job seeker → Apply workflow: starts application (evidence: `README.md`)
- Job seeker → Interview prep: prepares interview (evidence: `README.md`)
- Job seeker → Weekly review: reviews progress (evidence: `README.md`)
- Daily scan → Workspace server: uses workspace
- Apply workflow → Workspace server: uses workspace
- Job portals → Page retrieval: retrieves pages (evidence: `core/portals.py`)
- Page retrieval → Robots policy: checks access (evidence: `tools/fetch_page.py`)
- Page retrieval → Page decoding: decodes content (evidence: `tools/fetch_page.py`)
- Job portals → Posting integrity: cleans postings (evidence: `core/portals.py`)
- Job portals → Job identity: uses identity (evidence: `core/portals.py`)
- Job portals → Scrape deduplication: consults history (evidence: `core/portals.py`)
- Job portals → Ranking state: updates ranking (evidence: `core/portals.py`)
- Job analysis engine → Job portals: uses portal data (evidence: `core/engine.py`)
- Job analysis engine → Salary benchmarks: estimates compensation (evidence: `core/engine.py`)
- Job analysis engine → Posting integrity: checks posting (evidence: `core/engine.py`)
- Job analysis engine → Ranking state: reads ranking state (evidence: `core/engine.py`)
- CV variants → Job analysis engine: generates documents (evidence: `profile/build_variants.py`)
- Candidate profile → CV variants: provides source CV
- Apply workflow → Application assistance: uses guidance
- Apply workflow → Resume tailoring: tailors resume
- Weekly review → Application tracker: reviews applications
- Interview prep → Application assistance: uses preparation guidance
