How sowmya-bh/resumeparser works
Purpose and Entry Points
Job Scout + Resume ATS Agent matches a resume to indexed jobs, routes the user through selection and ATS review, then supports iterative revision and generated application materials. Primary entry points are the FastAPI app in server.py, interactive CLI in run.py, and static browser UI in web/index.html.
Orchestrated Agent Workflow
The LangGraph workflow is assembled in agent/graph.py over shared state from agent/state.py. It forks two independent first-stage tasks—job scouting and resume parsing—then joins them for matching. Two graph interrupts implement human gates: select a job, then review/revise results. The review branch can loop back to scoring or dispatch generation actions.
Retrieval, Resume Parsing, and Matching
agent/nodes.py implements graph stages: scout, parser, match, select_job, ats_score, human_review, and extras. Scouting reads the job index (data/jobs_index.jsonl, or sample data/jobs_sample.jsonl); parsing converts supplied text or supported documents into a working profile/resume. agent/matcher.py performs deterministic skill-overlap ranking for the retrieved job pool and distinguishes ranking from ATS scoring.
Scoring Boundary and Audit Controls
All ResumeHQ interaction is centralized in agent/rq_tools.py, which validates against a fixed tool registry, preserves raw scorer outputs, and writes append-only audit events. Scoring uses ResumeHQ’s mcp_scorer interfaces for ATS/HR scores, explanations, text extraction, and cover-letter support. The main process must not fabricate score data when the scorer is unavailable; errors remain explicit and audited.
API and HITL Control Plane
server.py exposes the UI-facing graph lifecycle: start a session, resume after job selection, and resume review actions such as adding information, uploading a revision, asking questions, generating materials, or finishing. It also exposes audit access. The frontend is intentionally build-free and delegates all stateful workflow execution to the API.
LLM and Generated Outputs
agent/llm.py wraps Gemini and provides fallback behavior when no API key is configured. It supports explanation and generation-oriented paths, while scored ATS/HR content remains grounded in ResumeHQ outputs. agent/nodes.py routes cover letters, tailored resumes, and interview-question actions through the extras stage using the final revised resume state.
Deployment Topology
The default app runtime is Python/FastAPI/LangGraph, packaged by Dockerfile. Lightweight production scoring can use ResumeHQ cloud with local fallback disabled. Heavy local ResumeHQ scoring is isolated behind HTTP in scorer_service/app.py, built separately by scorer_service/Dockerfile; docker-compose.yml connects the app to this sidecar under separate memory limits. render.yaml defines the equivalent public app/private scorer deployment split.
Main entry points: graph.py LangGraph Workflow · nodes.py ATS Score & Review · matcher.py Skill-overlap Matcher · rq_tools.py ResumeHQ Tool Gateway
Components 20
User Interfaces
- Static Browser UI · Build-free UI for workflow interactions.
web/index.html - Interactive CLI
run.py
Application Workflow
- FastAPI Lifecycle API · Starts sessions, resumes interrupts, and exposes audits.
server.py - LangGraph Workflow · Forks scouting and parsing, then manages human gates.
agent/graph.py - Shared Workflow State
agent/state.py - Job Scout
agent/nodes.py - Resume Parser
agent/nodes.py - Job Index · Primary indexed jobs, with a sample alternative.
data/jobs_index.jsonl - Skill-overlap Matcher · Deterministically ranks retrieved jobs before ATS scoring.
agent/matcher.py - Job Selection Gate
agent/nodes.py - ATS Score & Review · Scores the selected job and accepts revision decisions.
agent/nodes.py - Materials Generator · Creates cover letters, tailored resumes, and interview questions.
agent/nodes.py - Gemini Wrapper · Provides explanation and generation fallback behavior.
agent/llm.py
Scoring Boundary
- ResumeHQ Tool Gateway · Validates tools, preserves raw outputs, and appends audits.
agent/rq_tools.py - ResumeHQ Scorer · Provides ATS/HR scores, extraction, explanations, and cover-letter support.
Deployment
- Local Scorer Sidecar · Isolated heavy local ResumeHQ scoring runtime.
scorer_service/app.py - App Container
Dockerfile - Scorer Container
scorer_service/Dockerfile - Compose Topology · Connects app and scorer with separate memory limits.
docker-compose.yml - Render Deployment Split · Defines public app and private scorer services.
render.yaml
Connections 22
- Static Browser UI → FastAPI Lifecycle API: session and resume actions
- Interactive CLI → LangGraph Workflow: runs workflow
- FastAPI Lifecycle API → LangGraph Workflow: starts and resumes
- LangGraph Workflow → Shared Workflow State: reads and updates
- LangGraph Workflow → Job Scout: parallel first stage
- LangGraph Workflow → Resume Parser: parallel first stage
- Job Scout → Job Index: reads jobs
- Job Scout → Skill-overlap Matcher: job pool
- Resume Parser → Skill-overlap Matcher: resume profile
- Skill-overlap Matcher → Job Selection Gate: ranked matches
- Job Selection Gate → ATS Score & Review: chosen job
- ATS Score & Review → ResumeHQ Tool Gateway: ATS/HR scoring
- ResumeHQ Tool Gateway → ResumeHQ Scorer: registered scorer calls
- ATS Score & Review → Skill-overlap Matcher: revision rescore
- ATS Score & Review → Materials Generator: generation actions
- Materials Generator → Gemini Wrapper: generation and explanations
- ResumeHQ Tool Gateway → Local Scorer Sidecar: local scoring option
- App Container → Compose Topology: app image
- Scorer Container → Compose Topology: scorer image
- Compose Topology → Local Scorer Sidecar: runs sidecar
- Render Deployment Split → FastAPI Lifecycle API: public app service
- Render Deployment Split → Local Scorer Sidecar: private scorer service