Artifact 9c2987ed03056802e581f10153f2c35084e751650679cb21c3114be5f7db991e:
- File
docs/manual/differences-from-pi.md
— part of check-in
[37a5984f8b]
at
2026-11-22 10:54:21
on branch pi-flags
— Add Pi's session flags: -r/--resume, --session-id, --no-session, --mode json|text
The system prompt now points the model at pic help. (user: dmestas, size: 3292) [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 and no subscription login. - `--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. ## 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. ## 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`. ## 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 or subscription login, so `extension_ui_response`, `login` and `logout` are answered with an error that says so. ## 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)). ## Benchmarks - Trial labels have no place on a message in Pi's session format, so the Pi export leaves them out ([benchmarks](benchmarks.md)).