Artifact e88d4f2025c2542984a7e161102e2880e0570b13ff5d5346e15ea56b1c98c97e:
- File
docs/reference/settings.md
— part of check-in
[f99ea5c3ff]
at
2026-11-22 11:08:00
on branch ghostty-fixes
— tui: consume terminal replies, pick light or dark from OSC 11, signal when a reply is ready
The decoder consumes OSC, DCS, APC, PM and SOS replies while a probe is outstanding and every private CSI reply (DA1, DA2, DECRQM, kitty flags, colour scheme reports) always, so an answer never reaches the editor as an Escape and typed text. At start pic asks for the background colour and DA1, waits up to 150 ms for DA1, and keeps the reply window open for a second; the answer decides system and light/dark themes ahead of COLORFGBG. Focus reports (DECSET 1004) gate a BEL plus OSC 9 (OSC 777 in foot and VTE) when a turn ends; the notifyWhenDone setting turns it off. (user: dmestas, size: 3560) [annotate] [blame] [check-ins using]
Settings
Settings live in ~/.pic/pic.sqlite. Read and change them with pic settings [KEY [VALUE]] and
pic settings --unset KEY, or in the terminal interface's /settings. Object settings take Pi's
settings.json shape as JSON, for example pic settings compaction '{"reserveTokens":16384}'.
| Key | Type | Default | What it does |
|---|---|---|---|
defaultModel |
provider/id |
anthropic/claude-opus-5-5 | the model when --model is not given; pic models --default NAME or Ctrl+S in the model picker sets it |
defaultThinkingLevel |
level | medium | the thinking level when no per-model level is saved |
thinkingLevel:MODEL |
level | none | the thinking level saved for one model, used before defaultThinkingLevel |
hideThinking |
true, false | false | show a one-line marker instead of the reply's thinking (Ctrl+T toggles it) |
defaultTools |
comma list | read,bash,edit,write | the tools a request offers; same entries as --tools |
toolExecution |
parallel, sequential | parallel | whether a reply's tool calls run at once or one by one, as Pi's; Tool execution in /settings |
cacheRetention |
short, long, none | short | the prompt cache retention: long is 1 hour (OpenAI 24 hours); PI_CACHE_RETENTION=long too |
theme |
name | system | the terminal interface's colour theme: dark, light, light/dark, system or a custom theme |
notifyWhenDone |
true, false | true | ring the bell and ask for a desktop notification when a reply is ready and the window is not focused |
tuiMode |
fullscreen, regular | fullscreen | how the terminal interface draws; --tui-mode for one run |
fullscreenExitOutput |
transcript, resume-hint | transcript | what fullscreen leaves in the scrollback on exit |
fullscreenScrollbar |
auto, always, hidden | auto | the fullscreen scrollbar |
fullscreenCopyOnSelect |
true, false | true | copy a mouse selection to the clipboard |
fullscreenWheelScrollLines |
auto, 1, 2, 3, 5, 10 | auto | lines per mouse wheel step |
compaction |
object | see below | Pi's compaction settings |
compaction.enabled |
boolean | true | automatic compaction, overflow recovery included; not pic compact |
compaction.reserveTokens |
tokens | 16384 | compact when the context passes the window minus this |
compaction.keepRecentTokens |
tokens | 20000 | about this much recent context is kept verbatim |
compaction.modelOverrides |
object | none | per-model values, keyed "provider/model" |
branchSummary |
object | see below | Pi's branch summary settings |
branchSummary.reserveTokens |
tokens | 16384 | a branch summary sends at most the window minus this |
branchSummary.skipPrompt |
boolean | false | leave a branch in /tree without asking "Summarize branch?" |
retry |
object | none | retry.enabled, saved by the RPC command set_auto_retry; only RPC mode reads it |
lapseCompaction |
on, off | on | lapse compaction; --lapse, PIC_LAPSE |
lapseSeconds |
seconds | the cache's lifetime | how long the prompt cache is assumed to live; --lapse-seconds, PIC_LAPSE_SECONDS |
lapseFloorTokens |
tokens | 100000 | lapse compaction waits below this context; --lapse-floor, PIC_LAPSE_FLOOR |
lapseHoldout |
0 to 1 | 0.1 | the share of lapses left uncompacted, to measure the savings; PIC_LAPSE_HOLDOUT |
imageRetentionDays |
days | 30 | pic prune drops image bytes older than this; 0 never |
piSessionFiles |
1, 0 | 0 | also write ~/.pic/sessions files when exporting Pi session lines |