Skip to content
pi-c Artifact [bb038ab10f]
Login

Artifact [bb038ab10f]

Artifact bb038ab10fcf412e55092cb42103c5046c62367d443ac3333b6070e57c417dcf:


# 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` |
| `lapseMode` | trim, summary | trim | how a lapse compacts: drop older context with no request, or Pi's summary |
| `rewindMaxBytes` | bytes | 1048576 | the largest file whose contents are saved before write or edit changes it, for rewind; 0 saves none |
| `doubleEscapeAction` | rewind, tree, fork, none | rewind | what Esc twice on an empty editor opens; Pi's default is tree |
| `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 |