Artifact af25e99dc69c3bd9893a6abae595d47da7aca7ee9d3eb0d969f0a6a26907943d:
- File
docs/manual/differences-from-pi.md
— part of check-in
[eae917e9e9]
at
2026-11-21 12:03:36
on branch shared-store
— Shared journal store: several pic processes on one workspace, one conversation each
Each conversation has a lease (an exclusive flock beside the journal) that its process holds while it advances it and that the kernel drops when the process and its forked children are gone. Taking a lease claims the conversation's request and settles what a dead owner left; open recovers only conversations whose lease is free. The journal lock is held shared and taken exclusive only to create or migrate the schema. SQLite runs in normal locking mode with the fair busy handler; dev builds stop on a write begun under an open read.
pic run takes only requests nobody is running. A second pic asking into a conversation in use is refused with its owner's pid. An edit that misses in a file another conversation changed says so and shows the file; a write to such a file is refused once.
New test/pic/shared.sh: two-process crash matrix, kill -9 beside a live pic, claim and admission races, stale-file results. No schema change. (user: dmestas, size: 1882) [annotate] [blame] [check-ins using] [more...]
Differences from Pi
pic does what Pi does. Where it does something differently, it is listed here.
Sessions and state
- A session is a conversation in the journal, not a file;
pic export --piwrites Pi session lines when you need them. - pic has no extensions and no subscription login.
Tools
writereplaces 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). It cannot happen with one conversation at a time.
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
- Some default keys are Claude Code's rather than Pi's; the key reference 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).
- pic does not generate Pi's terminal-palette
systemtheme (themes).
Benchmarks
- Trial labels have no place on a message in Pi's session format, so the Pi export leaves them out (benchmarks).