# tech-believer/job_agent_open_src architecture

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

- Interactive diagram: https://gitdiagram.com/tech-believer/job_agent_open_src
- Repository: https://github.com/tech-believer/job_agent_open_src

## Overview

Job Scout is a human-in-the-loop job-matching and application-preparation agent, with an optional Jobvis voice console. The main workflow extracts a CV profile, searches and ranks openings against user-chosen locations, broadens weak searches, then tailors materials for a selected job and checks them for fabrication. The wizard and voice console share a checkpoint-backed session; the human, not the agent, submits applications. The README documents major capabilities not fully visible in the sampled excerpts; edges for those are included only where that documentation supports them.

Main entry points: [`src/job_scout/app.py`](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/app.py) (Job Scout wizard), [`src/job_scout/graph/graph.py`](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/graph/graph.py) (Checkpointed graph), [`src/job_scout/runner.py`](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/runner.py) (Run coordinator), [`src/job_scout/graph/nodes/tailor.py`](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/graph/nodes/tailor.py) (Application tailoring)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_wizard["Job Scout wizard<br/>[app.py]"]
end

subgraph group_workflow["Agent workflow"]
  node_runner["Run coordinator<br/>[runner.py]"]
  node_graph["Checkpointed graph<br/>[graph.py]"]
  node_fetch["Job search<br/>[fetch_jobs.py]"]
  node_rank["Fit ranking<br/>[rank_jobs.py]"]
  node_reformulate["Query broadening"]
  node_tailor["Application tailoring<br/>[tailor.py]"]
end

subgraph group_grounding["Profile and grounding"]
  node_session_store[("Candidate session store<br/>[candidate_store.py]")]
  node_cv_reader["PDF reader<br/>[cv_reader.py]"]
  node_profile["Profile extraction<br/>[profile.py]"]
  node_corpus["CV content corpus<br/>[corpus.py]"]
  node_validate["Fabrication check"]
  node_validator["Grounding validator<br/>[validation.py]"]
  node_renderer["PDF application pack<br/>[renderer.py]"]
end

subgraph group_integrations["Services and observability"]
  node_job_sources["Job source adapters<br/>[jobs_api.py]"]
  node_research["Company research<br/>[research.py]"]
  node_llm["Model provider<br/>[llm.py]"]
  node_tracing["Opik tracing<br/>[tracing.py]"]
  node_elevenlabs["ElevenLabs Agents"]
  node_job_sites["External job sites"]
end

subgraph group_voice["Voice console"]
  node_web_console["Voice web console<br/>[page.tsx]"]
  node_api["Console API<br/>[api.py]"]
  node_voice_bridge["Voice session bridge<br/>[bridge.py]"]
  node_voice_tools["Voice agent tools<br/>[tools.py]"]
end

node_candidate(("Candidate"))

node_candidate -->|"uploads CV"| node_wizard
node_wizard -->|"reads PDF"| node_cv_reader
node_wizard -->|"extracts profile"| node_profile
node_profile -->|"calls model"| node_llm
node_wizard -->|"persists candidate"| node_session_store
node_wizard -->|"starts runs"| node_runner
node_runner -->|"invokes graph"| node_graph
node_runner -->|"extracts profile"| node_profile
node_runner -->|"configures traces"| node_tracing
node_graph -->|"routes search"| node_fetch
node_graph -->|"routes selection"| node_tailor
node_fetch -->|"searches sources"| node_job_sources
node_job_sources -->|"fetches openings"| node_job_sites
node_graph -->|"runs after fetch"| node_rank
node_rank -->|"scores jobs"| node_llm
node_graph -->|"loops on weak results"| node_reformulate
node_reformulate -->|"broadens query"| node_llm
node_tailor -->|"grounds content"| node_corpus
node_tailor -->|"generates pack"| node_llm
node_tailor -->|"requests research"| node_research
node_graph -->|"runs validation"| node_validate
node_validate -->|"checks claims"| node_validator
node_wizard -->|"renders pack"| node_renderer
node_candidate -->|"asks by voice"| node_web_console
node_web_console -->|"requests session token"| node_api
node_api -->|"serves voice session"| node_voice_bridge
node_voice_tools -->|"starts graph runs"| node_voice_bridge
node_voice_bridge -->|"drives runs"| node_runner
node_elevenlabs -->|"connects by WebRTC"| node_web_console
node_voice_tools -.->|"exposes agent tools"| node_elevenlabs

click node_wizard "https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/app.py"
click node_web_console "https://github.com/tech-believer/job_agent_open_src/blob/main/web/app/page.tsx"
click node_api "https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/api.py"
click node_session_store "https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/candidate_store.py"
click node_cv_reader "https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/tools/cv_reader.py"
click node_profile "https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/profile.py"
click node_corpus "https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/corpus.py"
click node_runner "https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/runner.py"
click node_graph "https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/graph/graph.py"
click node_fetch "https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/graph/nodes/fetch_jobs.py"
click node_job_sources "https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/tools/jobs_api.py"
click node_rank "https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/graph/nodes/rank_jobs.py"
click node_reformulate "https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/graph/nodes/reformulate_query.py"
click node_tailor "https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/graph/nodes/tailor.py"
click node_research "https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/tools/research.py"
click node_validate "https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/graph/nodes/validate_tailoring.py"
click node_validator "https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/validation.py"
click node_renderer "https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/renderer.py"
click node_llm "https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/llm.py"
click node_tracing "https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/tracing.py"
click node_voice_bridge "https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/voice/bridge.py"
click node_voice_tools "https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/voice/tools.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_wizard toneBlue
class node_runner,node_graph,node_fetch,node_rank,node_reformulate,node_tailor toneAmber
class node_session_store,node_cv_reader,node_profile,node_corpus,node_validate,node_validator,node_renderer toneMint
class node_job_sources,node_research,node_llm,node_tracing,node_elevenlabs,node_job_sites toneRose
class node_web_console,node_api,node_voice_bridge,node_voice_tools,node_candidate toneIndigo
```

## Components

### User experience

- [Job Scout wizard](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/app.py): `src/job_scout/app.py`

### Agent workflow

- [Run coordinator](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/runner.py): `src/job_scout/runner.py`
- [Checkpointed graph](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/graph/graph.py): `src/job_scout/graph/graph.py`
- [Job search](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/graph/nodes/fetch_jobs.py): `src/job_scout/graph/nodes/fetch_jobs.py`
- [Fit ranking](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/graph/nodes/rank_jobs.py): `src/job_scout/graph/nodes/rank_jobs.py`
- [Query broadening](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/graph/nodes/reformulate_query.py): `src/job_scout/graph/nodes/reformulate_query.py`
- [Application tailoring](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/graph/nodes/tailor.py): `src/job_scout/graph/nodes/tailor.py`

### Profile and grounding

- [Candidate session store](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/candidate_store.py): `src/job_scout/candidate_store.py`
- [PDF reader](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/tools/cv_reader.py): `src/job_scout/tools/cv_reader.py`
- [Profile extraction](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/profile.py): `src/job_scout/profile.py`
- [CV content corpus](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/corpus.py): `src/job_scout/corpus.py`
- [Fabrication check](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/graph/nodes/validate_tailoring.py): `src/job_scout/graph/nodes/validate_tailoring.py`
- [Grounding validator](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/validation.py): `src/job_scout/validation.py`
- [PDF application pack](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/renderer.py): `src/job_scout/renderer.py`

### Services and observability

- [Job source adapters](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/tools/jobs_api.py): `src/job_scout/tools/jobs_api.py`
- [Company research](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/tools/research.py): `src/job_scout/tools/research.py`
- [Model provider](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/llm.py): `src/job_scout/llm.py`
- [Opik tracing](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/tracing.py): `src/job_scout/tracing.py`
- **ElevenLabs Agents**
- **External job sites**

### Voice console

- [Voice web console](https://github.com/tech-believer/job_agent_open_src/blob/main/web/app/page.tsx): `web/app/page.tsx`
- [Console API](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/api.py): `src/job_scout/api.py`
- [Voice session bridge](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/voice/bridge.py): `src/job_scout/voice/bridge.py`
- [Voice agent tools](https://github.com/tech-believer/job_agent_open_src/blob/main/src/job_scout/voice/tools.py): `src/job_scout/voice/tools.py`

### Other components

- **Candidate**

## Connections

- Candidate → Job Scout wizard: uploads CV (evidence: `src/job_scout/app.py`)
- Job Scout wizard → PDF reader: reads PDF (evidence: `src/job_scout/app.py`)
- Job Scout wizard → Profile extraction: extracts profile (evidence: `README.md`)
- Profile extraction → Model provider: calls model (evidence: `src/job_scout/profile.py`)
- Job Scout wizard → Candidate session store: persists candidate (evidence: `src/job_scout/app.py`)
- Job Scout wizard → Run coordinator: starts runs (evidence: `src/job_scout/runner.py`)
- Run coordinator → Checkpointed graph: invokes graph (evidence: `src/job_scout/runner.py`)
- Run coordinator → Profile extraction: extracts profile (evidence: `src/job_scout/runner.py`)
- Run coordinator → Opik tracing: configures traces (evidence: `src/job_scout/runner.py`)
- Checkpointed graph → Job search: routes search (evidence: `src/job_scout/graph/graph.py`)
- Checkpointed graph → Application tailoring: routes selection (evidence: `src/job_scout/graph/graph.py`)
- Job search → Job source adapters: searches sources (evidence: `src/job_scout/graph/nodes/fetch_jobs.py`)
- Job source adapters → External job sites: fetches openings (evidence: `README.md`)
- Checkpointed graph → Fit ranking: runs after fetch (evidence: `src/job_scout/graph/graph.py`)
- Fit ranking → Model provider: scores jobs (evidence: `src/job_scout/graph/nodes/rank_jobs.py`)
- Checkpointed graph → Query broadening: loops on weak results (evidence: `src/job_scout/graph/graph.py`)
- Query broadening → Model provider: broadens query (evidence: `src/job_scout/graph/nodes/reformulate_query.py`)
- Application tailoring → CV content corpus: grounds content (evidence: `src/job_scout/graph/nodes/tailor.py`)
- Application tailoring → Model provider: generates pack (evidence: `src/job_scout/graph/nodes/tailor.py`)
- Application tailoring → Company research: requests research (evidence: `src/job_scout/graph/nodes/tailor.py`)
- Checkpointed graph → Fabrication check: runs validation (evidence: `src/job_scout/graph/graph.py`)
- Fabrication check → Grounding validator: checks claims (evidence: `src/job_scout/graph/nodes/validate_tailoring.py`)
- Job Scout wizard → PDF application pack: renders pack (evidence: `src/job_scout/app.py`)
- Candidate → Voice web console: asks by voice (evidence: `README.md`)
- Voice web console → Console API: requests session token (evidence: `README.md`)
- Console API → Voice session bridge: serves voice session (evidence: `src/job_scout/api.py`)
- Voice agent tools → Voice session bridge: starts graph runs (evidence: `src/job_scout/voice/tools.py`)
- Voice session bridge → Run coordinator: drives runs (evidence: `src/job_scout/voice/bridge.py`)
- ElevenLabs Agents → Voice web console: connects by WebRTC (evidence: `README.md`)
- Voice agent tools → ElevenLabs Agents: exposes agent tools
