Wrk.Dog

Install Huntaway

Let your assistant set it up, or do it by hand.

What you need

  • macOS or Linux. It's developed on macOS and tested on Ubuntu. It doesn't run on Windows.
  • Node.js 22.18 or later, and git.
  • Claude Code and Codex, installed: Anthropic's claude and OpenAI's codex.
  • One Claude plan and one ChatGPT plan. The setup uses one Claude account and one ChatGPT account, and you sign in to each yourself. A two-company review needs both.
  • On Linux: Claude jobs that change files run inside Claude Code's sandbox, which may need extra system packages. Claude Code's own documentation says which. Read-only jobs don't need it.

Each provider's terms apply to how you use your plan. Read them before you start.

Way 1: let your assistant set it up

This is the quickest way. Tell Claude Code or Codex (or another assistant that can run commands on your computer):

"Read SETUP-WITH-YOUR-ASSISTANT.md in github.com/wrkdog/huntaway and set Huntaway up for me."

  1. It checks first, and changes nothing. It looks at your system, Node.js, git, claude and codex, and whether any of the folders it would use already exist.
  2. It tells you what Huntaway will do, and asks. Nothing changes before you say yes.
  3. It shows each command before it runs it, and each file before it writes it. It uses no sudo and writes nothing outside your home folder.
  4. You do the two sign-ins yourself. It never handles a login.
  5. It proves it works with one small job on each account and one sample review.

The setup never stops or restarts a running Pipe. When a restart is needed, it asks you to do it in your own terminal.

Way 2: by hand

These are the same steps the setup file follows. pipe/README.md explains every one in full.

  1. Get the code. The Pipe has no runtime dependencies, so there's nothing else to install.
  2. Make the Pipe's own login folders, and sign in. The Pipe refuses Claude Code's and Codex's default folders, so its jobs never share your own sessions. You run the two sign-in commands yourself; each one opens your browser.
  3. Note your Claude login's fingerprint. The config pins each login folder to its sign-in by a short fingerprint. The setup file's section 3.3 prints Claude's.
  4. Write the config. It lists your Claude account and your ChatGPT account, the models the Pipe may use, and where it keeps its record and worktrees.
  5. Start it, pin Codex's fingerprint, and restart. The first start reports the fingerprint Codex's login actually has. Put it in the config in place of the placeholder, restart the Pipe, then check that both accounts show as available (setup file, section 3.5).
  6. Connect it to your assistant over MCP, with a small launcher that reads the Pipe's token when it starts, so the token never goes into your settings.
Step 1: get the code
$ git clone https://github.com/wrkdog/huntaway.git ~/huntaway
Step 2: the login folders, then your two sign-ins (run these yourself)
$ mkdir -p ~/pipe-logins/claude-a ~/pipe-logins/codex-a
$ chmod 700 ~/pipe-logins
$ CLAUDE_CONFIG_DIR=~/pipe-logins/claude-a claude auth login
$ CODEX_HOME=~/pipe-logins/codex-a codex login
Step 5: start it, wait until it answers, then read the accounts
$ nohup node ~/huntaway/pipe/src/cli.ts serve --config ~/pipe-data/config.json >> ~/pipe-data/serve.log 2>&1 &
$ for i in $(seq 1 30); do node ~/huntaway/pipe/src/cli.ts accounts --config ~/pipe-data/config.json >/dev/null 2>&1 && break; sleep 1; done
$ node ~/huntaway/pipe/src/cli.ts accounts --config ~/pipe-data/config.json

Steps 3 to 6 need your own paths and fingerprints: the fingerprint command, the config, pinning Codex's fingerprint and restarting, and the MCP launcher. Follow them in SETUP-WITH-YOUR-ASSISTANT.md, sections 3.3 to 3.6, rather than from here.

Prove it works

  1. One job on each account. A one-word, read-only check at low effort, once on Codex and once on Claude. Each wait must end with "state":"completed" and the answer ok.
  2. One review by two companies' models, of a sample commit in a small sample repository. Both seats must give a verdict: APPROVE, REVISE or REJECT.
The first check, on Codex
$ echo '{"requester":"setup","project":"huntaway-setup","kind":"chat","provider":"codex","model":"gpt-6.1-sol","effort":"low","reason":"setup check","prompt":"Reply with the single word: ok","mutating":false,"priority":"interactive"}' \
    | node ~/huntaway/pipe/src/cli.ts submit --config ~/pipe-data/config.json
# ID is the job's id, from what pipe submit printed: ID=…
$ node ~/huntaway/pipe/src/cli.ts wait "$ID" --config ~/pipe-data/config.json

Then the same with "provider":"claude","model":"opus". The sample review's commands are in the setup file, section 4.

Optional extras

Start at login

On macOS, the Pipe can run as a LaunchAgent so it starts when you log in. On Linux, run it under your own service manager, such as a systemd user service.

The skill

A Claude Code skill teaches your assistant how to use the Pipe and keep its rules in later sessions. Other assistants can read the same file.

The huntaway command

Asks one question and tells you plainly whether it ran. It can use the Pipe, or your own API key with dollar caps.

Install the huntaway command

This is the standalone way, with your own Anthropic API key. On macOS, huntaway key set stores the key in your macOS keychain; on Linux, set ANTHROPIC_API_KEY in your environment. Both caps are required. How the caps work.

The huntaway command, standalone
$ npm install -g @wrkdog/huntaway   # Node.js 22.18 or later
# or: brew install wrkdog/tap/huntaway   (Homebrew brings its own Node)
$ huntaway setup --standalone --alias "My Mac"
$ huntaway key set anthropic         # macOS: enter your key with echo off
# On Linux, set ANTHROPIC_API_KEY in your environment.
$ export HUNTAWAY_MAX_USD_PER_QUESTION=1
$ export HUNTAWAY_MAX_USD_PER_DAY=10
$ huntaway doctor

On first use, the package copies its code, read-only, under ~/.local/share/huntaway/app in a folder only you can read, and every run checks that copy against the package's checksums. The launcher uses no network and runs no shell.

To install from source instead: git clone https://github.com/wrkdog/huntaway.git ~/huntaway, then sh scripts/install-local.sh --standalone --alias "My Mac" in it. That installer copies the current commit, read-only, to ~/.local/share/huntaway/app, adds a huntaway command to ~/.local/bin, and uses no network and no sudo. If ~/.local/bin isn't on your PATH (it isn't on a new Mac), the installer says so.

To run questions on your plan through the Pipe instead, use huntaway ask --engine pipe, once the Pipe's MCP server is registered.

Update and uninstall

  • Update the huntaway command: npm install -g @wrkdog/huntaway@latest or brew upgrade huntaway. From source: git pull, then run the installer again.
  • Update the Pipe: first drain it (it lets running jobs finish, then stops the service). Wait until lsof -nP -iTCP:8123 -sTCP:LISTEN prints nothing. Then git pull in ~/huntaway and start it again. If drain errors, or the port is still busy after a minute, stop and look at the Pipe's log (setup file, section 3.5).
  • Remove the huntaway command: run huntaway uninstall first, then npm uninstall -g @wrkdog/huntaway or brew uninstall huntaway. From source, sh scripts/uninstall-local.sh. Both remove the code and keep your history. To delete the history too, use huntaway uninstall --purge-history (from source, sh scripts/uninstall-local.sh --purge-history).
  • Remove the Pipe: stop it with drain in your own terminal, remove the MCP registration (in Claude Code, claude mcp remove --scope user pipe), then delete ~/huntaway, ~/pipe-data, ~/pipe-logins and ~/huntaway-sample. If it starts at login, unload it first. The setup file's section 4 lists each step.

Next: what each result means, or questions people ask.