spinner-recruit
v0.4.1
Published
Run `claude`, `codex`, or any terminal coding agent through spinner-recruit to see a one-line job ad in its own tmux pane while it thinks. You keep 50% of paid-ad impression revenue.
Maintainers
Readme
spinner-recruit (CLI)
Run claude, codex, or any terminal coding agent through this wrapper
instead of calling it directly:
npx spinner-recruit@latest claude
npx spinner-recruit@latest codexWhile it's thinking, a purple, clickable one-line job ad appears in its own
small pane below the agent's — the agent runs in a full, completely isolated
tmux pane and is never touched. Requires tmux — if it's missing, the
wrapper detects your package manager (Homebrew on macOS; apt/dnf/yum/pacman/
apk/zypper on Linux) and offers to install it for you on first run. If none
is found, or you decline, it just runs your command untouched with no ads,
rather than risk corrupting its display.
Usage
spinner-recruit pair <developerId> # one-time: link impressions to your account
spinner-recruit claude # run Claude as usual — everything is forwarded
spinner-recruit codex # same, for Codex
spinner-recruit <any other command> # works with anything that prints a "Thinking"/"esc to interrupt" marker
spinner-recruit optout # disable ads — no further network calls
spinner-recruit log # print every ad you've been shown (pay-dispute record / job links)
spinner-recruit install [tool] # make bare `claude` (or [tool], e.g. `codex`) always run through this wrapper
spinner-recruit uninstall [tool] # undo install for that toolThe first run shows a one-time opt-in prompt. Until you accept, the wrapper makes zero network calls and the wrapped command runs completely untouched.
install — make a bare command always go through the wrapper
By default you have to type npx spinner-recruit@latest claude every time. Running
spinner-recruit install (or spinner-recruit install codex) sets up a
small shim so that typing the plain command in any terminal — including VS
Code's integrated terminal — does the same thing automatically:
- It finds the real binary (
claudeby default, or whatever you pass) on$PATH. - It writes a same-named script to
~/.spinner-recruit/bin/, which setsSPINNER_RECRUIT_TARGETto that real path and forwards everything else tonpx spinner-recruit@latest. You can install shims for multiple tools at once (e.g. bothclaudeandcodex) — they share the same directory. - It appends a marked, clearly-delimited block to your shell's startup file
(
~/.zshrcon zsh,~/.bash_profileon bash) putting that shim directory first on$PATH. Re-runninginstallis idempotent — it won't duplicate the block.spinner-recruit uninstall [tool]removes that tool's shim file; it only removes the PATH block once no shims are left.
Add --dry-run to either command to see what would change without writing
anything.
This cannot reach a VS Code sidebar/chat panel for Claude Code, Codex, or
any other assistant with one — that UI never invokes a terminal command, so
there's no process to intercept. install only affects real terminal usage
(your terminal app, and VS Code's integrated terminal panel, which is just a
shell).
How it works
spinner-recruit claudecreates a tmux session and runsclaudedirectly as the session's only pane — a real, fully-isolated pane tmux owns, never touched by this tool.- A second small pane is split off below it, running this CLI's own ad renderer, which never writes anywhere except its own pane.
- The ad renderer polls Claude's pane every second via a read-only
tmux capture-panesnapshot and checks the last non-blank line for a "Thinking" marker. - The ad text is an OSC 8 terminal hyperlink, so a modifier-click (e.g.
Cmd-click) always works as a fallback. A plain click also works: tmux
mouse mode is on for the session, and the ad pane requests its own mouse
tracking, so tmux forwards a plain click on that pane straight to us —
we open the link ourselves the same way the hyperlink would have. Either
path hits
GET /api/go/[serveId]on the API, which bills the click and redirects to the real job URL. - We attach to the tmux session in the foreground; the session tears down when you detach or Claude's pane exits.
- Every ad actually shown gets one line appended to
~/.spinner-recruit/ad-log.jsonl(company, title, url, location, the serve ID, and whether it met the dwell threshold to be billed) — runspinner-recruit logto view it. It's a local paper trail: a cross-check against the platform's own impression ledger if a payout is ever disputed, and a way to find a listing again later.
Config
Stored at ~/.spinner-recruit/config.json:
{ "consented": true, "developerId": "<uuid>" }Override the API base URL with SPINNER_RECRUIT_API_URL (defaults to the
production API).
Build from source
npm install
npm run build # compiles src/ -> dist/, chmod +x dist/index.js
node dist/index.js claude