Artifact ebb9371fc46a74e82a1fa2f3f55af597305ca65df68223b4e9a8c52ad5d2c2a6:
- File
docs/manual/differences-from-pi.md
— part of check-in
[c8bc1bfa6d]
at
2026-11-23 11:40:21
on branch ux-models
— Model choice says why and recovers from a refused key
With no saved default, pic starts on a provider whose key worked and passes over one that was refused, out of credit or limited; OpenRouter, Moonshot and DeepSeek start on inexpensive general models. The first screen (and stderr for ask and -p) names the model and why; with no key it says how to get one. The picker shows prices and key marks, lists keyless models once typed, ranks exact and prefix matches first, says what it saved and when the thinking level changes. After a refused key, Alt+P picks another model and the message returns to the editor for it. pic sessions shows each conversation's model and marks failed ones; pic models --json carries key; pic --version; pic help start opens with the user path. (user: dmestas, size: 6440) [annotate] [blame] [check-ins using]
# 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` and DeepSeek on `deepseek-v4-pro`; pic starts them on the inexpensive general `deepseek/deepseek-v4.1-flash`, `kimi-k2.6` and `deepseek-flash`. - 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) shows how to drive it from a phone 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. ## 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)).