# cybercryptonic/jobbot architecture

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

- Interactive diagram: https://gitdiagram.com/cybercryptonic/jobbot
- Repository: https://github.com/cybercryptonic/jobbot

## Overview

jobbot is a self-hosted job-application pipeline. Its main workflow discovers postings, scores and prepares them, submits supported ATS applications or routes others for manual action, then triages replies and reports activity. SQLite provides shared tracking; the dashboard and chat expose the operation. The README documents the major scheduled stages and dashboard capabilities. Some internal wiring is not excerpted, so edges rely on those documented relationships or the shown source references.

Main entry points: [`pipeline/inbox.py`](https://github.com/cybercryptonic/jobbot/blob/main/pipeline/inbox.py) (Inbox triage), [`pipeline/db.py`](https://github.com/cybercryptonic/jobbot/blob/main/pipeline/db.py) (SQLite tracker), [`pipeline/materials.py`](https://github.com/cybercryptonic/jobbot/blob/main/pipeline/materials.py) (Application materials), [`pipeline/discovery.py`](https://github.com/cybercryptonic/jobbot/blob/main/pipeline/discovery.py) (Discovery)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Discovery and preparation"]
  node_sources["Posting sources"]
  node_source_common["Source utilities<br/>[common.py]"]
  node_company_fetch["Company fetcher<br/>[fetch_companies.py]"]
  node_alert_fetch["Alert fetcher<br/>[fetch_inbox.py]"]
  node_discovery_stage["Discovery<br/>[discovery.py]"]
  node_scoring["Job scoring<br/>[scoring.py]"]
  node_materials["Application materials<br/>[materials.py]"]
  node_letters["Cover letters<br/>[letters.py]"]
end

subgraph group_applications["Application handling"]
  node_answer_bank["Answer bank<br/>[answers.py]"]
  node_submission["Submission coordinator<br/>[submission.py]"]
  node_autosubmit["ATS browser head<br/>[autosubmit.py]"]
end

subgraph group_followup["Follow-up and reporting"]
  node_inbox_stage["Inbox triage<br/>[inbox.py]"]
  node_inbox_fetch["Inbox source<br/>[fetch_inbox.py]"]
  node_report["Nightly report<br/>[report.py]"]
  node_mailer["Email sender<br/>[mailer.py]"]
  node_notifier["Phone notifications<br/>[notify.py]"]
end

subgraph group_interface["Operator interface and state"]
  node_chatd["Chat daemon<br/>[chatd.py]"]
  node_chat_tools["Chat tools<br/>[chat_tools.py]"]
  node_web["Dashboard API<br/>[web.py]"]
  node_dashboard["Dashboard pages"]
  node_three_d["3D scenes<br/>[scenes3d.js]"]
  node_db[("SQLite tracker<br/>[db.py]")]
end

node_operator(("Operator"))
node_boards{{"Job boards"}}
node_mailbox{{"Email mailbox"}}
node_ats{{"ATS websites"}}
node_anthropic{{"Anthropic API"}}
node_smtp{{"SMTP service"}}
node_ntfy{{"ntfy service"}}

node_discovery_stage -->|"fetches from"| node_company_fetch
node_discovery_stage -->|"fetches from"| node_alert_fetch
node_company_fetch -->|"uses"| node_source_common
node_alert_fetch -->|"uses"| node_source_common
node_discovery_stage -->|"then scores"| node_scoring
node_scoring -->|"prepares next"| node_materials
node_materials -->|"generates letters"| node_letters
node_materials -->|"reads answers"| node_answer_bank
node_discovery_stage -->|"records postings"| node_db
node_scoring -->|"records scores"| node_db
node_submission -->|"dispatches to"| node_autosubmit
node_submission -->|"uses packet materials"| node_materials
node_submission -->|"uses answers"| node_answer_bank
node_submission -->|"records applications"| node_db
node_autosubmit -->|"fills forms"| node_ats
node_inbox_stage -->|"reads alerts"| node_inbox_fetch
node_inbox_stage -->|"updates tracker"| node_db
node_inbox_stage -->|"sends follow-ups"| node_mailer
node_inbox_stage -->|"pushes alerts"| node_notifier
node_report -->|"reads activity"| node_db
node_report -->|"emails report"| node_mailer
node_report -->|"sends summary"| node_notifier
node_chatd -->|"dispatches tools"| node_chat_tools
node_chat_tools -->|"reads tracker"| node_db
node_web -->|"serves tracker data"| node_db
node_dashboard -->|"uses API"| node_web
node_dashboard -->|"renders scenes"| node_three_d
node_operator -->|"views operation"| node_dashboard
node_operator -->|"asks questions"| node_chatd
node_company_fetch -->|"fetches postings"| node_boards
node_alert_fetch -->|"reads alerts"| node_mailbox
node_inbox_stage -->|"reads replies"| node_mailbox
node_scoring -->|"scores with"| node_anthropic
node_letters -->|"drafts with"| node_anthropic
node_materials -->|"researches with"| node_anthropic
node_inbox_stage -->|"classifies with"| node_anthropic
node_mailer -->|"sends mail"| node_smtp
node_notifier -->|"pushes message"| node_ntfy

click node_sources "https://github.com/cybercryptonic/jobbot/tree/main/pipeline/sources"
click node_source_common "https://github.com/cybercryptonic/jobbot/blob/main/pipeline/sources/common.py"
click node_company_fetch "https://github.com/cybercryptonic/jobbot/blob/main/pipeline/sources/fetch_companies.py"
click node_alert_fetch "https://github.com/cybercryptonic/jobbot/blob/main/pipeline/sources/fetch_inbox.py"
click node_discovery_stage "https://github.com/cybercryptonic/jobbot/blob/main/pipeline/discovery.py"
click node_scoring "https://github.com/cybercryptonic/jobbot/blob/main/pipeline/scoring.py"
click node_materials "https://github.com/cybercryptonic/jobbot/blob/main/pipeline/materials.py"
click node_letters "https://github.com/cybercryptonic/jobbot/blob/main/pipeline/letters.py"
click node_answer_bank "https://github.com/cybercryptonic/jobbot/blob/main/pipeline/answers.py"
click node_submission "https://github.com/cybercryptonic/jobbot/blob/main/pipeline/submission.py"
click node_autosubmit "https://github.com/cybercryptonic/jobbot/blob/main/pipeline/autosubmit.py"
click node_inbox_stage "https://github.com/cybercryptonic/jobbot/blob/main/pipeline/inbox.py"
click node_inbox_fetch "https://github.com/cybercryptonic/jobbot/blob/main/pipeline/sources/fetch_inbox.py"
click node_report "https://github.com/cybercryptonic/jobbot/blob/main/pipeline/report.py"
click node_mailer "https://github.com/cybercryptonic/jobbot/blob/main/pipeline/mailer.py"
click node_notifier "https://github.com/cybercryptonic/jobbot/blob/main/pipeline/notify.py"
click node_chatd "https://github.com/cybercryptonic/jobbot/blob/main/pipeline/chatd.py"
click node_chat_tools "https://github.com/cybercryptonic/jobbot/blob/main/pipeline/chat_tools.py"
click node_web "https://github.com/cybercryptonic/jobbot/blob/main/pipeline/web.py"
click node_dashboard "https://github.com/cybercryptonic/jobbot/tree/main/dashboard"
click node_three_d "https://github.com/cybercryptonic/jobbot/blob/main/dashboard/assets/scenes3d.js"
click node_db "https://github.com/cybercryptonic/jobbot/blob/main/pipeline/db.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_sources,node_source_common,node_company_fetch,node_alert_fetch,node_discovery_stage,node_scoring,node_materials,node_letters toneBlue
class node_answer_bank,node_submission,node_autosubmit toneAmber
class node_inbox_stage,node_inbox_fetch,node_report,node_mailer,node_notifier,node_anthropic toneMint
class node_chatd,node_chat_tools,node_web,node_dashboard,node_three_d,node_db toneRose
class node_operator,node_boards,node_mailbox,node_ats,node_smtp,node_ntfy toneIndigo
```

## Components

### Discovery and preparation

- [Posting sources](https://github.com/cybercryptonic/jobbot/tree/main/pipeline/sources): `pipeline/sources`
- [Source utilities](https://github.com/cybercryptonic/jobbot/blob/main/pipeline/sources/common.py): `pipeline/sources/common.py`
- [Company fetcher](https://github.com/cybercryptonic/jobbot/blob/main/pipeline/sources/fetch_companies.py): `pipeline/sources/fetch_companies.py`
- [Alert fetcher](https://github.com/cybercryptonic/jobbot/blob/main/pipeline/sources/fetch_inbox.py): `pipeline/sources/fetch_inbox.py`
- [Discovery](https://github.com/cybercryptonic/jobbot/blob/main/pipeline/discovery.py): `pipeline/discovery.py`
- [Job scoring](https://github.com/cybercryptonic/jobbot/blob/main/pipeline/scoring.py): `pipeline/scoring.py`
- [Application materials](https://github.com/cybercryptonic/jobbot/blob/main/pipeline/materials.py): `pipeline/materials.py`
- [Cover letters](https://github.com/cybercryptonic/jobbot/blob/main/pipeline/letters.py): `pipeline/letters.py`

### Application handling

- [Answer bank](https://github.com/cybercryptonic/jobbot/blob/main/pipeline/answers.py): `pipeline/answers.py`
- [Submission coordinator](https://github.com/cybercryptonic/jobbot/blob/main/pipeline/submission.py): `pipeline/submission.py`
- [ATS browser head](https://github.com/cybercryptonic/jobbot/blob/main/pipeline/autosubmit.py): `pipeline/autosubmit.py`

### Follow-up and reporting

- [Inbox triage](https://github.com/cybercryptonic/jobbot/blob/main/pipeline/inbox.py): `pipeline/inbox.py`
- [Inbox source](https://github.com/cybercryptonic/jobbot/blob/main/pipeline/sources/fetch_inbox.py): `pipeline/sources/fetch_inbox.py`
- [Nightly report](https://github.com/cybercryptonic/jobbot/blob/main/pipeline/report.py): `pipeline/report.py`
- [Email sender](https://github.com/cybercryptonic/jobbot/blob/main/pipeline/mailer.py): `pipeline/mailer.py`
- [Phone notifications](https://github.com/cybercryptonic/jobbot/blob/main/pipeline/notify.py): `pipeline/notify.py`

### Operator interface and state

- [Chat daemon](https://github.com/cybercryptonic/jobbot/blob/main/pipeline/chatd.py): `pipeline/chatd.py`
- [Chat tools](https://github.com/cybercryptonic/jobbot/blob/main/pipeline/chat_tools.py): `pipeline/chat_tools.py`
- [Dashboard API](https://github.com/cybercryptonic/jobbot/blob/main/pipeline/web.py): `pipeline/web.py`
- [Dashboard pages](https://github.com/cybercryptonic/jobbot/tree/main/dashboard): `dashboard`
- [3D scenes](https://github.com/cybercryptonic/jobbot/blob/main/dashboard/assets/scenes3d.js): `dashboard/assets/scenes3d.js`
- [SQLite tracker](https://github.com/cybercryptonic/jobbot/blob/main/pipeline/db.py): `pipeline/db.py`

### Other components

- **Operator**
- **Job boards**
- **Email mailbox**
- **ATS websites**
- **Anthropic API**
- **SMTP service**
- **ntfy service**

## Connections

- Discovery → Company fetcher: fetches from (evidence: `pipeline/discovery.py`)
- Discovery → Alert fetcher: fetches from (evidence: `pipeline/discovery.py`)
- Company fetcher → Source utilities: uses (evidence: `pipeline/sources/fetch_companies.py`)
- Alert fetcher → Source utilities: uses (evidence: `pipeline/sources/fetch_inbox.py`)
- Discovery → Job scoring: then scores (evidence: `README.md`)
- Job scoring → Application materials: prepares next (evidence: `README.md`)
- Application materials → Cover letters: generates letters (evidence: `pipeline/materials.py`)
- Application materials → Answer bank: reads answers (evidence: `pipeline/materials.py`)
- Discovery → SQLite tracker: records postings (evidence: `pipeline/discovery.py`)
- Job scoring → SQLite tracker: records scores (evidence: `pipeline/scoring.py`)
- Submission coordinator → ATS browser head: dispatches to (evidence: `pipeline/submission.py`)
- Submission coordinator → Application materials: uses packet materials (evidence: `pipeline/submission.py`)
- Submission coordinator → Answer bank: uses answers (evidence: `pipeline/submission.py`)
- Submission coordinator → SQLite tracker: records applications (evidence: `pipeline/submission.py`)
- ATS browser head → ATS websites: fills forms (evidence: `README.md`)
- Inbox triage → Inbox source: reads alerts (evidence: `pipeline/inbox.py`)
- Inbox triage → SQLite tracker: updates tracker (evidence: `pipeline/inbox.py`)
- Inbox triage → Email sender: sends follow-ups (evidence: `pipeline/inbox.py`)
- Inbox triage → Phone notifications: pushes alerts (evidence: `pipeline/inbox.py`)
- Nightly report → SQLite tracker: reads activity (evidence: `pipeline/report.py`)
- Nightly report → Email sender: emails report (evidence: `pipeline/report.py`)
- Nightly report → Phone notifications: sends summary (evidence: `pipeline/report.py`)
- Chat daemon → Chat tools: dispatches tools (evidence: `pipeline/chatd.py`)
- Chat tools → SQLite tracker: reads tracker (evidence: `pipeline/chat_tools.py`)
- Dashboard API → SQLite tracker: serves tracker data (evidence: `pipeline/web.py`)
- Dashboard pages → Dashboard API: uses API (evidence: `README.md`)
- Dashboard pages → 3D scenes: renders scenes (evidence: `README.md`)
- Operator → Dashboard pages: views operation (evidence: `README.md`)
- Operator → Chat daemon: asks questions (evidence: `README.md`)
- Company fetcher → Job boards: fetches postings (evidence: `pipeline/sources/fetch_companies.py`)
- Alert fetcher → Email mailbox: reads alerts (evidence: `pipeline/sources/fetch_inbox.py`)
- Inbox triage → Email mailbox: reads replies (evidence: `pipeline/inbox.py`)
- Job scoring → Anthropic API: scores with (evidence: `README.md`)
- Cover letters → Anthropic API: drafts with (evidence: `pipeline/letters.py`)
- Application materials → Anthropic API: researches with (evidence: `pipeline/materials.py`)
- Inbox triage → Anthropic API: classifies with (evidence: `pipeline/inbox.py`)
- Email sender → SMTP service: sends mail (evidence: `pipeline/mailer.py`)
- Phone notifications → ntfy service: pushes message (evidence: `pipeline/notify.py`)
