PERSONAL PRODUCT · MACOS DESKTOP APP
cvitae
ROLEIndependent Product Builder & Agent-runtime Architect
cvitae is a macOS app for a job hunt that an agent does most of the work in. It keeps a bilingual CV, searches job boards, prepares each offer with a tailored CV, and fills application forms in a built-in browser, stopping before Send. I built the Flutter desktop app and the agent runtime behind it.
Explore cvitae on GitHub01
The product
The app follows the order a job hunt actually happens in: collect a CV and the facts behind it in English and Polish, search the boards, keep the interesting offers on a board, tailor the CV to one of them, apply, and track what comes back. Resume, Discover and Board carry that flow, and a built-in browser handles the applications.
Every action on an offer is a visible step with its result and its retry: capture the posting, detect its language, copy the matching CV, read the requirements and tailor the Summary. A model may select, order and reword existing evidence, but it may not invent career facts, and the person decides per step whether it runs by itself, asks first or is left to them.
Application assistance fills a form with the facts of the prepared CV and attaches the exact PDF the Board shows. The agent decides which controls it may press by what they are, not by what their labels say, so the final Send always belongs to a person.
The screens below come from the app itself, running on its agent runtime over an invented candidate and invented offers.
02
What I built
- Built the Flutter macOS app: the Resume, Discover and Board workspaces, a registry of panels and workspaces, an English and Polish interface, and light and dark themes driven by one token system.
- Designed the Board as a pipeline of visible steps with a behavior per step (Automatic, Ask first or Do manually), defaults in Settings and overrides for a single offer, plus exact records of what was submitted, when, and with which CV file.
- Built Discover: keyword searches across job boards collected by the runtime, an editable SQL query over the saved offers, stacking of duplicate listings into one opportunity, and a chat that answers from query results with citations.
- Built application assistance in a native WebKit window with its own website sessions, where the agent fills forms and attaches the CV while review and Send stay with the person.
- Designed and implemented the standalone Node 24 agent runtime that the app supervises over NDJSON on stdio: its capability system, SQLite persistence, recovery behavior, provider boundaries, CV search index and streamed runs.
- Kept the codebase honest with checks that run in CI: import-layer rules, a design-token checker, a channel contract against the shipped runtime, and golden tests.
03
Agent-runtime architecture
The runtime is deliberately subject-agnostic at its center. CV and job-search knowledge lives in capabilities; the engine only understands validated runs, staged plans, bounded steps, effects, and checkpoints.
1. Adapters accept intent
The desktop app talks to the runtime as NDJSON over stdio; a browser host and a CLI reach the same capabilities. Files are opened at the adapter boundary and passed as bytes, so runtime inputs cannot name arbitrary filesystem paths.
2. The composition root builds one runtime
The runtime layer wires capabilities, provider effects, tool registry, retrieval, document storage, approvals, and SQLite-backed run storage. No other layer assembles global dependencies.
3. Router and planner constrain the job
The router validates input against the selected capability. The capability then creates a declared plan of stages and steps, including any bounded tool loop it genuinely needs.
4. The orchestrator controls execution
Stages run with explicit concurrency, deadlines, cancellation, and degradation rules. Each step receives a frozen snapshot of completed work, preventing sibling timing from changing its context.
5. The executor crosses controlled boundaries
A step can transform local data, extract structured output, generate bounded prose, or enter a capped tool loop. External calls live behind effects; model tools expose only the narrow operations granted by the capability.
6. Checkpoints make the run recoverable
Run state is canonical in SQLite. State transitions and their ordered events are committed together, while external attempts are recorded before execution so recovery never guesses whether it is safe to repeat a side effect.
Structural safeguards
- The core engine imports no CV or job-search domain knowledge.
- Context is explicitly budgeted and frozen per step.
- The executor does not retry blindly; the effect that understands an error owns retry policy.
- Mail is intentionally unavailable to capabilities and model-facing tools; delivery stops at a human-reviewed draft.
- A missing external-call outcome suspends for a person instead of risking duplicate work.
- The desktop app gives every call a deadline and replaces a runtime that goes silent, with capped backoff.
04
Product screens
Swipe, drag, or scroll to explore. Click a screen to enlarge it.