Artifact 85764c621d6f8e506b3dfff2daff496f16cdc08fc021d977003a2ed9a03fafb4:
- File
docs/manual/differences-from-pi.md
— part of check-in
[da4167d308]
at
2026-11-23 14:34:25
on branch rc-screen
— /rc: one step to the phone, like Claude Code's /remote-control
With a phone paired, /rc turns remote control on and shows a short panel: whether it is on and connected, this conversation's link for the phone page (/#s=JOURNAL/SESSION, &c=PHONE when one phone is paired) and a QR code of it, and the paired phones; c copies the link, s turns it off or on, p pairs another. With no phone paired, /rc goes straight to pairing; Esc there returns to the conversation. remote.invite is named only when pairing fails without it.
ssh leaves the main screen: /rc ssh and pic rc --ssh show the ssh command and its checks as text, with no QR code. pic rc prints the phone's link and its QR code, pic rc --link the link alone.
The footer says "remote on" while pic remote is connected (checked every 10 s), as Claude Code shows "/rc active".
Fixes: pic remote marks its stream connected on the relay's 200 (http.c's new on_head callback) rather than on the first body byte, so /rc no longer says "connecting" for up to 15 s; after pairing /rc no longer tells you to run pic remote when it already runs.
Tests: test/tui/rc.sh (fake relay and phone: unpaired pairing screen, invite, paired link and QR, connected at once with a quiet relay, footer marker, s, pic rc, pic rc --ssh, /rc ssh); http's on_head; tui.sh, grapevine.sh and remote.sh updated for the new screens. (user: dmestas, size: 6640) [annotate] [blame] [check-ins using] [more...]
# Differences from Pi pic does what Pi does. Where it does something differently, or leaves something out, it is listed here. ## Sessions and state - A session is a conversation in the journal, not a file; `pic export --pi` writes Pi session lines when you need them. - pic has no extensions. Subscription sign-in covers OpenAI's Sign in with ChatGPT and OpenRouter; Pi's other sign-ins reuse first-party client ids or are refused by their providers' terms, so pic leaves them out ([subscription sign-in](sign-in.md)). - `--resume` or `-r` opens the conversation picker inside the terminal interface, where Pi shows its picker before the interface starts; leaving the picker with Esc starts a new conversation where Pi exits. With `-p` or `--mode json` it is an error: use `-c` or `--session ID`. - `--no-session` keeps the conversation in a throwaway journal, a directory under `TMPDIR` that pic removes when it exits (a killed pic can leave it behind). pic is durable, so a crash mid-request loses the request, the one thing the journal exists to prevent; and `--db` is ignored. Nothing of the conversation is exported for ctx. - `--session-id ID` takes Pi's id rules (letters, digits, `.`, `_`, `-`, at most 63 bytes here) and joins the conversation with exactly that id, or creates it. Without the flag pic's own ids are eight hex digits. In `-p` and the terminal interface only. - `/import` and `pic import` keep the text of a Pi session's messages, not its tool calls, images or other entries. - Settings are pic's own, in `~/.pic/pic.sqlite`; there are no project-level settings files. - Pi has no rewind. pic's `/rewind`, `pic rewind` and the RPC command `rewind` go back to an earlier message and restore the conversation, the files write and edit changed, or both ([rewind](rewind.md)). Esc twice on an empty editor opens it, where Pi opens `/tree`; the setting `doubleEscapeAction` takes Pi's back. ## Skills - The skill list in the system prompt has a budget (`skillBudget`, by default 1% of the context window x 4 characters). Over it, long descriptions are cut and the least used skills are listed by name only, with a warning; Pi lists every skill in full. ## Tools - `write` replaces a file unconditionally in Pi. In pic it is refused once, with the file's current text, when another conversation running in the same project changed the file after this one last saw it; writing again replaces it ([tools](tools.md#a-file-another-conversation-changed)). It cannot happen with one conversation at a time. ## Models - With no saved default, Pi takes the first provider in its list that has a key; pic prefers one whose key worked last time and passes over one that was refused, is out of credit or is rate-limited ([models](models.md#choosing-a-model)). Pi starts OpenRouter on `moonshotai/kimi-k2.7-code`, Moonshot on `kimi-k2.7-code`, DeepSeek on `deepseek-v4-pro` and Anthropic on `claude-opus-5-5`; pic starts them on `deepseek/deepseek-v4.1-flash`, `kimi-k2.6`, `deepseek-flash` and `claude-sonnet-5-5`, which cost less. - pic says which model it started on and why: on the terminal interface's first screen, and on stderr for `ask` and `-p` (Pi prints nothing). `--mode json` and `--json` print nothing extra. - The model picker shows prices, marks keys, lists models with no key once you type, and ranks exact and prefix matches first; Pi's shows only models with a key, in fuzzy order. - After a refused key, the model chosen next gets the same message back in the editor. ## Modes - `--mode json` is `-p --json`: Pi's JSON events, with the prompt from the arguments, with or without `-p`. `--mode text` is the default and changes nothing. - pic has no MCP client: no `/mcp` and no `pi mcp`. - Pi's RPC mode is reachable only by the process that started it. pic also takes steers, follow-ups and aborts from any process (`pic send`) and shows a running conversation to any number of watchers (`pic attach`), through the journal; `/remote-control` (`/rc`, Claude Code's name) opens it on a paired phone, and `/rc ssh` shows how over ssh. Pi has no remote control: [remote control](remote-control.md). Pi has no remote control through a relay either: `pic remote` and pairing serve a paired phone end to end encrypted. ## RPC mode Where pic differs: a session is a conversation in the journal, so `sessionFile` is left out, `switch_session` takes a conversation id (or a file `pic export --pi` wrote) as `sessionPath`, and `get_entries` and `get_tree` cover the conversation's own path; a model or thinking change applies from the next request; `set_auto_retry` is saved as Pi's `retry.enabled`, which only RPC mode reads. pic has no extensions, so `extension_ui_response` is answered with an error that says so. Pi has no RPC commands for credentials; pic's `login` runs the browser sign-in (its messages on stderr, nothing pasted), `logout` removes a credential, and `get_auth_status` lists them; `get_credentials` and `set_credential` list a provider's keys with their state and pick one. pic never asks for the credential store's passphrase on a terminal in RPC mode: a `credential_locked` event and `unlock` take its place. ## Keys Pi keeps one credential per provider. pic keeps several, named, one active per provider, and remembers what the last reply said of each (refused, out of credit, limited until a time); a refused key stops the terminal interface's request with a prompt to switch key, model or wait. See [several keys](named-keys.md). ## The terminal interface - Images are attached and sent, but not drawn inline in the transcript. - Some default keys are Claude Code's rather than Pi's; [the key reference](../reference/keys.md) lists them with the reasons. - pic warns about a key two actions claim; Pi detects the conflict but shows no message. - Transcript search edits the query at its end only, its arrows are not clickable, and case folding covers ASCII, Latin, Greek and Cyrillic ([the terminal interface](tui.md#transcript-search-fullscreen)). - pic does not generate Pi's terminal-palette `system` theme ([themes](themes.md)). - `system` and `light/dark` ask the terminal for its background colour before falling back to Pi's `COLORFGBG` rule ([themes](themes.md)). - When a reply is ready and the window is not focused, pic rings the bell and asks for a desktop notification; Pi sends neither ([the terminal interface](tui.md#when-a-reply-is-ready)). ## Benchmarks - Trial labels have no place on a message in Pi's session format, so the Pi export leaves them out ([benchmarks](benchmarks.md)).