pr-inbox
A personal command-line PR review inbox across GitHub.com, GitHub Enterprise, and Azure DevOps.
Aggregates assigned PRs, tracks per-PR review state across sessions, and bootstraps a Copilot review session with full context.

pr-inbox is the harness for review-at-scale. It does not review code itself —
it tells you which PRs need attention, what changed since the last time you
looked, and hands a fully-bootstrapped brief to the Copilot session that
will run the actual dual-model-review.

Looking for the "what can I do, when, why" tour?
→ USER_GUIDE.md — end-to-end walkthroughs of every surface.
Why this exists
Reviewing many PRs at scale across three platforms with two identities is
manual. The pain is not the review skill itself — that's mature
(dual-model-review with gpt-6-sol + claude-sonnet-5.5, retaining the
cross-family diversity motivated by the historical N=6 runs).
The pain is:
| Pain | What pr-inbox does about it |
|---|
| No single inbox across GitHub.com / GHE / ADO | sync pulls all sources; list shows one unified view |
| Per-PR state lost between sessions (last reviewed SHA, posted comments, resolved threads) | Local SQLite registry; immutable snapshots; never hard-deletes |
| Re-entry cost — "let me check that PR again" rebuilds context from zero | review produces an immutable brief.md with diff-since-last + open threads + recent bot comments |
| Curation tracking (the 95%+ inline filter) is in your head only | Each review creates a recorded review run; curation lands in v0.2 |
| Convergence/asymmetry telemetry hand-counted | Append-only schema captures the data; queries land in v0.3 |
Status
v0.2 — working. Daily-driver against ~60 real PRs/day across GitHub.com,
GitHub Enterprise, and Azure DevOps. Multi-identity GitHub.com (e.g. a
personal + an EMU account) is supported via the Web UI Settings picker.
The surface-by-surface walkthrough — CLI verbs, Web UI pages, publisher —
lives in USER_GUIDE.md.
Out of scope (deferred): followup verb, convergence/asymmetry
telemetry dashboards (data is captured, queries land in v0.3).
How it works
flowchart TD
subgraph adapters ["Source adapters · IPrReadSource"]
direction LR
GH["GitHub.com"]
GHE["GitHub Enterprise"]
ADO["Azure DevOps"]
end
subgraph registry ["SQLite registry · %APPDATA%\PrInbox\pr-inbox.db"]
Tables["pull_requests · pr_source_bindings · pr_snapshots<br/>observed_threads · review_runs · posted_reviews<br/>sync_runs · ui_preferences"]
end
subgraph verbs ["Verbs"]
direction LR
Sync["sync<br/>refresh registry"]
List["list<br/>triage table"]
Review["review<br/>brief.md + immutable run dir"]
Config["config<br/>identities · projects · doctor"]
end
adapters --> registry
registry --> verbs
Credentials — delegate, never store
pr-inbox does not store tokens, ever. It delegates to the credential
authorities you already use:
| Source | Token path |
|---|
| GitHub.com (default identity) | gh auth token --hostname github.com |
| GitHub.com (explicit identity) | gh auth token --hostname github.com --user <login> |
| GitHub Enterprise | gh auth token --hostname <ghe-host> (with --user <login> for explicit identity) |
| Azure DevOps | Azure.Identity.AzureCliCredential (uses az under the hood; resource 499b84ac-1321-427f-aa17-267ca6975798) |
Why: no PATs to manage, no secret storage to harden, no leakage risk. Tokens
are minted on demand and never written to disk by this tool. When a gh.com
source is bound to an explicit identity, the token provider pins
gh auth token to that login so two same-host sources (e.g. personal +
EMU) fetch with the correct credentials independently.
Per-PR identity
| Platform | Display identity | Stable identity (durable key) |
|---|
| GitHub.com | gh.com:owner/repo#N | gh.com:<repo_id>#<pr_id> |
| GitHub Enterprise | ghe.<host>:owner/repo#N | ghe.<host>:<repo_id>#<pr_id> |
| Azure DevOps | ado:<org>/<project>/<repo>#N | ado:<org>/<projectGuid>/<repoGuid>#N |
Display id is what humans/commands use. Stable id is the join key the registry
trusts when repos/projects rename.
Review handoff