Repository navigation
docs(cli): phone pairing guide - #2504
Conversation
User guide for pairing a phone with a daemon (pair offer --qr, fingerprint confirm, home screen, unpair, several daemons, troubleshooting, self-hosting), with screenshots of the pair page. Salvaged from wt/phone-pairing-guide (618ed84 + 125c47f, draft PR #1458 closed when its base #1457 merged). Adapted: the release caveat is gone (pair/v2 ships), the self-hosting anchor points at the current concepts/pairing.md heading, and the PDF export is dropped.
There was a problem hiding this comment.
Summary
Docs-only PR: adds docs/cli/guides/phone-pairing.md (147 lines) plus five phone screenshots under assets/phone-pairing/, and lists the guide in docs/cli/guides/meta.json after no-admin-install.
I checked the guide's concrete claims against the code they describe, and they hold up:
agentproto pair offer --qr/--pair-page/ configpairing.pairPage— matchpackages/cli/src/commands/pair.tsandpackages/cli/src/__tests__/pair-offer-qr.test.ts(including{fp}hostname-only template and--pair-pageoverriding config).- 32-hex fingerprint / one origin per daemon — matches
docs/cli/concepts/pairing.md:72-75and the 32-char fingerprint inpair-offer-qr.test.ts. <fingerprint>.agentproto.cloudorigins and the retiredcli.agentproto.sh16-hex warning — consistent withpackages/pair-pagehost classification and the retired-origin note inpackages/runtime/src/__tests__/origin-allowlist.test.ts.- UI wording: "Forget" / "Forget this daemon" / "wrong address" / "unreachable" all appear in
packages/pair-page/src/pages/{pair,status}.ts; the 404-for-non-fingerprint-host claim matches the worker's host check. agentproto pair ls/pair revoke <name>andagentproto rendezvous serveexist as documented (docs/cli/verbs/pair.md,docs/cli/verbs/rendezvous.md).- Relative links resolve:
../concepts/pairing.md,../verbs/pair.md,../verbs/rendezvous.md, and anchors#2-prerequisites,#8-self-hosting-short,#the-phone-pair-page-one-origin-per-daemonall exist. All five PNGs are valid 390x844 images and all are referenced exactly once.
docs-check.mjs could not complete inside a 120s timeout in this sandbox (network), but the targeted agentflow/docs.mjs --check passed ("docs in sync"), and the guide is prose-only (no generated verb reference to drift).
Changeset
None owed — node scripts/list-changed-packages.mjs prints nothing (only docs/** changed), so no publishable package is touched.
Findings
- low —
docs/cli/concepts/pairing.md:381: the Status section still lists "the mobile deep-link page and the pairing spec, AIP-59" under Still to come, while this new guide documents that page as shipped and links AIP-59 as if published. Worth flipping the deep-link-page bullet to Shipped so the two docs don't contradict each other. - low —
docs/cli/guides/phone-pairing.md:78: the quoted UI string is "Connecting…", but the actual status title isConnecting to <daemon>…(packages/pair-page/src/pages/status.ts:76). Quoting it exactly (or dropping the quotes) avoids users hunting for a string that isn't shown verbatim. - low — the
wrong-address.pngscreenshot embeds two real daemon fingerprints (e77b6d…,baa5e744…). Fingerprints are public identifiers, not secrets, so this is informational only; regenerating with placeholder values would be tidier.
Verdict
Approve. Accurate, well-linked, no package/API surface touched; the findings above are documentation-consistency nits, not blockers.
🤖 @agentproto-bot — review · session sess_7586650c (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode/deepseek-v4.1-flash-free · supervisor sess_4789e86d · $0.0000 · run 41701896556 · sha 5054b89a9fb588050a676219795c9253e0d2cc77
What
New guide
docs/cli/guides/phone-pairing.md, "Use agentproto from your phone":agentproto pair offer --qr, fingerprint confirmation, add to home screen, unpair (pair revokeand Forget on the phone), several daemons (one<fingerprint>.agentproto.cloudorigin each, the "wrong address" screen), troubleshooting, and self-hosting the pair page and rendezvous. Five pair-page screenshots underdocs/cli/guides/assets/phone-pairing/. Registered indocs/cli/guides/meta.json.Checked against current main: the
pair ls/pair revoke <fingerprint|name>verbs (docs/cli/verbs/pair.md), the per-daemon pair page andpairing.pairPage(docs/cli/concepts/pairing.md), the hosted rendezvouswss://rdv.agentproto.sh/v1, and the pair-page screens it names (packages/pair-page/src/pages/status.ts,pair.ts: Forget, wrong address, Connecting).Salvage
From
wt/phone-pairing-guide(worktreephone-pairing-guide), commits618ed8444and125c47f2c. They were draft PR #1458, stacked on #1457; #1457 merged and #1458 was closed with its base instead of being retargeted, so the guide never reached main. Adapted rather than cherry-picked:#self-hosting-the-pair-pageanchor that does not exist; it now targets#the-phone-pair-page-one-origin-per-daemon;Docs only, no changeset.
node scripts/agentflow/docs.mjs --checkpasses.🤖 @agentproto-bot — PR · session
sess_0d840a9f(salvage triage: held worktrees (usage-presets, chrome-live, ...)) · claude-code / subscription · auth-profileAnthropic Subs Hodl· modelclaude-opus-5-5· 148 in / 36.8k out · $3.1510 (daemon) · hostmac.home· cwdagentproto/salvage-triage-worktrees