Work / Builds

auto-job-apply — the LLM writes, it never drives the browser

A local-first pipeline that indexes roles across ~46 ATS platforms without spending a token, uses the LLM only to write, and puts a human gate in front of every submission. Zero live sends so far — two supervised runs failed safe, and that record is the result.

Abstract. Most automation in this space puts an LLM in the browser and lets it click. This system inverts that: deterministic Playwright code indexes roles across ~46 ATS platforms for zero tokens, the LLM only writes — tailored cover letters and cached answers to genuinely new screening questions — and a dashboard gates every submission. It has sent zero applications to date: two supervised live runs both failed safe, and four rounds of adversarial review reproduced real money-path bugs before any could fire. That record is presented as the result.

§ 1 · Problem

The LLM never drives the browser

Applying to jobs at volume has two failure modes: spray-and-pray spam, or an agent-drives-Chrome tool that burns frontier-model tokens on every page read and click — and can misrepresent you on a form you never saw. I wanted the opposite on both axes. The design thesis: deterministic code does all the browsing, the LLM only writes, and a human gate sits in front of anything irreversible. Token-cheap by construction, not by optimization.

The index problem is concrete. hiring.cafe aggregates roles across roughly 46 ATS platforms but has no usable public API — it’s a logged-in, client-rendered React SPA where a plain HTTP fetch returns an empty shell. So the search layer had to be a real browser, or a replay of the SPA’s own backend calls, in code, for zero tokens.

§ 2 · Data & provenance

Parse the SPA's own JSON, not its CSS

The index reads hiring.cafe’s __NEXT_DATA__ JSON rather than fragile CSS selectors — validated on a real 850KB saved sample at 57/57 jobs parsed with zero missing apply URLs or titles. hiring.cafe’s own source codes resolve the ATS, which catches custom-domain Greenhouse boards that URL regex alone misses. Everything lands in SQLite: jobs, an application state machine from discovered through submitted, failed, or needs_manual, a normalized answer cache, and email events.

The per-ATS knowledge came from a friend’s prior hands-on build, imported as a knowledge-transfer doc: the phone digits-only quirk, Ashby’s GraphQL setFormValue requirement, Workday’s calendar pickers, SmartRecruiters’ shadow DOM, SAP SuccessFactors as a permanent hard-skip. His answer-bank values are his personal data and were deliberately not reused — only the structure.

§ 3 · Architecture

Eight deterministic stages, one LLM touchpoint

The pipeline is eight deterministic stages: Search → Store and dedupe → Fit gate → ATS resolve → Prepare → Review → Submit → Track. The LLM touches exactly one stage heavily (Prepare) and one lightly (borderline fit scores).

Index · token-free
hiring.cafe __NEXT_DATA__ JSON
curl_cffi API path, browser fallback
~46 ATS platforms · 0 LLM tokens
Store · SQLite
jobs + dedupe
application state machine
normalized answer cache
Prepare · the LLM stage
letters from a verified facts bank
new questions cached forever
Haiku / Sonnet · on-demand only
Submit · human-gated
dashboard review · dry-run default
atomic claim + per-ATS daily caps
empty-form guard · POST evidence
Fig. 1 — the LLM appears in one column. Indexing is token-free; submission is human-gated.

Prepare writes tailored cover letters from a template plus a facts bank of verified achievements, and answers genuinely new screening questions — cached, so each novel question costs one cheap call ever. Letters are only generated when the form actually has the field. Keyword scoring is free and always on; fit is shown as a band (Strong / Possible / Stretch), never a raw percentage, and a keyword-only score is capped at Possible because it isn’t the real signal. The token math: Haiku 4.5 at $1/$5 per million tokens and Sonnet 4.6 at $3/$15, on-demand only and prompt-cached — realistic spend is low single dollars per ~100 applications. Seven ATSes get clean auto-fill adapters (Greenhouse, Workable, Ashby, Lever, SmartRecruiters, Pinpoint, Teamtailor), with Workday as an assisted flow.

The submit side is deliberately paranoid. Approval claims are a single conditional SQL UPDATE — atomic, never get-then-check-then-set. Dry-run never clicks. submitted is terminal. Per-ATS daily caps derive from the database including in-flight rows, and a process lockfile stops CLI and dashboard live runs overlapping. An empty-form guard runs before any claim: a résumé upload field, core identity fields, and a locatable submit control must all exist, or the job routes to the needs-you lane — and the guard’s teeth are mutation-tested: revert it to name-and-email logic and a newsletter Subscribe page goes submitted again. Confirmation requires success text and positive POST evidence, with a screenshot as proof. The generic-LLM fallback adapter reads form structure only — answers always come from the bank, never invented.

Anti-bot is its own decided posture: Patchright — a Playwright fork that patches the Runtime.enable CDP leak that trips Vercel’s challenge — driving real installed Chrome with a warm persistent profile, no stealth-plugin stacking (itself a tell), and an API-first fallback chain: curl_cffi with a warm cookie, then browser, then offline, then an honest BLOCKED message. The docs give it honest odds: roughly 60–80 percent. It’s cat-and-mouse.

§ 4 · Results

Zero applications sent — and that's the result

The full loop runs live. The hiring.cafe bot wall (Vercel Attack Challenge Mode, Code-21) was beaten on 2026-07-01 — the no-browser API path won, pulling 72 first-page hits into 15 stored quant jobs. On the real 57-job sample, auto-fillable coverage rose from 7 to 18 as adapters landed, and a real Greenhouse apply page parsed at 36 fields with correct selectors.

Auto-fillable · of 57
18
7

■ after adapters   ■ before adapters

Fig. 2 — auto-fillable jobs out of the real 57-job sample, before and after the adapter build-out.

The most honest result is what did not happen: two supervised live runs on 2026-07-01, zero applications sent. Run one exposed that every adapter parsed only the top frame — a Greenhouse iframe embed and a Workable job-view page parsed empty, “verified” vacuously, and timed out at the click. Safety held; the delivery layer was a gap. After Phase 12-A fixed frame resolution, run two got the resolver to the real 21-field Greenhouse iframe form — and revealed that Prepare still built the package against the wrong surface. Both runs ended with zero unsafe clicks, and both produced a precise, test-gated fix plan.

$ deep-review --target live-submit
[✓] trust build WP1–WP7 PASSED
[✗] round 1 · first live submit cap bypass · false confirm
[✓] round 2 · fix verification fixes reverted to prove tests
[✗] round 3 · unsupervised volume confirm heuristic
[✗] phase 12-A · frame delivery résumé-less false-click
[✓] 12.1 close-out 333 green
CLEARED for supervised send · 0 live submissions to date.
every NEEDS-FIX reproduced a real bug against committed code; every fix shipped with a would-fail-if-wrong test.

Four rounds of multi-agent adversarial review (5-, 8- and 10-agent panels) reproduced real money-path bugs against committed code — a per-day cap of zero being silently bypassed, a hash-routed SPA fragment change accepted as submit proof, a résumé-less package clicking a newsletter Subscribe button — and every fix shipped with a would-fail-if-wrong test. The suite ended at 333 green.

§ 5 · What it taught

Fixtures lie; heuristics decay

  • Synthetic fixtures lie. The suite was green at 300+ tests while the adapters couldn’t reach a single embedded form, because every fixture was a hand-built direct page. The fix was captured real-HTML fixtures — direct and embed — so “working” is testable offline.
  • Reviews exercised functions and endpoints but missed a broken --config flag on the CLI’s --live path, because nobody had run the actual command.
  • Heuristics on the money path decay under adversarial pressure. “Submit control detached” as confirmation evidence died to multi-step forms; “any same-site POST” both false-positives on analytics and false-negatives on custom-domain pages POSTing cross-site to the ATS backend. The robust fix — matching the actual submit endpoint — needs data only a real supervised send can capture.
  • The design bet held: keeping the LLM out of the browser meant every live failure was deterministic, reproducible, and cheap to diagnose.
§ 6 · What's next

First real submission, then breadth

Prompt 12.2 threads the frame resolver through the Prepare stage — the confirmed root cause is that the prepare pipeline parses the top page, not the resolved form root — plus real-DOM tuning: following Workable’s view-to-Apply step and recognizing Greenhouse’s Attach résumé label. Then the supervised dry-run-to-live re-run on the same two jobs, capturing the first real submit POST to write the robust confirmation matcher. Phase 12-B extends to international ATSes (Personio, Bayt, regional Workday and SuccessFactors instances) after a cited research pass.

Deliberately deferred, behind trust and shipping: scheduling and batching, stealth hardening, auto résumé tailoring. Deliberately not built at all: a hosted server — custodying other people’s credentials and PII and applying from one IP — and keyboard shortcuts, an accidental-submit risk. Distribution is done (a uv launcher that brings its own Python, data kept outside the app folder, installed-Chrome channel); the open call is code-signing at about $10 a month versus shipping free with one SmartScreen warning. The repo is local and unpublished, so there is no public link yet; there are also no response-rate or interview numbers, because zero submissions means zero outcome data — the analytics loop is built and waiting.