Every flag pic accepts, then the full usage text that pic --help prints. How each mode behaves is
in the manual topics; this file is the list.
Flags
| Flag | Argument | Used with | What it does |
|---|---|---|---|
--workspace |
DIR | any command | the workspace (default: the current directory); import --claude takes it too |
--db |
PATH | any command | the journal (default WORKSPACE/.pic/journal.sqlite) |
--model |
MODEL | any command | the model, as provider/id |
--thinking |
LEVEL | any command | off, minimal, low, medium, high, xhigh, max; the model's supported ones |
--exec-timeout |
SECONDS | any command | the bash tool's default timeout (600) |
--tools, -t |
LIST | any command | only these tools, or +name/-name entries that change the default four |
--exclude-tools, -xt |
LIST | any command | leave these tools out |
--no-tools, -nt |
any command | no tools | |
--no-builtin-tools, -nbt |
any command | no built-in tools | |
--tui-mode |
MODE | tui |
fullscreen (the default) or regular; setting tuiMode |
--theme, --use-theme |
NAME | tui |
the colour theme for this run; setting theme |
--json |
ask, run, bash, listings |
Pi's JSON events on stdout, or JSON output for a listing | |
--stream |
ask, run |
stream the reply even when stdout is piped | |
--commands |
ask, run with --json |
Pi's RPC command lines on stdin steer the running request | |
--context-window |
TOKENS | any command | compact past this minus 16384; default: the model's, 0 never |
--lapse |
on, off | any command | lapse compaction (PIC_LAPSE, setting lapseCompaction) |
--lapse-seconds |
N | any command | the cache lifetime lapse compaction assumes (PIC_LAPSE_SECONDS) |
--lapse-floor |
TOKENS | any command | the context below which lapse compaction waits (PIC_LAPSE_FLOOR) |
--now |
compact |
summarize the conversation now instead of before its next request (Pi's /compact) |
|
--trial |
LABEL | any command | a benchmark arm kept on each request admitted (PIC_TRIAL) |
--max-requests |
N | any command | stop a request before its (N+1)th reply request (PIC_MAX_REQUESTS) |
--print, -p |
[TEXT] | Pi's print mode: one prompt, the answer on stdout | |
--system-prompt |
TEXT or FILE | -p, ask, chat, tui |
replaces the system prompt |
--append-system-prompt |
TEXT or FILE | -p, ask, chat, tui |
adds to the system prompt (repeatable) |
--mode |
rpc | Pi's RPC mode | |
--continue, -c |
-p, ask, tui, chat, bash, --mode rpc |
continue the latest conversation | |
--session |
ID | -p, ask, tui, chat, bash, submit, --mode rpc |
continue that conversation |
--image |
PATH | ask |
attach an image file (png, jpeg, gif, webp) after the text |
--unset |
KEY | settings |
remove a setting |
--all |
models, ps |
every model, not only those with a key; finished processes too | |
--refresh |
models |
fetch the model catalog now | |
--default |
NAME | models |
save the default model (setting defaultModel) |
--thinking-default |
LEVEL | models |
save the default thinking level (setting defaultThinkingLevel) |
--no-context |
bash |
journal the command without sending it to the model (!!) |
|
--at |
ENTRY | fork |
fork after this entry |
--summarize |
fork |
start the new conversation with a summary of the branch left behind | |
--instructions |
TEXT | fork --summarize |
what the summary should focus on |
--script |
FILE | run, fork --summarize |
a scripted provider, for tests |
--api-url |
URL | run, fork --summarize |
the provider's endpoint |
--provider |
NAME | run |
the provider to run against |
--html |
ID | export |
a conversation as one self-contained HTML page |
--pi |
[DIR or -] | export |
conversations as Pi session lines |
--since |
ENTRY | export |
finished entries after ENTRY |
--claude |
PATH | import |
a Claude Code transcript as a new conversation |
--until |
UUID | import --claude |
stop before this record |
--count |
import --claude |
also count pic's first request on it by the provider's counter | |
--clear |
scoped-models |
cycle every model again | |
--set |
PATTERN... | scoped-models |
the models Ctrl+P cycles |
--list |
bug |
the bug reports kept | |
--by-trial |
usage |
requests, tokens and cost by trial label | |
--dry-run |
prune |
report what would be dropped | |
--kill |
ID or --all |
ps |
stop a process pic started, by process group |
--help, -h |
print the usage text below |
Usage text
This is what pic --help prints.
usage: pic [--workspace DIR] [--db PATH] [--model MODEL] ask [-c | --session ID] [--image PATH]... TEXT
run TEXT in the workspace (default: the current directory) and print the answer;
a new session, or -c to continue the latest, --session to continue that one;
--image attaches an image file (png, jpeg, gif, webp) after the text
the journal defaults to WORKSPACE/.pic/journal.sqlite
pic [options] -p [TEXT] [@FILE]... [TEXT]... Pi's print mode: run one prompt and print the answer;
--print too; piped stdin comes first in the prompt, then the @files (text as <file name="PATH">,
images attached), then the first TEXT; each further TEXT continues the conversation;
-c or --continue joins the latest conversation, --session ID that one (an unknown ID is an error);
-- ends the options (what follows is TEXT and @FILE, even with a leading - or @)
options: --system-prompt TEXT|FILE replaces the system prompt; --append-system-prompt TEXT|FILE adds to it
(repeat it), as ~/.pic/SYSTEM.md and APPEND_SYSTEM.md do, and the trusted workspace's .pic/ ones
pic [options] [tui [-c | --session ID]] the terminal interface (plain pic in a terminal);
-c continues the latest conversation (the first in pic sessions), --session that one
pic [options] chat [-c | --session ID] a plain line prompt for one conversation
pic [options] --mode rpc [-c | --continue | --session ID] Pi's RPC mode: Pi's JSONL commands on stdin
(prompt, steer, follow_up, abort, compact, bash, fork, get_state and the rest), responses and Pi's
events on stdout; the journal is held only while a command, request, compaction or bash runs
pic [options] settings [KEY [VALUE] | --unset KEY] settings kept in ~/.pic/pic.sqlite
cacheRetention: short (default), long (1 hour; OpenAI 24h) or none, as Pi's (PI_CACHE_RETENTION=long too)
toolExecution: parallel (default: a reply's tool calls run at once) or sequential, as Pi's
pic projects the projects kept in ~/.pic/pic.sqlite: name, kind, state, remote
pic login PROVIDER store PROVIDER's API key (typed with echo off, or piped on stdin) in ~/.pic/pic.sqlite,
sealed with ChaCha20-Poly1305 under a key from a passphrase (asked once per process, when a stored key
is needed); PROVIDER's variable (ANTHROPIC_API_KEY and the like) still wins when set
pic logout PROVIDER remove the stored key
pic keys the stored keys' names and dates, never values
pic [options] models [--json] [--all] [--refresh] | models --default NAME | models --thinking-default LEVEL
models from Pi's catalog (and models.json) whose provider has a key; --all every one
pic [options] sessions [--json] | log [--json] [ID] | name ID NAME | fork ID [--at ENTRY]
pic [options] bash [--no-context] [-c | --session ID] COMMAND run COMMAND in the workspace and journal it as
Pi's bashExecution message (what "!COMMAND" does in the terminal): it reaches the model with the
conversation's next request, unless --no-context ("!!"); exits with the command's status; with --json,
bash_execution_update events and Pi's bash response (output, exitCode, cancelled, truncated, conversation)
pic [options] tree --json [ID] the requests of ID's conversation tree, branches included
pic [options] fork ID --at ENTRY --summarize [--instructions TEXT] [--script FILE | --api-url URL]
Pi's /tree with a summary: a new conversation from ENTRY with a summary of what ID leaves behind
pic [options] export --html ID [PATH | -] a conversation as one self-contained HTML page (default -)
pic [options] import PATH | - a Pi v3 session JSONL as a new conversation (the text of its messages)
pic [options] import --claude PATH [--until UUID] [--workspace DIR] [--count] a Claude Code transcript as a new
conversation in its cwd's workspace (or DIR), its main thread before the record UUID; prints its id,
counts, pic's estimate of the next request's context and the transcript's own at the cut; --count
also counts pic's first request on it (system prompt, tools, messages) by the provider's counter
pic [options] trust [yes | no] | scoped-models [--clear | --set PATTERN...] | bug [--list | TEXT]
the workspace's trust, the models Ctrl+P cycles, a bug report kept in ~/.pic/pic.sqlite (sent nowhere)
pic [options] prompts [--json] the prompt templates (~/.pic/prompts, and the trusted workspace's .pic/prompts):
/NAME ARGS in a message sends the template with $1, $@, ${@:2} and the like filled in
pic [options] skills [--json] the skills (~/.pic/skills, and the trusted workspace's .pic/skills; symlinks followed):
listed in the system prompt; /skill:NAME ARGS in a message sends the skill's instructions and ARGS
pic ps [--all] [--json] | ps --kill ID|--all the processes pic started that are still running (hooks,
bash and "!" commands, the terminal's request children); --all adds recent finished ones; --kill
stops one (or all) by process group. Processes a hook script starts on its own are not tracked.
pic [options] hooks the command hooks of ~/.pic/hooks.json (and the trusted workspace's .pic/hooks.json),
Claude Code's shape and events (SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, PreCompact,
Stop, SessionEnd); pic dump lists their runs. hooks end REASON: SessionEnd for what PIC_HOOK_OWNER began
pic [options] compact [ID [INSTRUCTIONS]] summarize the conversation before its next request
pic [options] compact --now [ID [INSTRUCTIONS]] summarize it now (Pi's /compact)
pic [options] export [--since ENTRY] finished entries as JSON lines
pic [options] export --pi [DIR | -] conversations as Pi session lines: rows in ~/.pic/pic.sqlite
(for ctx; ask, chat and the terminal write them after each request unless PIC_PI_EXPORT=0),
and ~/.pic/sessions files only with piSessionFiles=1; DIR writes files there, - to stdout
pic [options] submit KEY TEXT [--session ID] | cancel KEY
pic [options] run --script FILE
pic [options] run --provider anthropic [--api-url URL]
pic [options] dump | check | result CALL_ID
pic [options] usage --by-trial [--json] requests, tokens (cache reads and writes too) and cost by trial
pic [options] prune [--dry-run] drop the bytes of images no request sends any more (compacted
away) or older than imageRetentionDays (setting, default 30, 0 never); also at open, hourly
options: --workspace DIR --db PATH --model MODEL --exec-timeout SECONDS (bash default, 600)
--tools, -t LIST (comma list of read, bash, edit, write, grep, find, ls: only these; * patterns; or only
+name/-name entries to change the default four) --exclude-tools, -xt LIST --no-tools, -nt
--no-builtin-tools, -nbt (setting defaultTools: a comma list, same entries; default read,bash,edit,write)
--tui-mode MODE (the terminal interface: fullscreen, the default, or regular; setting tuiMode)
--theme NAME (the colour theme for this run: dark, light, a file in ~/.pic/themes, or light/dark; setting theme)
--thinking LEVEL (off, minimal, low, medium, high, xhigh, max; the model's supported ones;
default: settings thinkingLevel:MODEL / defaultThinkingLevel, else medium)
--json (events on stdout, as Pi's JSON mode) --stream (stream the reply even when piped)
--context-window TOKENS (compact past this minus 16384; default: the model's, 0 never)
--lapse on|off (PIC_LAPSE; setting lapseCompaction, default off): compact before a request when the
conversation has been idle past the prompt cache's lifetime and its context is above the floor
--lapse-seconds N (PIC_LAPSE_SECONDS; setting lapseSeconds; default the cache's: 300, 3600 with
cacheRetention long, OpenAI 86400) --lapse-floor TOKENS (PIC_LAPSE_FLOOR; lapseFloorTokens; 20000)
--trial LABEL (PIC_TRIAL): a benchmark arm (1-64 printable bytes) kept on each request admitted
--max-requests N (PIC_MAX_REQUESTS): a request stops cleanly (request_cap) before its (N+1)th
reply request, retries not counted; pic ask -c continues it
--commands (with --json, for ask and run: Pi's RPC command lines on stdin steer the running
request: steer, follow_up, clear_queue, abort, set_steering_mode, set_follow_up_mode;
each is journaled as it arrives. While a request runs its process owns the journal, so
this is the only way to steer it: there is no separate steer command)