Pointhound

From mvanhorn/printing-press-library · View interactive version

Pointhound is an AI agent skill from the GitHub repository mvanhorn/printing-press-library. Every Pointhound flight search, plus a local SQLite of every deal you've ever seen, balance-aware reachability, and... Trigger phrases: `find award flight`, `redeem credit card points for flight`, `pointhound search`, `where can I fly with my points`, `check pointhound for new deals`, `use pointhoun

How to use this skill

Skill file

Pointhound — Printing Press CLI

Prerequisites: Install the CLI

This skill drives the pointhound-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:

  1. Install via the Printing Press installer. It defaults binaries to $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows:

```bash

npx -y @mvanhorn/printing-press-library install pointhound --cli-only

```

  1. Verify: pointhound-pp-cli --version
  2. Ensure the reported install directory is on $PATH for the agent/runtime that will invoke this skill.

If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer):

go install github.com/mvanhorn/printing-press-library/library/travel/pointhound/cmd/pointhound-pp-cli@latest

If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.

When to Use This CLI

Use this CLI whenever you need to compound award-search work: comparing multiple routes, tracking deals over time, asking balance-aware questions, or wiring Pointhound into a daily cron. The web UI is fine for one-off searches but loses everything when you close the tab; this CLI keeps every snapshot in a local SQLite for SQL queries, drift detection, and cross-route ranking.

When Not to Use This CLI

Do not activate this CLI for requests that require creating, updating, deleting, publishing, commenting, upvoting, inviting, ordering, sending messages, booking, purchasing, or changing remote state. This printed CLI exposes read-only commands for inspection, export, sync, and analysis.

Unique Capabilities

These capabilities aren't available in any other tool for this API.

Local state that compounds

_When an agent has a goal like 'plan a fall trip' and a balance fact like 'user has 450k transferable points', this command answers the multi-step optimization in one call instead of N searches._

```bash

pointhound-pp-cli from-home SFO --balance "ur:250000,mr:80000,bilt:120000" --cabin business --month 2026-10 --agent

```

_Agents reasoning about 'cheapest redemption' should ask in user-input units, not airline-output units. This command does the math._

```bash

pointhound-pp-cli compare-transfer chase-ultimate-rewards --search-id ofs_xxx --json

```

_Multi-search is the common case for travel planning; web UIs only do one search at a time._

```bash

pointhound-pp-cli batch --search-ids-file ~/routes.txt --throttle 1s --cabin business --json

```

_Travel agents and trip planners can ask 'best Europe deal this fall?' in one shot._

```bash

pointhound-pp-cli top-deals-matrix --origins SFO,LAX --dests LIS,FCO,LHR --months 2026-10,2026-11,2026-12 --cabin business

```

_Answers 'did anything change?' in one terse output, which is what an agent or human re-checker actually wants._

```bash

pointhound-pp-cli drift SFO LIS 2026-08-15 --since yesterday --json

```

_Trip-planning agents need a month picker, not a date picker, when the user says 'sometime next year'._

```bash

pointhound-pp-cli calendar --search-ids ofs_a,ofs_b,ofs_c --cabin business --json

```

Agent-native plumbing

_The agent-native equivalent of 'tell me when something changes' — exit-code-driven, suitable for any scheduler._

```bash

pointhound-pp-cli watch SFO LIS 2026-08-15 --cabin business --quiet && say 'new deal'

```

Service-specific patterns

_Lets an agent narrow the search space before fan-out: 'find me cheap deals from somewhere near NYC' becomes one command, not three._

```bash

pointhound-pp-cli explore-deal-rating --metro NYC --min-rating high --limit 5 --agent

```

_Quick lookup for 'can I get to United via Capital One?' without remembering the table._

```bash

pointhound-pp-cli transferable-sources united-mileageplus --json

```

HTTP Transport

This CLI uses Chrome-compatible HTTP transport for browser-facing endpoints. It does not require a resident browser process for normal API calls.

Discovery Signals

This CLI was generated with browser-observed traffic context.

Command Reference

offers — Flight offers returned for a search session

Finding the right command

When you know what you want to do but not which command does it, ask the CLI directly:

pointhound-pp-cli which "<capability in your own words>"

which resolves a natural-language capability query to the best matching command from this CLI's curated feature index. Exit code 0 means at least one match; exit code 2 means no confident match — fall back to --help or use a narrower query.

Recipes

Where can I fly in business this fall with my Chase UR?

pointhound-pp-cli from-home SFO --balance "ur:250000" --search-ids ofs_xxx --cabin business --month 2026-10 --json --select destinationCode,bestEffectivePoints,sourceIdentifier

from-home does the transfer-ratio math locally; --select narrows the response to four fields so an agent doesn't drown in offer detail.

Watch a tough route for a new deal

pointhound-pp-cli watch SFO HND 2026-12-22 --search-id ofs_xxx --cabin business --quiet

watch exits 2 only when something changes, so the && only fires on actual news. Wire it into launchd or cron.

What did SFO-LIS look like last week vs today?

pointhound-pp-cli drift SFO LIS 2026-06-15 --cabin economy --json

drift joins two snapshots in local SQLite and shows per-offer new/cheaper/disappeared status — the question that has no web-UI equivalent.

Best month to fly SFO-NRT in business

pointhound-pp-cli calendar --search-ids ofs_a,ofs_b,ofs_c --cabin business --json

Fan-out search across 12 months, groupby cheapest-per-month.

Which earn programs feed Aeroplan?

pointhound-pp-cli transferable-sources united --search-id ofs_xxx --json

Local lookup of Pointhound's transferOptions catalog. No web equivalent.

Auth Setup

Most of the CLI works anonymously — flight offer reads, filter facets, airport autocomplete, credit-card catalog. Only the top-deals-matrix and search commands need authentication, which happens via pointhound-pp-cli auth status — the CLI reads your existing Pointhound login cookies from Chrome (cf_clearance + ph_session) so no separate token is needed.

Run pointhound-pp-cli doctor to verify setup.

Agent Mode

Add --agent to any command. Expands to: --json --compact --no-input --no-color --yes.

```bash

pointhound-pp-cli offers list --search-id 550e8400-e29b-41d4-a716-446655440000 --agent --select id,name,status

```

Response envelope

Commands that read from the local store or the API wrap output in a provenance envelope:

{
  "meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
  "results": <data>
}

Parse .results for data and .meta.source to know whether it's live or local. A human-readable N results (live) summary is printed to stderr only when stdout is a terminal — piped/agent consumers get pure JSON on stdout.

Agent Feedback

When you (or the agent) notice something off about this CLI, record it:

pointhound-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
pointhound-pp-cli feedback --stdin < notes.txt
pointhound-pp-cli feedback list --json --limit 10

Entries are stored locally at ~/.pointhound-pp-cli/feedback.jsonl. They are never POSTed unless POINTHOUND_FEEDBACK_ENDPOINT is set AND either --send is passed or POINTHOUND_FEEDBACK_AUTO_SEND=true. Default behavior is local-only.

Write what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.

Output Delivery

Every command accepts --deliver <sink>. The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:

| Sink | Effect |

|------|--------|

| stdout | Default; write to stdout only |

| file:<path> | Atomically write output to <path> (tmp + rename) |

| webhook:<url> | POST the output body to the URL (application/json or application/x-ndjson when --compact) |

Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.

Named Profiles

A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.

pointhound-pp-cli profile save briefing --json
pointhound-pp-cli --profile briefing offers list --search-id 550e8400-e29b-41d4-a716-446655440000
pointhound-pp-cli profile list --json
pointhound-pp-cli profile show briefing
pointhound-pp-cli profile delete briefing --yes

Explicit flags always win over profile values; profile values win over defaults. agent-context lists all available profiles under available_profiles so introspecting agents discover them at runtime.

Exit Codes

| Code | Meaning |

|------|---------|

| 0 | Success |

| 2 | Usage error (wrong arguments) |

| 3 | Resource not found |

| 4 | Authentication required |

| 5 | API error (upstream issue) |

| 7 | Rate limited (wait and retry) |

| 10 | Config error |

Argument Parsing

Parse $ARGUMENTS:

  1. Empty, help, or --help → show pointhound-pp-cli --help output
  2. Starts with install → ends with mcp → MCP installation; otherwise → see Prerequisites above
  3. Anything else → Direct Use (execute as CLI command with --agent)

MCP Server Installation

Install the MCP binary from this CLI's published public-library entry or pre-built release, then register it:

claude mcp add pointhound-pp-mcp -- pointhound-pp-mcp

Verify: claude mcp list

Direct Use

  1. Check if installed: which pointhound-pp-cli

If not found, offer to install (see Prerequisites at the top of this skill).

  1. Match the user query to the best command from the Unique Capabilities and Command Reference above.
  2. Execute with the --agent flag:

```bash

pointhound-pp-cli <command> [subcommand] [args] --agent

```

  1. If ambiguous, drill into subcommand help: pointhound-pp-cli <command> --help.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.