← back to blog
WINbackend5min readmin

El Recrutador: tailoring resumes with AI without hallucinating experience

How I built a local-first system in Rust, Flutter, and Typst to triage job openings, stop LLMs from inventing metrics or tech stacks, render 1-page PDFs, and track real response rates via read-only IMAP.

Matheus Nunes PereiraSoftware Engineer

Asking an LLM to tailor a resume for a job description is easy. Stopping it from claiming you cut latency by 40% using a stack you have never shipped in production is the hard part.

When I started looking for senior remote roles, I ran into two recurring bottlenecks: fragmentation (dozens of tabs across Greenhouse, Lever, Ashby, Gupy, and remote boards) and busywork (adapting the same resume to each ATS while keeping it strictly to one page). Most off-the-shelf “AI resume builders” solve this by producing generic fluff packed with clichés and fabricated metrics.

So I built my own tool — not as a throwaway script, but as a full local-first, human-in-the-loop system.

One Rust core, four surfaces

Instead of coupling business logic to the UI, I isolated everything inside a single Rust crate (jh_core, ~12k lines of Rust with 100+ unit tests). That same core drives four surfaces:

A single Rust core powering four surfaces
  • Flutter Desktop App (via flutter_rust_bridge): keyboard-driven inbox (j/k, a analyze, g generate CV), live PDF preview editor, application Kanban, recruiter CRM, and freelance tracker.
  • CLI & Background Daemon (jh daemon): runs via systemd, polls active sources on a schedule, triggers desktop notifications for high-score matches, and checks email replies.
  • Local HTTP Server (Axum) + Firefox Extension: token-authenticated on 127.0.0.1:47811. When viewing a job or recruiter profile in the browser, I can send it to the app with one click or open an assisted autofill panel across 20+ ATS platforms.

The anti-hallucination validator (profile_master.yaml)

The biggest risk of using LLMs on professional documents is silent fabrication. To prevent it, I flipped the model’s role: it does not invent facts — it selects and rewrites strictly from a single source of truth, profile_master.yaml.

Every experience, project, and bullet in the YAML has a stable id. When tailoring a resume, DeepSeek must return JSON referencing those exact IDs. Before any PDF is rendered, validate.rs runs a deterministic verification pass:

  1. ID integrity & ownership

    does bullet_id exist in the YAML, and does it belong to the experience or project it was placed under?
  2. Number & metric audit

    every number in the rewritten bullet must appear in the original bullet (excluding technology versions already in the profile, such as .NET 8 or C++20). If the original has no 40%, the model cannot invent 40%.
  3. Market tech & attribution checks

    any technical term mentioned must exist in the profile, and skills listed globally but absent from that specific entry raise a warning.
  4. Cliché filter

    empty buzzwords (“cutting-edge”, “leverage”, “synergy”, “passionate”) are flagged automatically.

If any blocking error is found, the app refuses to render and sends the exact list of violations back to the model for a second pass. If errors persist, it opens the manual editor highlighting what needs human review.

Embedded Typst: 1-page PDFs with zero external dependencies

Generating PDFs via HTML + headless Chrome is heavy and unpredictable around page breaks, while requiring a local LaTeX installation makes packaging painful. Instead, I embedded the Typst engine directly inside the Rust binary (typst + typst-as-lib + typst-pdf), bundling Liberation Sans in the assets.

The renderer enforces a strict 1-page layout: if the tailored content overflows, it steps down the body font size (9.5pt → 9.2pt → 8.9pt) and, if still needed, trims lower-priority bullets until it fits cleanly on one page.

Explainable scoring and read-only IMAP feedback

An opaque score is useless during triage. Each job receives a 0–100 score broken down in the UI under Why N?: technical skill coverage (weighting required vs. nice-to-have), title alignment, contract/seniority/remote fit, recency, and historical learning from my own actions (saved vs. discarded roles).

To close the loop and measure what actually converts into interviews, the core also connects over read-only IMAP (EXAMINE + BODY.PEEK, never marking messages as read or moving them), identifies replies from ATSs or companies I applied to, and classifies them into Rejected, Replied, or Interview. That feeds a conversion dashboard breaking down response rates by source, score bracket, CV language, and application speed.

What I learned

  • LLM reliability comes from deterministic code wrapped around the model. Prompting helps, but what makes the tool trustworthy daily is the validator blocking unsupported numbers and technologies before a PDF is ever written. - Isolating the core in Rust paid off immediately. Sharing the exact same engine across the Flutter desktop UI, the CLI, and the systemd daemon eliminated duplicated rules. - Embedded Typst is a hidden gem in the Rust ecosystem. Zero runtime dependencies, fast compilation, and exact pagination control.

The source code is available in the El Recrutador repository, including Arch Linux packaging (PKGBUILD + systemd user service).

In this post
Written by Matheus Nunes PereiraSoftware Engineer. Distributed systems, real-time telemetry and software that talks to hardware. If you have a problem like that, let’s talk.Software Engineer

Distributed systems, real-time telemetry and software that talks to hardware. If you have a problem like that, let’s talk.