Progress
Updated at the end of every milestone. See PLAN.md for the plan and decisions.
| Milestone | Status |
|---|---|
| M0 Skeleton | done |
| M1 Claude + agent layer | done |
| M2 Profile | done |
| M3 Scanning | done |
| M4 Documents | done |
| M5 Email | done |
| M6 Applying | done |
| M7 Packaging | not started |
| M8 Extras + polish | not started |
M0 Skeleton
Done
- pnpm workspace (
apps/engine,apps/web,apps/desktop,packages/*), TypeScript strict (+noUncheckedIndexedAccess), ESLint (typescript-eslint strict, noany), Prettier, Vitest. packages/shared: settings schema with the spec §8 defaults, application status machine, domain schemas (profile, facts, style, search profile, jobs, matches, emails, documents), text normalisation and similarity helpers, structural diff.packages/db: Drizzle schema for every spec §4 table plus task runs, HTTP cache, domain budget, scan runs, apply runs, notifications, auth sessions; initial SQL migration; settings and events repositories.apps/engine: config (desktop / server / dev), pino logging with key redaction and secret scrubbing, secrets store (OS keychain, AES-256-GCM file, memory), Fastify server with/api/health, settings, notifications, summary, WebSocket invalidation hub, static web UI with SPA fallback, esbuild bundle with a check for undeclared runtime dependencies.apps/web: React 19 + Vite + Tailwind v4 shell with the mockup's design tokens (light + dark), sidebar navigation, routes for all screens, chat panel, notifications, i18n (EN, DE, PT, ES, FR) with a key-parity test.- GitHub Actions CI (lint, typecheck, tests, prompt tests, build, e2e).
Known issues
- Screens are placeholders until their milestones.
M1 Claude + agent layer
Done
- Claude subscription as the default: login detection by asking the bundled official Claude Code binary (
claude auth status --json); the UI shows the official login command and a "Check again" button. No credentials are read or stored. In server mode the login lives in the data volume (CLAUDE_CONFIG_DIR=/data/claude). - API key (OS keychain / encrypted file), Anthropic-compatible endpoints (base URL + key), OpenAI-via-proxy marked experimental.
runTask()(theAgentRunner): routes each task to its model, renders the versioned prompt with the output JSON Schema, validates with Zod, runs deterministic checks, retries once with the errors, records tokens and estimated cost intask_runs, failures visible in Diagnostics.- Two backends: Agent SDK (built-in tools disabled, only Jobhunter MCP tools / web tools,
settingSources: [],permissionMode: dontAsk) for everything in subscription mode and for agent loops; Messages API with structured outputs and server-side refusal fallback for single-shot tasks in API-key mode. Small tasks are batched. - Monthly budget gate: non-essential tasks pause with a single notification.
- Prompt files with front matter, partials (shared truthfulness rules) and strict placeholders;
pnpm test:prompts(replay by default,--live/--recordlocally). - Settings UI: language, Claude account, model routing per tier and per task, budget. Diagnostics page (task runs, failures, source health, log download).
- Agent SDK end-to-end test: the real Claude Code binary runs against a local fake Messages API, so structured output, disabled built-in tools and MCP tool calls are verified in CI without network access or credentials.
Known issues / not verified
- Live model calls were not made in this environment (no account); run
pnpm test:prompts --livelocally. - The structured-output JSON Schema conversion drops numeric/length constraints (Zod still enforces them after the answer).
M2 Profile
Done
- CV upload (PDF via
unpdf, DOCX viamammoth, LinkedIn PDF export flag) →profile_extracttask → side-by-side review (extracted text left, every item to confirm / edit / delete right). Nothing is saved before review; a second import merges without duplicating roles. - Deterministic guard against invented content: every employer / institution and every number in extracted highlights must appear in the CV text (separator-insensitive), otherwise the task retries and then fails.
- Master profile with versions (
profile_versions+ diff), atomic facts derived deterministically from the confirmed profile (stable IDs), manual facts, interview facts. Only confirmed, non-deleted facts are available to writers. - CV interview: one question at a time, skippable, ends after the gaps are covered (max 15); the summary task may only use the user's answers (numbers are checked against the cited answer) and facts are saved only after the user confirms the summary.
- Writing style: samples per language →
style_analyze(examples must be quoted verbatim) → style profile; learned rules editable;{{style_profile}}text for writing prompts. - UI: onboarding wizard (language, Claude, CV, interview, style; search and email steps come with M3/M5), profile page (overview, application preferences, facts, interview, style), voice input component (wired up fully in M8).
- Cassettes for all four tasks; engine tests for upload → review → facts, interview, style.
Known issues
- Scanned (image-only) PDFs produce little text; the user is told to upload a DOCX or text PDF (no OCR in v1).
M3 Scanning
Done
packages/mcp-jobs:JobSourceinterface and adapters for Greenhouse, Lever (incl. EU), Ashby (with compensation), SmartRecruiters (with bounded detail calls), Workable, Recruitee, Personio (XML), Workday (public CXS JSON, HTML fallback), generic careers pages (model extraction, same-site pagination, bounded detail pages), RSS/Atom feeds and the Arbeitnow board API. Endpoint formats checked against the live public APIs on 2026-11-23; fixtures are synthetic.- ATS detection from careers URLs, from ATS widgets embedded in company pages, and by probing public APIs with slug guesses when only a name is given.
- Normalisation (titles, companies, locations, canonical URLs, content hash) and dedup (same ATS id or URL, or same company + similar title + similar location) — the second scan never creates duplicate cards (tested).
- Polite fetcher: honest user agent, robots.txt, one request per domain every 5 s, 60 pages per domain per day, ETag/Last-Modified, 6 h cache. Generic page extractions are cached by content hash.
- Matching: deterministic prefilter (exclusions, excluded companies, remote policy, locations, salary floor, posting language, role family) then batched
match_score; matches above the threshold appear in Found; optional auto-shortlist; one summary notification per scan; failing sources are logged with last success/error time. - Scheduler: wall-clock daily/weekly/interval jobs with catch-up after sleep (checks every minute and on resume).
- Search profile form + chat thread that proposes changes as diffs; global chat that answers questions from a pipeline snapshot and proposes search-profile, company or settings changes (applied only on confirmation).
- Pipeline board: six columns, drag and drop with mouse, touch and keyboard (arrow keys jump between columns), search, filters, manual "Add job", "Scan now".
- Settings: scan schedule and thresholds, search profile, companies (with discovery suggestions UI), job boards and feeds.
docs/ADDING_A_SOURCE.md. - End-to-end tests (Playwright) against a demo engine with synthetic data and recorded model answers (
pnpm --filter @jobhunter/engine demo): board, search, keyboard move, chat proposal, all screens render, phone layout.
Known issues
- Workday tenants vary; the JSON path is tested against a fixture of the public format only.
- The first scheduled scan after a fresh install happens at the next scan time; use "Scan now" right after onboarding.
M4 Documents
Done
packages/mcp-docs: four CV templates (Harvard Business School style, Modern, European, Compact), A4/Letter, photo/no photo, one/two pages, section labels in EN/DE/FR/ES/PT/IT, country conventions for CH, DE, PT, ES, FR, UK, US and MX (US/UK never use a photo; MX on Letter paper, never CURP or marital status). Cover letter template in the same visual family.- HTML → PDF with Chromium
page.pdf()(no JavaScript, no network); tests check selectable text, standard headings, one page for Harvard, under 1 MB. - Tasks
cv_tailor,cover_letter,form_answers,style_rules. Deterministic truthfulness: every bullet/paragraph/answer cites confirmed fact ids, numbers must appear in the cited facts (separator-insensitive, ignores "B2B"), employers/titles/dates/institutions are overwritten from the profile, missing salary/permit/notice answers become flagged gaps. - Application language: posting language (stored or detected), the UI language, or a fixed language.
- Package flow: shortlisting (by the user or auto-shortlist) drafts all three documents → Ready to apply + notification; failures return the card to Shortlisted with the reason on the timeline. Versions are kept; regenerate with an instruction; edit; approve.
- Style learning: every edit stores a before/after diff; after 3 edits the
style_rulestask proposes rules the user can accept (Profile → Writing style). - UI: job detail page (match reasons and gaps, status stepper, package tabs with PDF preview, editors, regenerate with instruction, apply myself / approve / apply with agent, timeline, email tracking, notes), Approvals page, CV templates tab with live preview using the user's profile, CV format settings, photo upload.
Known issues
- PDF fonts depend on the fonts installed on the machine (the Docker image installs Liberation/DejaVu).
M5 Email
Done
packages/mcp-email:EmailProviderinterface; Gmail API adapter (user's own Desktop OAuth client, loopback redirect + PKCE, onlygmail.modify, incremental sync viahistoryIdwith fallback, label creation); IMAP adapter (imapflow, Gmail app password, UID cursor,X-GM-LABELS); MIME parsing, quote stripping.- Pipeline: multilingual prefilter (ATS senders, applied-company domains and names, job-alert senders, EN/DE/FR/IT/PT/ES keywords) → batched
email_classify→ matching (reference ids, sender domains, company, role; ambiguous matches capped below the threshold) → status change (only aboveemail_review_confidenceand allowed by the status machine), timeline event, Gmail label; everything else → review queue. Only subject, a 240-character snippet and a body hash are stored. - LinkedIn job-alert emails parsed deterministically (Jobhunter never visits LinkedIn); other alerts via
alert_parse; both feed the scan pipeline. - No-response rule (daily, default 21 days; a later email still updates the status), daily digest for rejections, immediate notifications for interviews and offers, opt-in sent-mail style samples.
- UI: email connection (IMAP app password or Gmail API) in onboarding, Settings and Inbox; Review queue (assign/ignore); Inbox grouped by application; email settings (interval, confidence, no-response days).
- Eval: 55 synthetic emails in six languages (
fixtures/emails),pnpm eval:email: replay of recorded answers gives 100% classification, 45/45 correct links, 33 automatic changes, 0 wrong, 2 sent to review. Tests include a local fake Gmail API server. docs/GMAIL_OAUTH.md,docs/GMAIL_IMAP.md.
Known issues / not verified
- The ≥90% accuracy target has not been measured with a live model here; the recorded answers were written for the synthetic set. Run
pnpm eval:email --livelocally (and--recordto keep the results). - The IMAP adapter has no automated test (no local IMAP server in CI); the Gmail adapter is tested against a fake API.
- Gmail API sign-in in server mode needs an SSH tunnel or the IMAP option (loopback redirect).
M6 Applying
Done
packages/mcp-browser: persistent Chromium profile per user (portal logins survive; visible on desktop, headless in server mode), form reader (labels from<label for>, wrapping labels, ARIA, legends; radio groups; multi-step safe tagging), deterministic field mapping from the approved package and profile (name, email, phone, LinkedIn, current company, CV/letter uploads, cover-letter text, approved answers by topic), multi-step navigation (Next / Save and Continue) that stops at the final submit.- Safety stops: CAPTCHA (reCAPTCHA, hCaptcha, Turnstile, challenge pages), login walls (password fields, never typed), two-factor prompts, payment fields, error/expired pages, unknown required fields and consent boxes (always the user's decision).
form_filltask maps leftover fields onto the approved answers only (free text must be an approved answer verbatim; options must follow from one); everything else stays empty and flagged.- Auto-apply levels: off / prepare (default) / submit.
canAutoSubmit()(pure, unit-tested) requires level submit, score ≥ threshold, approved package (or auto-approve), site not excluded (linkedin.com always), under the daily cap, no blocker and no unknown required field; otherwise it falls back to prepare. - After submitting: confirmation detected, screenshot, status Applied, sender domains and ATS reference ids stored for email matching, audit event with screenshot. Prepared or stopped runs hand over with a screenshot, a notification and an "I submitted it" button.
- Mock forms (
fixtures/forms): Greenhouse-, Lever-, Ashby- and Workday-like (multi-step), CAPTCHA, login wall, unknown required field, posting page with an Apply link. Tests in real headless Chromium for the filler and for the full engine flow; Playwright UI e2e drafts, approves and prepares an application against the mock Greenhouse form. - Settings: auto-apply level, minimum score, daily cap, auto-approve, excluded sites (LinkedIn locked).
Known issues
- Real ATS forms vary (custom widgets such as React selects or date pickers); unknown widgets are left for the user. Tested only against local mock forms.
- The apply browser opens as its own Chromium window on desktop (embedding into the Electron window is planned in M7).
M7 Packaging
Done
- Server mode login (spec §2.7): one-time setup code in the log (or
JOBHUNTER_SETUP_CODE), one password stored as an argon2id hash,HttpOnly+SameSite=Strictsession cookie (Secureover HTTPS or with an httpsJOBHUNTER_PUBLIC_URL), double-submit CSRF token on every state-changing request (including the password change), 10 attempts per 15 minutes,JOBHUNTER_RESET_PASSWORD=1for a forgotten password. Sign-in page, plus a password change and sign-out in Settings → General. - Docker:
docker/Dockerfile(Playwright Noble base with Chromium, fonts, tini, non-root user,/datavolume, healthcheck, bundled Claude Code binary onPATHforclaude auth login),docker/docker-compose.yml(published on 127.0.0.1 only),docker/.env.example(master key for the encrypted secrets file). - Desktop: Electron 45 shell (
apps/desktop). It runs the engine in a utility process on a free localhost port, keeps running in the tray (Open, Scan now, Start at login, Quit), shows OS notifications, catches up after sleep viapowerMonitor, opens outside links in the default browser and downloads Chromium on first start.scripts/package.mjsstages a flat npm app, rebuilds the native modules for Electron and runs electron-builder (dmg/zip, NSIS, AppImage/deb). No asar, because the engine spawns bundled binaries. - Release workflow: tags
v*build the installers on macOS, Windows and Linux, push a multi-arch image to GHCR and create a draft release. CI now also builds the Docker image and smoke-tests it (health, 401 without login,claude --version, setup code in the log). docs/SERVER.md(setup, Claude login, SSH tunnel / Tailscale / Caddy, backups, variables),docs/PACKAGING.md.
Verified here
- Server package (
pnpm deployoutput + bundle) started with plain Node in server mode: health OK, API refuses without login, setup code → password → session works, UI served. - Linux unpacked Electron build started under Xvfb: engine starts in the utility process, SQLite (rebuilt for Electron) opens, the bundled Claude Code binary reports the login, and a Harvard CV preview PDF renders through Chromium.
- 142 unit tests, 32 prompt cases, 8 e2e tests (desktop, phone, apply), lint and typecheck pass.
Known issues / not verified
- The Docker image could not be built in this sandbox (its proxy blocks apt). CI builds and smoke-tests it; check the first CI run.
- macOS and Windows installers were not built here; the release workflow builds them. They are unsigned (signing certificates are paid), see
docs/PACKAGING.md. - The apply browser still opens as its own Chromium window instead of inside the app window. Playwright needs its own browser process with the persistent profile; embedding it in Electron would mean switching to Electron's CDP. The separate window is the accepted fallback.
M8 Extras and polish
Done
- Company discovery (weekly on Mondays, or Run now): an agent with web search and fetch finds employers that fit the search profile and returns them with a reason and a careers URL. LinkedIn is blocked three times over: a
PreToolUsehook refuses LinkedIn fetches and searches and adds LinkedIn to every search's blocked domains, the prompt forbids it, and storing drops any LinkedIn URL. Suggestions are deduplicated by name and website domain against every known, rejected or excluded company; you accept or reject them in Settings → Companies, or turn on auto-add. - Voice: local Whisper (
onnx-community/whisper-base, 8-bit, about 80 MB) runs in a web worker in the browser. Audio never leaves the device, and the ONNX runtime ships with the app, so the model is the only download. Download progress is shown. Browser speech recognition is the opt-in alternative, with a note that it may send audio to the browser vendor. Interview questions can be read aloud. Local Whisper is now the default voice option, but nothing downloads until you press the microphone. - Stats: funnel (found → offer), reply and interview rates by source and by target role, median time to first reply (from linked emails and email-driven status changes), model cost per task and per month, period filter. Single-hue bars with the numbers as text, tables that fit a phone.
- Your data (Settings): data folder and size, a zip export (consistent DB snapshot, files, profile and settings JSON; no secrets or portal logins) and Delete everything with a typed confirmation. That deletes all rows, files, the browser profile, logs and secrets; it keeps the server sign-in.
- MCP server
packages/mcp-pipeline:pipeline_summary,list_applications,get_application, plusupdate_statusandadd_notewith--allow-writes(through the state machine as the agent). Run withnode apps/engine/dist/main.js mcp. Tested with a real MCP client in memory and over stdio against the bundled engine. - Settings → General: voice and read-aloud choices, server password change and sign-out.
- Docs:
README.mdwith screenshots,docs/PRIVACY.md,docs/MCP.md;docs/CLAUDE_ACCOUNT.mdchecked (subscription, API key, compatible providers, costs). Every Section 9 document now exists. - The desktop app and the engine now share one default data folder.
Verified here
- 152 unit tests, 34 prompt cases, 14 e2e tests (desktop, phone overflow checks on six screens, apply), lint and typecheck.
- Real local transcription in headless Chromium with a recorded speech sample as the microphone: correct transcript in 10 s, including the first model download. The only outside hosts contacted were Hugging Face (the model).
Known issues / not verified
- Discovery has only been run against recorded answers; the quality of live suggestions is not measured.
- Whisper speed on older phones (server mode over a phone browser) is untested;
whisper-basemay be slow there, and browser speech recognition is the fallback. - The PDF preview iframe is blank in headless Chromium (no PDF viewer); real browsers and Electron show it.
- No release tag has been pushed. Pushing
v0.1.0runs the release workflow, which publishes the GHCR image and a draft release; that is left for the owner after the local live test.