Skip to content
Projects

Francis1998/agentic-career-search

View on GitHub

About

Agentic job-discovery backend: 119 ATS & job-board adapters, explainable scoring with decision traces, recurring cron/interval schedules, pay transparency with annualized salary filters, an application tracker, resume-to-job matching, CSV/JSONL/Atom exports, a read-only MCP server and optional GPT-6.2, Claude 5.5, Gemini 4 or Kimi K3.1 enrichment.

AI & Machine Learning

How these counts are measured

Measured star growth

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

agentic-career-search

CI Python 3.11+ FastAPI License

An agentic job-discovery backend that explains every decision. Point it at public career boards (119 ATS and job-board adapters: Greenhouse, Lever, Workday, Ashby, SmartRecruiters, schema.org JSON-LD and more). A worker runs cancellable discovery runs that score every posting and record why, then you search, export and subscribe to the results.

Job search, export and Atom feed — real terminal session

Why this exists

Job-search automation usually fails in practice because it:

  • can't explain its ranking → every job stores a deterministic score, priority tier, matched terms, rationale and plan steps (raw.agent_decision);
  • breaks silently → one adapter contract with timeouts, bounded scope and per-source source.failed events instead of a crashed script;
  • can't be steered → runs follow a queued → running → completed / cancelled / failed state machine with cooperative cancellation and an ordered event log;
  • leaves results in a terminal → JobSpy-style search, CSV/JSONL export and an Atom feed for Slack, Teams or any feed reader;
  • can't tell what fits you → POST /jobs/match ranks the captured feed against your resume text with matched and missing skills — deterministic, and the resume is never stored;
  • needs your own cron job to stay fresh → recurring schedules (every N minutes or a cron expression in your time zone) re-run discovery with overlap, misfire and pause semantics, so a laptop waking up never triggers a burst of catch-up runs;
  • can't be asked about → a read-only MCP server lets Claude Desktop, Claude Code, VS Code or Cursor search your feed and explain any score;
  • depends on one LLM → enrichment is optional and works with the current OpenAI, Anthropic, Google and Kimi models, while the deterministic core runs offline.

How it works

flowchart LR
    SC["Source configs<br/>POST /source-configs"] --> RUN["Runs<br/>POST /runs"]
    SCHED["Run schedules<br/>interval · cron + time zone"] -->|"scheduler tick<br/>claims due fires"| RUN
    RUN --> W["InProcessWorker<br/>claims queued runs"]
    W --> AD["119 source adapters<br/>Greenhouse · Lever · Workday · JSON-LD …"]
    AD --> SCORE["Deterministic scoring<br/>+ planning"]
    SCORE --> DT["Decision trace<br/>agent_decision + run events"]
    SCORE -. optional .-> LLM["LLM enrichment<br/>GPT-6 / 6.2 · Claude 5.5 / Fable 5.2<br/>Gemini 3.8 / 4 · Kimi K3.1"]
    LLM -.-> DT
    DT --> DB[("Jobs + run events")]
    DB --> API["Search · export · Atom feed<br/>GET /jobs …"]
    DB --> MCP["Read-only MCP server<br/>career-search-mcp (stdio)"]
    DB --> MATCH["Resume match<br/>POST /jobs/match"]

Every step is observable through GET /runs/{run_id}/events, and every stored job carries its decision trace. See ARCHITECTURE.md for the state machine and event types.

60-second quickstart

git clone https://github.com/Francis1998/agentic-career-search.git && cd agentic-career-search
uv sync --extra dev --frozen
export DATABASE_URL=sqlite+aiosqlite:///./demo.db

# Offline: seed demo jobs and serve them (no network, no keys)
uv run python scripts/seed_demo_jobs.py
ENABLE_WORKER=false uv run uvicorn autoapply_agent.main:app --port 8000 &
# Wait up to 10 s for the server, then check it: continue once this prints {"status":"ready"}
for _ in $(seq 50); do curl -sf localhost:8000/health/ready >/dev/null && break; sleep 0.2; done
curl -sS localhost:8000/health/ready

Then search, export and subscribe:

curl -sS 'localhost:8000/jobs?q=python&remote=true&sort=score&dedupe=true' \
  | jq -c '.[] | [.title, .company, .score]'
curl -sS -OJ 'localhost:8000/jobs/export?format=csv&min_score=0.7'    # spreadsheet-safe CSV
curl -sS 'localhost:8000/jobs/feed.atom?remote=true' | head -20       # Atom feed

Rank the same feed against a resume (plain text; the sample is synthetic):

jq -n --rawfile resume docs/guides/RESUME_JOB_MATCH_SAMPLE_RESUME.txt '{resume_text: $resume, remote: true}' \
  | curl -sS localhost:8000/jobs/match -H 'content-type: application/json' -d @- \
  | jq -c '.jobs[] | [.rank, .match_score, .title, .missing_skills]'

Resume-to-job match — real terminal session

RESUME_JOB_MATCH_GUIDE.md covers the skill lexicon, sort=blend, CSV output, limits and privacy.

Track the jobs you go for through saved → applied → interview → offer → accepted / rejected, with an append-only timeline, follow-up dates, a board, a spreadsheet-safe CSV export and a follow-up calendar feed (local bookkeeping only: nothing is ever submitted):

curl -sS localhost:8000/applications -H 'content-type: application/json' -d '{"job_id": 1}'
curl -sS -X PATCH localhost:8000/applications/1 -H 'content-type: application/json' \
  -d '{"stage": "applied", "next_action_at": "2026-11-24T17:00:00Z", "next_action": "Email the recruiter"}'
curl -sS localhost:8000/applications/board | jq -c '.columns[] | [.stage, .count]'

Application tracker — real terminal session

APPLICATION_TRACKER_GUIDE.md covers the state machine, every endpoint, the MCP tools, the CSV and calendar exports and troubleshooting.

See what each job pays: discovery captures the range a posting states (schema.org baseSalary, or text such as "$120k–$150k" or "$45/hr"), annualized in one ISO 4217 currency, never guessed. Filter, sort and export by it:

curl -sS 'localhost:8000/jobs?salary_currency=USD&min_salary=180000&sort=salary' \
  | jq -c '.[] | [.title, .salary_min_annual, .salary_max_annual, .salary_interval]'
curl -sS 'localhost:8000/jobs?has_salary=false' | jq -r '.[].title'   # postings without pay

Pay transparency — real terminal session

PAY_TRANSPARENCY_GUIDE.md covers the extractor's rules and false-positive guards, annualization, currency handling, every parameter, the CSV/feed/MCP output and upgrading an existing database.

Keep the feed fresh without an external cron job: save a run as a schedule (every N minutes, or a cron expression evaluated in your time zone) and the agent re-runs it, with overlap, misfire and pause semantics and an append-only history:

curl -sS 'localhost:8000/schedules/preview?cron=30+8+*+*+1-5&timezone=America/Los_Angeles' \
  | jq -r '.upcoming[].local'                                         # dry-run the expression
curl -sS localhost:8000/schedules -H 'content-type: application/json' \
  -d '{"name": "weekday mornings", "cron": "30 8 * * 1-5", "timezone": "America/Los_Angeles", "query": "python platform"}'
curl -sS localhost:8000/schedules/1/history | jq -r '.[] | "\(.kind) \(.reason)"'

Run schedules — real terminal session

RUN_SCHEDULES_GUIDE.md covers interval and cron cadences, DST rules, skip / buffer_one, misfire coalescing, pause / resume / trigger, every endpoint and the MCP tools.

For live data, start the API with the worker enabled (omit ENABLE_WORKER=false), then register a public board and start a run:

curl -s -X POST localhost:8000/source-configs -H 'content-type: application/json' \
  -d '{"name":"gitlab","source_type":"greenhouse","base_url":"https://boards.greenhouse.io/gitlab"}'
curl -s -X POST localhost:8000/runs -H 'content-type: application/json' \
  -d '{"query":"backend engineer python remote"}'

PORTFOLIO_WALKTHROUGH.md follows one real search end to end, and QUICKSTART.md covers setup details.

Ask your AI assistant (MCP)

career-search-mcp is a read-only Model Context Protocol server (stdio; protocol 2026-07-28 plus the 2025-11-25 / 2025-06-18 handshake). Assistants get eleven tools — search_jobs, get_job, explain_job_score, list_runs, get_run, list_sources, match_resume_to_jobs, list_applications, get_application, list_schedules, get_schedule — over the jobs your runs already captured, scored and deduplicated, so "show me this week's best-fit remote roles and why the top one ranks first" needs no scraping, keys or writes. For example, in Claude Code:

claude mcp add --transport stdio career-search -- \
  /abs/path/agentic-career-search/.venv/bin/career-search-mcp \
  --database-url sqlite+aiosqlite:////abs/path/agentic-career-search/autoapply_agent.db

MCP_SERVER_GUIDE.md covers Claude Desktop, VS Code and Cursor configuration examples, every tool, the audit log and a recorded session.

Feature map

Area What you get Docs
Sources 119 adapters (ATS, job boards, vendor-neutral JSON-LD) behind one CareerSourceAdapter contract Supported sources
Runs Queue, worker, cooperative cancel, ordered run events ARCHITECTURE.md
Decisions Deterministic score, priority tier, matched terms, rationale, plan steps per job ARCHITECTURE.md
Search & export Filters, X-Total-Count paging, cross-board dedupe, OWASP-safe CSV, JSON Lines, Atom 1.0 Search & export guide
Resume match POST /jobs/match and MCP match_resume_to_jobs: rank jobs against resume text with a 254-skill alias-aware lexicon (k8s → kubernetes); match score, matched/missing skills, explanation, sort=match|blend, CSV; resume never stored or logged Resume match guide
Pay transparency Stated pay per job from schema.org baseSalary or description text ("$120k–$150k", "$45/hr", "€60.000"), typed and annualized (hour ×2080, day ×260, week ×52, month ×12) in ISO 4217 currencies; min_salary / max_salary (overlap), salary_currency, has_salary, sort=salary on list, export, feed, match and MCP; false positives such as "$5M Series A" or "$50 stipend" rejected; informational only Pay transparency guide
Application tracker /applications: persistent pipeline saved → applied → interview → offer → accepted/rejected on one state machine (illegal moves 409), append-only timeline, follow-ups (overdue/due), board, CSV/JSONL export, iCalendar follow-up feed; MCP list_applications / get_application; never submits anything Application tracker guide
Run schedules /schedules: recurring discovery runs every N minutes (≥ 15) or on a 5-field cron in an IANA time zone (DST gaps skipped, repeated hours fire once); overlap skip / buffer_one, missed fires coalesced into one run, pause with a note, trigger now, deterministic jitter, exactly-once claims, append-only history, cron preview; MCP list_schedules / get_schedule; discovery only Run schedules guide
AI assistants (MCP) Read-only stdio MCP server: search, decision traces, plain-language score explanations, runs and events; audit log with hashed arguments MCP server guide
LLM enrichment Optional summaries from GPT-6 / 6.2, Claude 5.5 / Fable 5.2, Gemini 3.8 / 4 or Kimi K3.1 models CONFIGURATION.md
Alerts Fail-soft webhook for high-priority jobs (Slack, Discord, custom) CONFIGURATION.md
Career toolkit 175+ offline, human-in-the-loop helpers (fit, salary bands, interview prep, offer and benefit gap advisors) Use-case catalog
Operations Health probes, Alembic migrations, CI (ruff, mypy, pytest), weekly security scan DEPLOYMENT.md

LLM enrichment (current model stack)

Provider integration is built into the code path and is optional: deterministic scoring and decision traces work without any key. Each default is a provider's cost-efficient current model (line-ups verified 2026-11-19 on the linked provider pages):

Provider LLM_PROVIDER Default model Request shape
OpenAI gpt gpt-6-luna Chat Completions without tools; reasoning_effort from OPENAI_REASONING_EFFORT (none, so temperature is allowed); gpt-6.2-sol, gpt-6.2-astra, gpt-6.1-sol and gpt-6-astra always reason, so they get low instead of none / minimal and no temperature
Anthropic claude claude-haiku-5-5 Messages API; output_config.effort from CLAUDE_EFFORT (low); no sampling parameters (Claude 5.5 and Fable 5.2 return 400 for custom values)
Google gemini gemini-3.8-flash generateContent; thinkingLevel: LOW on Gemini 3+ (required on Gemini 4); Gemini 4 keeps Google's default output limit; no sampling parameters
Moonshot Kimi kimi kimi-k3.1-pro OpenAI-compatible; reasoning_effort: low; temperature is fixed at 1.0 by K3 and never sent

Other current models:

  • OpenAI: gpt-6.1-terra (fast and efficient), gpt-6.2-sol (released 2026-11-17; OpenAI's go-to model for everyday work and agents, at the price of the gpt-6.1-sol it supersedes), gpt-6.2-astra (released 2026-11-17; flagship for the hardest work, with input and output prices 20% below the gpt-6-astra it supersedes). gpt-6.1-sol and gpt-6-astra remain available.
  • Anthropic: claude-sonnet-5-5, claude-opus-5-5 (Anthropic's recommended starting point), claude-fable-5-2 (demanding reasoning and long-horizon agentic work; needs 30-day data retention).
  • Google: gemini-3.5-flash-lite (cheapest), gemini-4-hydrogen (released 2026-11-12; Google's recommended upgrade from Gemini 3.8 Flash, at twice its price until the 3.8 Flash introductory rate ends on 2026-12-31), gemini-4-neon (GA 2026-11-18; between Hydrogen and Carbon, with quality close to Carbon at a lower token cost per task; paid tier only), gemini-4-argon, gemini-4-carbon (strongest reasoning).
  • Kimi: kimi-k3.1-pro-highspeed (same intelligence, about 2-3x the speed). Kimi K2 models are retiring by the end of December 2026 and closed to new users on 2026-10-31 (Moonshot).

See each provider's page for pricing; CONFIGURATION.md lists the limits, prices and request shape of the models added on 2026-11-19.

Enable provider enrichment:

LLM_ENABLE_ENRICHMENT=true
LLM_PROVIDER=gemini   # or kimi / claude / gpt

Then set matching API keys in .env (see CONFIGURATION.md).

API at a glance

  • POST /source-configs create source adapter configs
  • GET /source-configs list enabled sources
  • POST /runs enqueue autonomous run
  • GET /runs/{run_id} inspect run state
  • GET /runs/{run_id}/events inspect event timeline
  • POST /runs/{run_id}/cancel request cancellation
  • GET /jobs search normalized, scored, and enriched outputs (q, company, location, remote, min_score, source_config_id, run_id, created_after, hours_old, min_salary/max_salary with salary_currency, has_salary, sort=newest|score|salary, dedupe, limit/offset); each job has salary_min_annual, salary_max_annual, salary_currency, salary_interval
  • GET /jobs/{job_id} inspect one job
  • GET /jobs/export?format=csv|jsonl stream filtered results as a download (CSV includes the stated and annualized pay columns)
  • GET /jobs/feed.atom subscribe to new matches (Atom 1.0; entry summaries state the pay range)
  • POST /jobs/match rank jobs against resume text (JSON body: resume_text + the GET /jobs filters, sort=match|blend, limit, min_match); matched/missing skills; ?format=csv
  • POST /applications track a captured job (404 unknown job, 409 already tracked); GET /applications list (stage, company, q, follow_up=overdue|due|scheduled|none, due_within_days, include_archived, job_id, sort, limit/offset)
  • GET /applications/board pipeline grouped by stage with counts; GET /applications/{id}; PATCH /applications/{id} move stage (409 on illegal moves), notes, follow-up
  • GET /applications/{id}/events append-only timeline; POST /applications/{id}/archive / unarchive
  • GET /applications/export?format=csv|jsonl spreadsheet-safe export; GET /applications/calendar.ics follow-up calendar feed
  • POST /schedules save a recurring run (interval_minutes ≥ 15 or cron + timezone, overlap_policy=skip|buffer_one, jitter_seconds); GET /schedules list (paused, kind, q, limit/offset)
  • GET /schedules/{id} with the next five fires; PATCH / DELETE /schedules/{id}; POST /schedules/{id}/pause (note) / resume / trigger
  • GET /schedules/{id}/history fired / coalesced_misfire / triggered / buffered / skipped_overlap / paused / resumed; GET /schedules/preview?cron=…&timezone=… dry run
  • GET /health/live and GET /health/ready

MCP (stdio, read-only): career-search-mcp / python -m autoapply_agent.mcp — see the MCP server guide.

Documentation

Document What it covers
QUICKSTART.md Local setup and a first run
docs/guides/PORTFOLIO_WALKTHROUGH.md One real job search, end to end
docs/guides/JOB_SEARCH_EXPORT_GUIDE.md Filters, CSV/JSONL export, Atom feed
docs/guides/MCP_SERVER_GUIDE.md Read-only MCP server for AI assistants: client setup, tools, privacy
docs/guides/RESUME_JOB_MATCH_GUIDE.md Resume-to-job match: API + MCP reference, skill lexicon, ranking, privacy
docs/guides/APPLICATION_TRACKER_GUIDE.md Application tracker: pipeline stages, timeline, follow-ups, board, CSV and calendar exports, MCP
docs/guides/PAY_TRANSPARENCY_GUIDE.md Pay transparency: captured pay ranges, annualization, currency rules, salary filters and sort, exports, MCP
docs/guides/RUN_SCHEDULES_GUIDE.md Run schedules: interval / cron cadences, time zones and DST, overlap and misfire semantics, pause / resume / trigger, history, MCP
ARCHITECTURE.md Components, run lifecycle, events
docs/API.md HTTP API reference
CONFIGURATION.md Environment variables and provider profiles
docs/SUPPORTED_SOURCES.md Every source adapter
docs/USE_CASE_CATALOG.md Advisor and use-case catalog, demo gallery
SAFETY.md Scope boundaries and guardrails
docs/DEPLOYMENT.md Deployment and migrations
docs/TROUBLESHOOTING.md Common failures
CONTRIBUTING.md Development workflow
CHANGELOG.md Release history

License

MIT © Francis1998

Explore related projects

Loading…