# 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.
- A conversation can message another with the `send_message` tool, which Pi does not have. It is
offered by default beside Pi's four; `pic settings grapevine.sendMessage false` or `--tools
-send_message` leaves it out ([peers](peers.md)).
- 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.
- A conversation has a title, its name or else its first prompt's first line, shown in the footer
and at the right of the prompt box's top border (as Claude Code shows a session's name); Pi
shows only a name there.
- A conversation can have a [permission mode](permissions.md) that asks before tool calls, or
refuses changes; Pi has no permission prompts. The default, `allow`, runs every call as Pi does.
- `/import` and `pic import` keep the text of a Pi session's messages, not its tool calls, images or
other entries.
- Deleting a conversation in the picker is `d`, Delete or Backspace with no question asked, where Pi
asks to confirm Ctrl+D and removes the file; pic hides it, `u` undoes it, and it is purged for good
30 days later or with `pic sessions empty-trash` ([deleting](sessions.md#deleting)).
- 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
- `web_fetch` is pic's, not Pi's: it reads a public http or https page and returns its text, with
HTML turned into markdown. It is on by default beside Pi's four and `send_message`;
`--exclude-tools web_fetch` or `offline` leaves it out ([tools](tools.md#web-fetch)).
- `web_search` is pic's too: it searches through the model provider's own search, Brave Search
(`pic login brave-search`) or, with neither, Stack Overflow, and returns titles, links and
snippets. It is on by default; `offline` or `--exclude-tools web_search` leaves it out
([tools](tools.md#web-search)).
- `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.
- `grep` and `find` return files that ignore files list. Pi's run rg and fd, which honour
`.gitignore`, `.ignore` and `.fdignore`; pic's also read what `.zitignore`, `.fslignore` and the
ignore-glob settings list, because those files keep files out of commits, not out of a search.
Version-control folders (`.git`, `.zit`, `_FOSSIL_`, `.fslckout`) are still skipped. The RPC
command `list_files`, which feeds file pickers and completion, lists ignored files too
A `.picignore` (gitignore syntax) is the one ignore file they honour, and Pi has none
([tools](tools.md#search-ignores-nothing)).
## Models
- Pi starts a new conversation on its saved default model, and saves a pick only after a login or
when asked. pic saves every model you choose in the terminal interface and starts the next
conversation, `pic ask` and `pic -p` on it; `--model`, RPC `set_model` (unless it carries Pi's
`persist` option) and a phone save nothing, and the `rememberModel` setting turns it off
([models](models.md#choosing-a-model)).
- 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.
- A server's address can be saved as an endpoint (`pic endpoints add`, or "Add an endpoint" in
`/model`) and its listed models used as `NAME/MODEL`; Pi takes such servers only in
`models.json`. See [saved endpoints](models.md#saved-endpoints).
- A prompt stopped before its reply stays in the conversation, as in Pi, but pic sends it to the
model followed by `[Request interrupted by user]`, as Claude Code does; Pi sends it unmarked, and
a model may answer it in place of the next prompt.
## 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 mcp add` takes Pi's arguments and Claude Code's, and a pasted `mcpServers` snippet; servers
are kept in pic's database with their headers sealed, not in `mcp.json`, and the tool list is the
one saved when a server was added or listed, so a request connects to nothing until a call. pic
speaks the current MCP revision (2026-07-28) first and Pi's 2025 handshake as the fallback. A
read-only tool runs again after a crash and any other becomes "outcome unknown". A stdio server
runs for one request, not for the session. A trusted project's `.mcp.json` and `.pic/mcp.json`
are read in place of Pi's `.pi/mcp.json`; a project server's tools are offered once it has been
listed. A server's exposure is `direct` unless you set one, where Pi's default is `codemode`.
A resource's binary content other than an image is named, not saved to a file for the model.
Not yet: sign-in (OAuth) ([MCP servers](mcp.md)). Exposure `deferred` works with Pi's
`tool_search`, which ranks as Pi does but splits words at ASCII boundaries only and does not
search a server's description ([deferred tools](mcp.md#deferred-tools)).
- Codemode's input is `{"script": ...}` JSON, where Pi takes the raw source. It is off until the
setting `codemode` or `/codemode` turns it on, where Pi adds it to `defaultTools`. Each call a
script makes is journaled and hooked as a call nested in the script's, and a script interrupted
by a crash is never run again: its result lists its calls. Its description lists every tool in
play (Pi's `codemode.mode` `only` listing, with the tools still declared). Calls return their
values, where Pi's return promises: `parallel([...])` runs calls at once, and `await` or
`Promise.all` over calls still works but runs them one after another (so `Promise.allSettled`
over failing calls throws; use `parallel(..., { settled: true })`). Every tool returns its text
(bash its text, not Pi's object), an image read an image block; `store()` keeps values for the
script only, not across calls; `models` (classifiers, image models) is not there; only the first
image is attached to the result, and nothing is written to temporary files: the whole of a long
output is `pic:output/N`. A pic runs one script at a time, where Pi runs two workers. A build for
a platform with no processes runs QuickJS in pic's own process ([codemode](codemode.md)).
- 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; `extension_ui_response` answers one of pic's own questions
([questions](questions.md)) by its id, and `get_asks` lists them. 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)).
- In fullscreen a right click hands the mouse to the terminal until the next key, and the `mouse`
setting (or `/mouse`, Alt+M) turns capture off; by default it is off in Apple's Terminal, which
never passes Cmd-C to the program; Pi always captures it ([the terminal
interface](tui.md#copying)).
- `/settings` is a panel that opens at any time, a running reply included, and floats over the
transcript in fullscreen; Pi's replaces the editor and waits for an idle editor. It groups the
settings, edits numbers and text in checked fields, and shows a change made elsewhere ([the
settings panel](settings-panel.md)).
- 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)).
- Links are on in any terminal not known to lack them, where Pi lists the terminals that have them;
bare URLs and file paths in replies and tool output are links too, a path opens as a `file:///`
URL, and a click opens a link in fullscreen ([the terminal interface](tui.md#links)).
- `/share` shows the page's size and that it goes to gist.github.com through `gh`, and asks before
uploading; Pi uploads without asking.
## Benchmarks
- Trial labels have no place on a message in Pi's session format, so the Pi export leaves them out
([benchmarks](benchmarks.md)).