Stateless GitHub activity summary. Compact, LLM-friendly output.
uv tool install ghp
# or
uvx ghpuv sync --group dev
uv run ghp --versionghp # open issues + PRs snapshot
ghp 1h # deltas since 1 hour ago
ghp 2026-03-07T14:00:00Z # deltas since timestamp
ghp --json # machine-readable output
ghp --me @clod # highlight mentions
ghp --repo owner/name # explicit repo
# default delta cursor comes from .ghp-last-update-timestamp if present- Cursor defaults to
.ghp-last-update-timestampin the current working directory when--sinceis omitted. - Successful runs autosave the current timestamp back to
.ghp-last-update-timestamp. --sinceaccepts relative shorthands (30m,2h,1d,1w) and normalizes timestamps to canonical UTC.- Snapshot mode returns open issues and open PRs.
- Delta mode returns issues, PRs, issue comments, PR review comments, and recent commits since the cutoff.
- API or auth failures exit non-zero instead of silently pretending there was no activity.
--jsonprints a machine-readable payload; on failure it emits a JSON object with anerrorfield and exits non-zero.
Looks for tokens in this order:
$GITHUB_PAT$GITHUB_TOKEN$GH_TOKENgh auth token(gh CLI)
uv run python -m unittest discover -s tests
scripts/test-install.sh