Skip to main content
Glama
wale-eth

ai-jobs-agent

by wale-eth

ai-jobs-agent

An autonomous agent that catches job postings at the source, minutes after they go live, and classifies their UK visa sponsorship stance before they ever reach a job board.

Most aggregator sites index postings hours or days after companies publish them. This agent polls the applicant tracking systems directly (Greenhouse, Lever, Ashby, Workable, and SmartRecruiters public APIs) every 30 minutes, so the headline metric is honest and measured: median detection latency, computed as first_seen_at - posted_at for every posting detected after tracking began. Jobs that disappear from their board are marked closed on the next sweep, so "open roles" stays true.

v1 is deliberately scoped to detect-classify-log. CV tailoring and notifications come later.

CI Poll sweep

Browse the live data: FirstSeen, a free explorer over everything the agent finds, with sponsorship tiers, a licensed-UK-sponsor badge (matched against the Home Office register), and region filters. Served from docs/ on this repo via GitHub Pages.

Architecture

flowchart LR
    subgraph Schedule["GitHub Actions, every 30 min"]
        direction LR
        S[poll.yml] --> G
    end

    subgraph G["LangGraph state machine"]
        direction LR
        LC[load_companies] --> F[fetch\n30 ATS boards]
        F --> SN[store_new\ndiff vs known jobs]
        SN -->|new jobs| CL[classify\nrules, then LLM]
        SN -->|nothing new| FIN[finalize]
        CL --> FIN
    end

    F -.-> GH[(Greenhouse API)]
    F -.-> LV[(Lever API)]
    F -.-> AS[(Ashby API)]
    CL -.->|grey zone only| LLM[Claude Haiku]
    LLM -.-> LF[Langfuse traces]
    FIN --> DATA[(data branch\njobs.jsonl + sweeps.jsonl)]

    MCP[MCP server] --> DATA
    CD[Claude Desktop / any MCP client] --> MCP

Related MCP server: RecruitData

The sponsorship classifier

Three tiers, applied in a strict order that keeps LLM spend proportional to genuine ambiguity, not job volume:

Tier

Meaning

Decided by

sponsors_explicit

posting explicitly offers sponsorship

regex rules

no_sponsorship

posting explicitly refuses, or demands existing right to work

regex rules (checked first: refusals often contain positive-sounding fragments)

silent_possible

no stance stated; treated as a partial positive

rules (no mention at all) or LLM (mentions visas ambiguously)

Only the grey zone reaches the LLM (Claude Haiku), which sees a windowed excerpt around the sponsorship mention rather than the whole description. Every LLM call is traced to Langfuse with model, token usage, and latency. Without an ANTHROPIC_API_KEY, grey-zone jobs are marked pending and everything else still works.

The latency metric

  • posted_at comes from the ATS itself (Greenhouse first_published, Lever createdAt, Ashby publishedAt)

  • first_seen_at is stamped the moment a sweep first sees the posting

  • The very first sweep is a baseline: those jobs are flagged is_backfill and excluded, otherwise the metric would be polluted by postings that predate tracking

  • Median and p90 are computed over live-tracked jobs only; every sweep publishes them to its GitHub Actions run summary

With a 30-minute cron the theoretical median is ~15 minutes; the observed number appears in the Actions run summaries and via the MCP job_stats tool.

State without a server

Scheduled runs commit their findings to the data branch as append-only JSONL (jobs.jsonl, sweeps.jsonl), which git stores as tiny line diffs. Each run rehydrates a working SQLite database from the JSONL, sweeps, and appends what it found. The run history doubles as a public, timestamped audit log of every detection.

MCP server

Exposes the agent to Claude Desktop or any MCP client with four tools: job_stats, search_jobs, get_job, run_sweep.

// Claude Desktop config
{
  "mcpServers": {
    "ai-jobs-agent": {
      "command": "python",
      "args": ["-m", "jobs_agent.mcp_server"],
      "cwd": "/path/to/ai-jobs-agent"
    }
  }
}

Then ask things like "any new ML roles that sponsor visas since yesterday?" or "what's the median detection latency?"

Quickstart

pip install -r requirements.txt
python -m jobs_agent.cli sweep          # one detect-classify-log cycle
python -m jobs_agent.cli stats          # metrics summary
python -m jobs_agent.cli search --query "machine learning" --tier sponsors_explicit

Docker:

docker build -t ai-jobs-agent .
docker run --rm -e ANTHROPIC_API_KEY ai-jobs-agent

Deployment (GitHub Actions)

poll.yml runs every 30 minutes. Set repo secrets to enable the full pipeline:

Secret

Purpose

ANTHROPIC_API_KEY

grey-zone LLM classification

LANGFUSE_PUBLIC_KEY / LANGFUSE_SECRET_KEY

tracing of every LLM call

Without secrets the agent still detects, rules-classifies, and logs latency.

The company registry

jobs_agent/companies.yaml: 88 boards across Greenhouse (56), Lever (7), Ashby (21), Workable (2), and SmartRecruiters (2), every slug verified live against its ATS API; 68 are on the Home Office register of licensed Skilled Worker sponsors. Failing boards are skipped and reported per sweep, so pruning is data-driven. Edit the YAML to change coverage; nothing else needs touching.

Two honest data notes: Workable reports publication dates without a time component, so its jobs are excluded from the minutes-level latency metric rather than distorting it; and SmartRecruiters descriptions are fetched only for postings released in the last 21 days (new postings always qualify, so classification quality is unaffected).

CI

Every push: ruff, pytest (offline, fixture-based), Docker build, then a real integration smoke test: the container polls two live ATS boards and must see jobs with zero board failures. Images publish to GHCR.

Repo layout

jobs_agent/
  companies.yaml     the shortlist (verified slugs)
  ats/               greenhouse.py, lever.py, ashby.py pollers
  models.py          Job, Tier, Classification, SweepReport
  classify.py        rules + windowed LLM classifier
  tracing.py         Langfuse integration (no-op without keys)
  graph.py           LangGraph sweep state machine
  store.py           SQLite + latency metric
  persistence.py     append-only JSONL state for the data branch
  mcp_server.py      FastMCP server (4 tools)
  cli.py             sweep / stats / search
tests/               17 tests: parsers, policy, store, graph, MCP
.github/workflows/   ci.yml (lint/test/build/live smoke), poll.yml (cron)
A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    A
    maintenance
    MCP server for job search and application tracking, enabling AI agents to search jobs, get details, manage applications, and find contacts across 128K+ jobs and 1,900+ companies.
    Last updated
    2,238
    1
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    Unified job search MCP server that aggregates live listings from multiple job boards with deduplication, enabling AI agents to find and filter jobs by keyword and location.
    Last updated
    MIT
  • A
    license
    -
    quality
    B
    maintenance
    MCP server for the Junction41 platform, providing 125 tools for agent lifecycle, jobs, workspace, payments, bounties, and more, enabling LLMs to interact with Junction41.
    Last updated
    12
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    An MCP server that exposes job-search and application-management capabilities to compatible AI clients, enabling discovery of vacancies, drafting of tailored application materials, and coordinated human-approved submissions.
    Last updated
    MIT

View all related MCP servers

Related MCP Connectors

  • Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.

  • Local-first RAG engine with MCP server for AI agent integration.

  • MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wale-eth/ai-jobs-agent'

If you have feedback or need assistance with the MCP directory API, please join our Discord server