How ajay1812/applyforge works
Purpose and entry points
ApplyForge is a Python 3.11+ daily job-hunt automation for one candidate. It discovers public listings, filters and permanently deduplicates them, tailors and renders resumes, creates optional outreach drafts, and records outcomes for review. The primary entry point is run.sh, which invokes scripts/run_pipeline.py; scheduled execution is driven externally by Hermes using daily_run_prompt.md.
Pipeline orchestration
scripts/run_pipeline.py owns the daily control flow and coordinates stages rather than exposing a service/API. It applies the shared auto-draft experience policy from scripts/common.py, processes eligible jobs, and emits a run summary. scripts/reprocess_job.py supports rerunning a selected job after failures, while scripts/add_manual_lead.py injects manually supplied recruiter leads into the same downstream flow.
Job ingestion, eligibility, and deduplication
scripts/fetch_jobs.py retrieves listings from public sources, including Greenhouse/Lever boards configured in companies.yaml. It filters jobs for candidate eligibility and deduplicates against the persistent tracker.csv log, which is the source of truth for whether a listing has been seen. This is a durable boundary: removing tracker rows is required to intentionally reprocess jobs.
Candidate-document generation
scripts/tailor_resume.py transforms the private runtime resume input derived from resume/base_cv.yaml (template: resume/base_cv.example.yaml) using deterministic keyword reordering; it must not invent candidate experience. It produces a job-specific rendered resume artifact. scripts/ats_score.py evaluates heuristic job/resume keyword coverage, supporting prioritization or quality checks without an external model.
Outreach and Gmail boundary
Outreach content is generated by scripts/compose_email_groq.py, with template fallback behavior in scripts/compose_email.py. Groq is optional for generation but configured through GROQ_API_KEY. scripts/gmail_draft.py is intentionally constrained to creating Gmail drafts, never sending messages; it only acts when a listing has a public contact email. Gmail access uses Google OAuth and the compose/readonly scopes, with common authentication handling in scripts/gmail_auth_common.py.
Tracking and knowledge management
The system records pipeline outcomes in the local tracker and Obsidian. scripts/obsidian_sync.py maintains the job tracker representation, and scripts/daily_obsidian_note.py creates daily notes. Obsidian integration can use its Local REST API plugin or write to the configured vault path. scripts/archive_old_jobs.py is an opt-in lifecycle operation for moving historical job folders into an archive.
Runtime and operational boundaries
The application runs as local Python scripts in a virtual environment using requirements.txt; requirements-dev.txt supports development/test dependencies. Runtime secrets and personal data are environment/local-file based: .env.example documents configuration, while Gmail OAuth files, .env, the real base CV, and tracker.csv remain uncommitted. Execution must avoid an inherited PYTHONPATH, because an external Hermes environment can conflict with RenderCV/Pydantic dependencies.
Main entry points: run_pipeline.py Pipeline coordinator · fetch_jobs.py Fetch, filter, deduplicate · tailor_resume.py Tailor and render resume · compose_email_groq.py Compose outreach
Components 19
Execution
- Hermes scheduler · Triggers the daily run using the prompt.
daily_run_prompt.md - Daily launcher
run.sh - Pipeline coordinator · Applies the shared auto-draft policy and emits a run summary.
scripts/run_pipeline.py - Selected-job reprocess
scripts/reprocess_job.py
Job intake
- Manual lead intake
scripts/add_manual_lead.py - Fetch, filter, deduplicate
scripts/fetch_jobs.py - Public job boards · Includes configured Greenhouse and Lever boards.
companies.yaml
Documents
- Tailor and render resume · Deterministically reorders keywords without inventing experience.
scripts/tailor_resume.py - Private base CV · Derived from the documented CV template.
- ATS coverage score
scripts/ats_score.py - Job-specific resume
Outreach
- Compose outreach · Uses Groq when available and falls back to templates.
scripts/compose_email_groq.py - Groq API · Enabled by GROQ_API_KEY.
- Gmail draft creator · Creates drafts only when a public contact email exists; never sends.
scripts/gmail_draft.py - Google OAuth / Gmail · Uses compose and readonly scopes.
Tracking
- Job tracker · Source of truth for seen listings and pipeline outcomes.
- Obsidian job sync · Uses Local REST API or the configured vault path.
scripts/obsidian_sync.py - Daily Obsidian note
scripts/daily_obsidian_note.py - Obsidian vault
Connections 20
- Hermes scheduler → Daily launcher: scheduled trigger
- Daily launcher → Pipeline coordinator: invokes
- Selected-job reprocess → Pipeline coordinator: reruns selected job
- Manual lead intake → Pipeline coordinator: injects lead
- Pipeline coordinator → Fetch, filter, deduplicate: discovers jobs
- Public job boards → Fetch, filter, deduplicate: listings
- Fetch, filter, deduplicate → Job tracker: checks and records seen jobs
- Fetch, filter, deduplicate → Tailor and render resume: eligible unseen jobs
- Private base CV → Tailor and render resume: candidate data
- Tailor and render resume → Job-specific resume: renders
- Job-specific resume → ATS coverage score: coverage evaluation
- Pipeline coordinator → Compose outreach: eligible outreach
- Groq API → Compose outreach: optional generation
- Compose outreach → Gmail draft creator: draft content
- Gmail draft creator → Google OAuth / Gmail: OAuth draft creation
- Pipeline coordinator → Job tracker: records outcomes
- Pipeline coordinator → Obsidian job sync: syncs jobs
- Pipeline coordinator → Daily Obsidian note: creates daily note
- Obsidian job sync → Obsidian vault: updates tracker view
- Daily Obsidian note → Obsidian vault: writes note