# fedorchenko-juli/job_search_tool architecture

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

- Interactive diagram: https://gitdiagram.com/fedorchenko-juli/job_search_tool
- Repository: https://github.com/fedorchenko-juli/job_search_tool

## Overview

This is a local job-search automation product: it gathers postings from company ATS boards and aggregators, applies deterministic filters and deduplication, optionally scores fit with Claude, then presents jobs for review in a local web board. The principal workflow is orchestrated by `app/main.py`; discovery, re-filtering, and stored-job inspection are supporting capabilities. The README documents the shared SQLite review workflow. Some web internals and unsampled modules are represented at subsystem level because their implementation details were not excerpted.

Main entry points: [`app/main.py`](https://github.com/fedorchenko-juli/job_search_tool/blob/main/app/main.py) (Fetch orchestrator), [`app/ai_evaluate.py`](https://github.com/fedorchenko-juli/job_search_tool/blob/main/app/ai_evaluate.py) (AI evaluation), [`app/dedup.py`](https://github.com/fedorchenko-juli/job_search_tool/blob/main/app/dedup.py) (Deduplication and persistence), [`web/app/page.tsx`](https://github.com/fedorchenko-juli/job_search_tool/blob/main/web/app/page.tsx) (Review board UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_collection["Collection and discovery"]
  node_pipeline["Fetch orchestrator<br/>[main.py]"]
  node_ats["Company ATS clients<br/>[ats_clients.py]"]
  node_aggregators["Aggregator clients"]
  node_company_discovery["Company discovery"]
end

subgraph group_pipeline["Screening and scoring"]
  node_filtering["Job filters<br/>[filters.py]"]
  node_evaluation["AI evaluation<br/>[ai_evaluate.py]"]
  node_refilter["Re-filter stored jobs<br/>[refilter.py]"]
  node_inspection["Job inspection<br/>[inspect_job.py]"]
end

subgraph group_storage["Local job state"]
  node_dedup["Deduplication and persistence<br/>[dedup.py]"]
  node_sqlite[("SQLite job store")]
  node_candidate_csv["Candidate CSV"]
  node_scored_csv["Scored candidates CSV"]
end

subgraph group_review["Review board"]
  node_board["Review board UI<br/>[page.tsx]"]
  node_jobs_api["Jobs API<br/>[route.ts]"]
  node_status_api["Status API<br/>[route.ts]"]
  node_board_components["Review components"]
  node_web_db["Web database access<br/>[db.ts]"]
end

node_searcher(("Job seeker"))
node_anthropic{{"Anthropic Claude"}}
node_ats_services{{"Configured ATS services"}}
node_aggregator_services{{"Configured job aggregators"}}

node_searcher -->|"starts fetch"| node_pipeline
node_pipeline -->|"fetches boards"| node_ats
node_pipeline -->|"fetches listings"| node_aggregators
node_ats -->|"queries boards"| node_ats_services
node_aggregators -->|"queries listings"| node_aggregator_services
node_pipeline -->|"filters jobs"| node_filtering
node_pipeline -->|"checks and saves"| node_dedup
node_pipeline -->|"writes candidates"| node_candidate_csv
node_pipeline -->|"registers discoveries"| node_company_discovery
node_aggregators -->|"checks descriptions"| node_filtering
node_evaluation -->|"loads and saves scores"| node_dedup
node_evaluation -->|"cleans descriptions"| node_filtering
node_evaluation -->|"requests fit scores"| node_anthropic
node_evaluation -->|"writes rankings"| node_scored_csv
node_searcher -->|"runs evaluation"| node_evaluation
node_refilter -->|"reads and updates"| node_dedup
node_refilter -->|"rechecks jobs"| node_filtering
node_inspection -->|"looks up jobs"| node_dedup
node_dedup -->|"reads and writes"| node_sqlite
node_searcher -->|"reviews jobs"| node_board
node_board -.->|"browses postings"| node_jobs_api
node_board -.->|"updates status"| node_status_api
node_board -.->|"renders interface"| node_board_components
node_jobs_api -.->|"accesses job data"| node_web_db
node_status_api -.->|"persists review status"| node_web_db
node_web_db -->|"shares local store"| node_sqlite

click node_pipeline "https://github.com/fedorchenko-juli/job_search_tool/blob/main/app/main.py"
click node_ats "https://github.com/fedorchenko-juli/job_search_tool/blob/main/app/ats_clients.py"
click node_aggregators "https://github.com/fedorchenko-juli/job_search_tool/blob/main/app/aggregator_clients.py"
click node_company_discovery "https://github.com/fedorchenko-juli/job_search_tool/blob/main/app/discover_companies.py"
click node_filtering "https://github.com/fedorchenko-juli/job_search_tool/blob/main/app/filters.py"
click node_evaluation "https://github.com/fedorchenko-juli/job_search_tool/blob/main/app/ai_evaluate.py"
click node_refilter "https://github.com/fedorchenko-juli/job_search_tool/blob/main/app/refilter.py"
click node_inspection "https://github.com/fedorchenko-juli/job_search_tool/blob/main/app/inspect_job.py"
click node_dedup "https://github.com/fedorchenko-juli/job_search_tool/blob/main/app/dedup.py"
click node_board "https://github.com/fedorchenko-juli/job_search_tool/blob/main/web/app/page.tsx"
click node_jobs_api "https://github.com/fedorchenko-juli/job_search_tool/blob/main/web/app/api/jobs/route.ts"
click node_status_api "https://github.com/fedorchenko-juli/job_search_tool/blob/main/web/app/api/status/route.ts"
click node_board_components "https://github.com/fedorchenko-juli/job_search_tool/tree/main/web/app/components"
click node_web_db "https://github.com/fedorchenko-juli/job_search_tool/blob/main/web/lib/db.ts"

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_pipeline,node_ats,node_aggregators,node_company_discovery toneBlue
class node_filtering,node_evaluation,node_refilter,node_inspection toneAmber
class node_dedup,node_sqlite,node_candidate_csv,node_scored_csv toneMint
class node_board,node_jobs_api,node_status_api,node_board_components,node_web_db toneRose
class node_searcher,node_anthropic,node_ats_services,node_aggregator_services toneIndigo
```

## Components

### Collection and discovery

- [Fetch orchestrator](https://github.com/fedorchenko-juli/job_search_tool/blob/main/app/main.py): `app/main.py`
- [Company ATS clients](https://github.com/fedorchenko-juli/job_search_tool/blob/main/app/ats_clients.py): `app/ats_clients.py`
- [Aggregator clients](https://github.com/fedorchenko-juli/job_search_tool/blob/main/app/aggregator_clients.py): `app/aggregator_clients.py`
- [Company discovery](https://github.com/fedorchenko-juli/job_search_tool/blob/main/app/discover_companies.py): `app/discover_companies.py`

### Screening and scoring

- [Job filters](https://github.com/fedorchenko-juli/job_search_tool/blob/main/app/filters.py): `app/filters.py`
- [AI evaluation](https://github.com/fedorchenko-juli/job_search_tool/blob/main/app/ai_evaluate.py): `app/ai_evaluate.py`
- [Re-filter stored jobs](https://github.com/fedorchenko-juli/job_search_tool/blob/main/app/refilter.py): `app/refilter.py`
- [Job inspection](https://github.com/fedorchenko-juli/job_search_tool/blob/main/app/inspect_job.py): `app/inspect_job.py`

### Local job state

- [Deduplication and persistence](https://github.com/fedorchenko-juli/job_search_tool/blob/main/app/dedup.py): `app/dedup.py`
- **SQLite job store**
- **Candidate CSV**
- **Scored candidates CSV**

### Review board

- [Review board UI](https://github.com/fedorchenko-juli/job_search_tool/blob/main/web/app/page.tsx): `web/app/page.tsx`
- [Jobs API](https://github.com/fedorchenko-juli/job_search_tool/blob/main/web/app/api/jobs/route.ts): `web/app/api/jobs/route.ts`
- [Status API](https://github.com/fedorchenko-juli/job_search_tool/blob/main/web/app/api/status/route.ts): `web/app/api/status/route.ts`
- [Review components](https://github.com/fedorchenko-juli/job_search_tool/tree/main/web/app/components): `web/app/components`
- [Web database access](https://github.com/fedorchenko-juli/job_search_tool/blob/main/web/lib/db.ts): `web/lib/db.ts`

### Other components

- **Job seeker**
- **Anthropic Claude**
- **Configured ATS services**
- **Configured job aggregators**

## Connections

- Job seeker → Fetch orchestrator: starts fetch (evidence: `README.md`)
- Fetch orchestrator → Company ATS clients: fetches boards (evidence: `app/main.py`)
- Fetch orchestrator → Aggregator clients: fetches listings (evidence: `app/main.py`)
- Company ATS clients → Configured ATS services: queries boards (evidence: `app/ats_clients.py`)
- Aggregator clients → Configured job aggregators: queries listings (evidence: `app/aggregator_clients.py`)
- Fetch orchestrator → Job filters: filters jobs (evidence: `app/main.py`)
- Fetch orchestrator → Deduplication and persistence: checks and saves (evidence: `app/main.py`)
- Fetch orchestrator → Candidate CSV: writes candidates (evidence: `README.md`)
- Fetch orchestrator → Company discovery: registers discoveries (evidence: `app/main.py`)
- Aggregator clients → Job filters: checks descriptions (evidence: `app/aggregator_clients.py`)
- AI evaluation → Deduplication and persistence: loads and saves scores (evidence: `app/ai_evaluate.py`)
- AI evaluation → Job filters: cleans descriptions (evidence: `app/ai_evaluate.py`)
- AI evaluation → Anthropic Claude: requests fit scores (evidence: `README.md`)
- AI evaluation → Scored candidates CSV: writes rankings (evidence: `README.md`)
- Job seeker → AI evaluation: runs evaluation (evidence: `README.md`)
- Re-filter stored jobs → Deduplication and persistence: reads and updates (evidence: `app/refilter.py`)
- Re-filter stored jobs → Job filters: rechecks jobs (evidence: `app/refilter.py`)
- Job inspection → Deduplication and persistence: looks up jobs (evidence: `app/inspect_job.py`)
- Deduplication and persistence → SQLite job store: reads and writes (evidence: `app/dedup.py`)
- Job seeker → Review board UI: reviews jobs (evidence: `README.md`)
- Review board UI → Jobs API: browses postings
- Review board UI → Status API: updates status
- Review board UI → Review components: renders interface
- Jobs API → Web database access: accesses job data
- Status API → Web database access: persists review status
- Web database access → SQLite job store: shares local store (evidence: `README.md`)
