Skip to content

How WFHeaven was built

WFHeaven emails a short daily list of remote jobs that match a profile and the countries the person can work from. It's a docs-as-code portfolio project: the documentation, the decision records, and the review process matter as much as the code.

What runs today. Once a day, a GitHub Actions workflow collects new postings from three public job feeds, labels where each job can be done from, ranks the jobs for each tester with fixed rules, emails each one their top 10, and remembers the picks as keyed hashes so none repeats. Testers join through an invite-only demo site: they upload a CV, get Claude's draft profile, tune it in a chat, and sign up.

In numbers, on December 5, 2026: built in three days, from December 3 to 5, in 36 reviewed pull requests, with 381 tests. Ten of fourteen decision records are accepted, one is superseded, and three wait for live data.

Each step below says what was built (Coding), why it's shaped that way (Architecture), and how it connects to Knowledge-Centered Service, the KCS method for creating and maintaining knowledge while solving problems (KCS link).

Timeline

Step Date Pull requests Unit tests Decision
1. Docs-as-code foundation Dec 3 0001
2. Choosing the job sources Dec 3 #2, #3 0002
3. The collector Dec 3 #4 18
4. A local workflow with Claude Code Dec 3 #5
5. Daily collection on a schedule Dec 3–4 #6, #8, #9 0004
6. The ranker Dec 4 #10, #11 66 0005
7. Remembering picked jobs Dec 4 #12, #13 77 0006
8. The daily email Dec 4 #14, #15 100 0007
9. A third source, Remote OK Dec 4 #16 109
10. Location labelling Dec 4 #17, #18 183 0003
11. Docs audit Dec 4 #19 183
12. Region-restricted Himalayas jobs Dec 5 #20 192 0008
13. Tagging AI-training gigs Dec 5 #21, #22 212 0009
14. CV to profile with the Claude API Dec 5 #23, #24 238 0010
15. The invite-only demo site Dec 5 #27, #29–#36 381 0011–0014

Step 1: Docs-as-code foundation

Coding. Markdown in Git, built by MkDocs Material. Every pull request runs markdownlint, Vale with the Google developer style, lychee for links, and a strict build; a merge publishes the site to GitHub Pages.

Architecture. Docs are treated like code: reviewed, tested, and deployed in check, build, deploy order, so nothing broken goes live.

KCS link: the content standard, made enforceable, and content owned collectively through review.

Step 2: Choosing the job sources

Coding. No code. Each board's terms were checked for commercial use, storing data, collecting email addresses, and attribution. Himalayas and Jobicy passed; Remotive, We Work Remotely, LinkedIn, and Indeed didn't.

Architecture. The terms became design rules: each source's apply link, a credit on every job, Himalayas read at most once a day, no republishing, no scraping (ADR 0002, Job sources).

KCS link: structured, reusable knowledge, including what was rejected and why.

Step 3: The collector

Coding. A standard-library Python script reads the APIs and normalizes every posting into one Job shape. It drops old and expired jobs, removes duplicates, and saves a dated file. The tests run offline on postings shaped like real responses.

Architecture. Extract, transform, load. Everything downstream sees one shape, so a new source needs one new function (Run the collector).

KCS link: one shape for all data, like one template for all articles: KCS Structure.

Step 4: A local workflow with Claude Code

Coding. Claude Code, an AI coding agent, edits files, runs the CI checks locally, and opens pull requests. CLAUDE.md holds the project's rules.

Architecture. Problems are caught before CI, and the human is the reviewer: only the maintainer merges into main.

KCS link: rules inside the workflow are process integration; merging resembles KCS licensing, where a Publisher makes content final.

Step 5: Daily collection on a schedule

Coding. A scheduled workflow runs the collector, summarizes counts per source, and fails if a source breaks. The first run started two hours late, so the schedule moved to 10:37 UTC.

Architecture. The repository is public, so keeping the job file would republish the sources' jobs: ADR 0004 keeps nothing. The late run became a knowledge base article, The daily collection didn't run on time.

KCS link: the Solve Loop: capture while solving, structure, reuse, improve.

Step 6: The ranker

Coding. Rules, not AI. A profile file of weighted phrases drives it: jobs with senior titles, too many years required, or no target title are removed; the rest are scored on title, skills, and languages, and each pick shows why. Near misses suggest titles to add (Rank jobs).

Architecture. The profile is data, so one ranker can serve many people. The first live run kept 74 worldwide jobs and none fit, so ranking came before location labelling (ADR 0005).

KCS link: demand-driven: build what real use shows is needed.

Step 7: Remembering picked jobs

Coding. Picked jobs are stored as SHA-256 hashes of their IDs in the GitHub Actions cache, and dropped after 60 days. Logs show counts only, and a test checks it (Remember picked jobs).

Architecture. ADR 0006 chose the cache over a committed file or a secret gist: it stores the least and expires on its own. Public IDs can be hashed by anyone, so a keyed hash is planned before other users join.

KCS link: retiring stale data is content health.

Step 8: The daily email

Coding. Resend's API sends the picks, with the key and address as GitHub secrets. Each job has why it fits, the source's apply link, and its credit. A test email mode uses fictional jobs (Daily email).

Architecture. Picks are remembered only after sending succeeds, and an idempotency key stops duplicates on a rerun (ADR 0007).

KCS link: knowledge delivered in the workflow: the inbox.

Step 9: A third source, Remote OK

Coding. One more fetcher, built like the others, linking to the job's page on Remote OK as its terms require.

Architecture. Thanks to one Job shape, only the collector, the credits, and the docs changed.

KCS link: search early, search often: the sources page already had a note on Remote OK.

Step 10: Location labelling

Coding. Every job is labelled worldwide, restricted, or unclear, with the allowed places, any timezone requirement, and the evidence sentence. The profile's can_work_from list replaced "worldwide only" (ADR 0003).

Architecture. A fail-safe: when the rules aren't sure, such as with a negation or sources that disagree, the job is unclear and listed under Worth checking, never picked. An independent review found 15 issues, including negations read as permissions; each fix got a test.

KCS link: article states: Not Validated until confidence is earned. And reuse is review.

Step 11: Docs audit

Coding. No code. About a dozen pages had drifted: the home page said nothing was built, a diagram showed parts that didn't exist, and an API address was wrong. A thin article became a runbook, A job source returns no jobs.

Architecture. Each change updated nearby pages, but the overview pages went stale. That's docs drift; a scheduled audit is its regression test.

KCS link: content health, and flag it or fix it.

Step 12: Region-restricted Himalayas jobs

Coding. One extra daily query fetches Himalayas jobs restricted to countries that include Taiwan; the labeller checks Hungary and Japan.

Architecture. A job open in all three countries must list each, so one query for one of them finds every candidate. ADR 0008 compared four options by requests a day, and four real requests verified the assumption first.

KCS link: the decision stays Proposed until live runs confirm it, like a Not Validated article.

Step 13: Tagging AI-training gigs

Coding. Jobs are tagged as AI-training gigs from a list of companies and title words; Himalayas' own filter showed 57% of one job pool were such gigs. Each profile chooses to hide them, show them separately, or mix them in.

Architecture. Tag, don't remove: for some people these gigs are real income, for others irregular gig work (ADR 0009).

KCS link: make an item's type explicit, so readers judge for themselves.

Step 14: CV to profile with the Claude API

Coding. A local prototype sends one CV to Claude (Sonnet 5.5) and gets a draft profile, checked against the profile rules, plus remarks and 3 to 5 questions. On the maintainer's CV it found 7 of 11 hand-picked titles, for about USD 0.03. A hook and a CI test keep keys and CVs out of the repository (Draft a profile from a CV).

Architecture. AI runs once per CV, never daily. ADR 0010 records the cost and Anthropic's data terms. The prompt changed only for mistakes that would be wrong for anyone, not to match one CV.

KCS link: start from the person's own context, and ask before assuming.

Step 15: The invite-only demo site

Coding. A Cloudflare Worker in TypeScript at wfheaven.app, built and deployed in three phases on one day (Demo site):

  1. Upload and feedback. A personal invite link, a bot check, and a CV that Claude turns into a draft profile on a character sheet, with remarks and questions. The CV is read once and never stored.
  2. Sign-up and daily picks. The tester chooses countries, AI-training gigs, and a minimum salary, and confirms their email address. The daily run collects once and ranks and emails each tester, with an unsubscribe link in every email.
  3. The follow-up chat. Claude asks its questions one at a time, and each answer updates the sheet, with Undo. Claude Haiku answers, at about USD 0.014 for a full 20-message chat.

The screens follow mock-ups the maintainer designed and approved first. The Worker's tests fake every outside service, and a chat message uses 2 to 5 ms of CPU time on Cloudflare's free plan.

Architecture. Cloudflare for hosting and an EU database (ADR 0011), and the least personal data that works: no CV, no transcript, and no IP address stored, and sent jobs remembered as keyed hashes (ADR 0012). Email links are signed, and the daily run ranks per tester (ADR 0013). The chat stays in the browser and uses the cheaper model (ADR 0014). Every limit is checked before Claude is called, under a USD 5 monthly spend limit.

KCS link: capture knowledge in the person's own words, at the moment of need: the chat turns the tester's answers straight into their profile.

What I learned

  • Working closely with AI is a skill in itself. I learned to work alongside Claude and Claude Code: building a GitHub repository, shipping changes through pull requests, and documenting every step for future reference and improvement. The work was far smoother and faster than I expected.
  • Code and documentation change constantly. What surprised me most was how often both had to be updated. Even with a rule that every change ships with its docs, an audit after two days still found a dozen outdated pages.
  • AI peer review catches what one pass misses. Having Claude and Claude Code check each other's work, with me supervising both, caught many mistakes early, including a location rule that read "We cannot hire in Germany" as permission to hire there. It's the first thing I'll set up in my next project.
  • Knowledge management skills transfer directly. My KM background helped me structure the workflow, keep decisions and changes on record in chronological order, and write clear, efficient prompts for both agents. I also kept a private log of the whole process to learn the coding side and deepen my KCS knowledge.
  • Real data beats assumptions. More than half of one job pool turned out to be AI-training gigs, a market signal no plan predicted. Building from real data, not guesses, shaped most of the project's decisions.
  • Golden rule: nothing merges unread. Reading every change before merging keeps me aware of what's happening behind the scenes, makes documentation easier, and keeps both agents in sync with each other's work.

Explore further