# jobhunt Turns a job posting into a "target package": a summary, a fit assessment against a CV, and a cover letter draft. Go, standard library only. The thinking is done by the `claude` CLI with every tool disabled: it gets the CV and the posting text and returns JSON. ``` jobhunt bot watch a Discord channel for links or pasted postings jobhunt scan read the company feeds, post new matching jobs (run by a timer) jobhunt scan --dry-run list what matches right now: no Claude, no Discord, no notes jobhunt assess assess one posting (URL, file, or - for stdin) and print the note ``` Each package is posted to the Discord channel and written as a Markdown note into a notes folder (an Obsidian vault). The tool only creates notes; it never edits or deletes one. ## Where things are - `sources.go`: the company watch list and the title and location filter. - `prompt.md`: the instructions Claude gets. - `bot.go`, `discord.go`: the Discord side (REST polling, no gateway). - `scan.go`: the scheduled feed scan, remembers what it has seen in `seen.json`. - `fetch.go`, `extract.go`: reading a posting page. One plain request; sites that refuse servers are not worked around, the bot asks for pasted text. ## Configuration All through the environment: | Variable | Meaning | |---|---| | `JOBHUNT_NOTES_DIR` | folder the notes go into; the CV is `CV.md` in it | | `JOBHUNT_CV` | CV path, if it lives elsewhere | | `JOBHUNT_STATE_DIR` | cursor and seen jobs | | `JOBHUNT_DISCORD_TOKEN_FILE` | file holding the bot token | | `JOBHUNT_DISCORD_CHANNEL` | channel ID | | `JOBHUNT_DISCORD_OWNER` | the only user ID the bot listens to | | `JOBHUNT_SCAN_MAX` | postings assessed per scan run (default 10) | | `JOBHUNT_SCAN_MIN_FIT` | the scan only posts fit scores at or above this (default 60) | | `JOBHUNT_MODEL`, `JOBHUNT_CLAUDE` | model override, path to the CLI | ## Development ``` go vet ./... && go test -race ./... ``` Deployment lives in the NixOS flake (`hosts/vps/services/jobhunt`), which takes this repo as an input. After pushing a change here: ``` nix flake update jobhunt && just deploy ```