Skip to content
pi-c Artifact [d2877581f8]
Login

Artifact [d2877581f8]

Artifact d2877581f857a2836fe21f23baf3a5816ed1cd704a8707cf7e7bd440be0d57f3:


Command line

Every command and flag pic accepts. pic --help prints a short synopsis; this file is the full list. How each mode behaves is in the manual topics (pic help lists them).

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, rewind, 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 text, json, rpc text is the default; json is -p --json; rpc is Pi's RPC mode
--resume, -r tui open the conversation picker at start (an error with -p)
--session-id ID -p, ask, tui the conversation with exactly this ID, or a new one created with it
--no-session any command keep nothing: a throwaway journal removed at exit
--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
--api-key auth login store an API key instead of signing in
--as LABEL auth login, login, auth import store the key as one of the provider's extra keys, named LABEL
--force auth import seal a variable that is not the provider's own (nor a variant such as ANTHROPIC_API_KEY_2)
--no-browser auth login print the sign-in address and take the pasted redirect; open no browser
--all models, ps every model, not only those with a key; finished processes too
--refresh models, auth status models: fetch the model catalog now; auth status: check the keys not checked in ten minutes, never asking for the passphrase
--check auth status first ask each provider's free check about every key, all at once
--active auth status with --check or --refresh: only the key each provider uses
--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
--to ENTRY rewind rewind to before this user message
--files rewind restore only the files
--conversation rewind restore only the conversation
--force-partial rewind restore the files that can be, past the ones refused
--undo rewind put back the files the latest rewind changed
--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, rewind the bug reports kept; a conversation's messages to rewind to
--by-trial usage requests, tokens and cost by trial label
--by-tool usage each tool's calls and failures, and the tokens and cost of the requests that called it
--dry-run prune report what would be dropped
--kill ID or --all ps stop a process pic started, by process group
--key KEY, LABEL send; any other command send: the message's idempotency key (default: a random one), the same key and command again being one message; before a command: the provider the model resolves to uses its key LABEL for this run, and a key it does not have is an error
--hold-key-failures ask, run a reply refused for its key leaves the request unfinished instead of failed (the terminal interface's swap prompt)
--expires SECONDS send not delivered after this (default 600 for steer and abort, 86400 for follow_up; at most 604800)
--wait send wait until the message is delivered, refused or expired, and print its response line
--from ENTRY attach show what came after this entry (0: the whole conversation; default: from the latest request)
--format json, text attach Pi's JSON events (the default), or short lines for a person
-i attach each line of stdin is a steer while a request runs, else starts one (as ask --session); /abort aborts
--no-follow attach print what is committed, then exit
--help, -h print the usage text below

Commands

Options go before the command: pic [options] COMMAND. With no command, pic opens the terminal interface in a terminal.

Conversations

Another process's conversation

See remote control. Neither command takes a conversation's lease; both work beside the pic that runs it, the terminal included.

See remote control for the relay.

Sessions and export

Models, keys and settings

Prompts, skills, hooks and processes

Housekeeping

Internal commands

Used by the terminal interface, the tests and scripts; not meant to be typed.

Options in detail