Artifact d9f385bdfc3b0c92be17749c517b77c8031e0e6f463c888346c3ab6fa4bd6295:
- File CHANGELOG.md — part of check-in [673d602118] at 2026-11-23 10:13:33 on branch rewind-fu — merge trunk (user: dmestas, size: 15197) [annotate] [blame] [check-ins using] [more...]
Changelog
What changed in pic, newest first, one section per day (UTC). Add an entry
here with each landing; /changelog shows this file.
2026-11-23
- Rewind now tidies up after itself: when it deletes a file a write created, it also removes the folders that write made if they are empty (never one that was there before, or one that holds anything else), and
pic prunedrops the saved file contents that no rewind or undo can reach any more. - A terminal interface that is killed no longer leaves a
pic attachbehind:pic attachwithout-inow exits when the pipe or socket on its standard input closes, which also ends it when an ssh client disconnects. - Remote control speaks the relay's final protocol: the phone's page names each workspace and lists one workspace's conversations, drops nothing it should keep after a reconnect (each sync's key comes back on every event), marks messages typed at the terminal as such, and a connection is taken for dead after 45 seconds of silence instead of 35.
- Remote control pairing is harder to interfere with: a phone that reconnects mid-pairing still pairs, a second phone scanning the same code cannot take the pairing over, a key pressed before
Pair "NAME"? [y/N]is not taken as its answer, and the phone's name is shown quoted with control and bidi characters replaced; a phone that does not start a new session when asked is disconnected.
2026-11-22
- Pair a phone with
/rcorpic remote pairand drive pic from it through a relay withpic remote: list your conversations, follow one, send a prompt, steer, follow up and stop. Everything is end-to-end encrypted; the relay at remote.zeitforge.app is by invitation. Seepic help remote-control. The ssh QR code of/rcandpic rcnow holds the Mac's Tailscale address, for a phone that does not use Tailscale's DNS./rcturns remote control on, keeping it running after pic exits, and shows whether it is connected;pic remote statusandpic remote stopdo the same in a shell. The Mac and the phone drive a conversation at once, the phone's messages marked with its name; the phone can start a new conversation in any workspace; andpic remotereconnects on its own after sleep, a lost network or a relay restart, losing and repeating nothing. - Check a key without spending anything:
pic auth status --checkasks every provider about every key at once and shows what comes back ($4.12 leftfor OpenRouter, a balance for DeepSeek,valid, checked 2 min agofor the rest, or that the key is refused). The terminal interface checks the key in use when it starts and the others when you open/key, in the background and at most once in ten minutes, never in print, JSON or RPC mode; seepic help named-keys. - Nothing user-facing: pic now builds without warnings with gcc on Linux (glibc), as it already did with clang on macOS.
pic usage --by-tool [--json]shows where a run's tool calls go: for each tool, its calls, its failures, and the tokens and cost of the requests that called it, next to--by-trial.- SessionEnd hooks now run when pic is stopped (SIGTERM, or the terminal closing) after SessionStart has fired but before the first prompt is sent; before, a hook that set something up at SessionStart was never told the conversation ended.
--keyand theset_credentialRPC command now say so when pic cannot keep the choice (more than 16 providers with a chosen key in one process) instead of reporting success and ignoring it.- Nothing user-facing: each provider's wire format (Anthropic, OpenAI Chat and Responses, Gemini) is now a separate adapter that plugs into pic's core, so a new provider can be added without touching the core; requests, replies, prompt caching and costs are unchanged. Conversation exports made with
--scriptnow say"api":"script". - Keep several keys per provider and see which ones work:
pic auth login PROVIDER --api-key --as NAMEadds a named key,pic auth use PROVIDER NAME(or/key, Alt+K) picks the one in use,--key NAMEpicks one for a single run, andpic auth import VARseals a variable's value once. pic now tells a dead key, an out-of-credit one and a rate limit apart in plain words, never retries them blindly, remembers each key's last state forpic auth statusand the footer, and in the terminal interface stops with a prompt to switch key (showing the re-send cost), switch model, wait out a limit or log in again; it never switches keys on its own. Seepic help named-keys. - Nothing user-facing: the RPC server now hands model listing, prompt templates and skills to components through a command registry; every RPC command answers as before.
- Watch and steer a running conversation from another terminal, a script or a phone over ssh:
pic attachfollows it as it is saved (--format textfor reading,-ito type into it: a steer while it runs, a new request when it is idle), andpic send steer|follow_up|abort TEXTmessages it. Messages go through the journal, are delivered exactly once by the pic running the request, and expire if nothing runs; nothing listens on a port./remote-control(or/rc, andpic rcin a shell) shows the ssh command and a QR code to scan from a phone, and whether Remote Login and Tailscale are on. Seepic help remote-control. make test-docsnow fails when a page under docs/ is not linked from docs/README.md, or when a provider orpiccommand is documented nowhere; the README and the manual now name Google Gemini and subscription sign-in, and the README says plainly that only hooks.json, keybindings.json and skills/ are files you write.- A key or sign-in stored with
/loginorpic auth loginnow takes precedence over the provider's environment variable (such as an out-of-creditANTHROPIC_API_KEYleft in your shell), as in Pi;pic auth statusand the/loginlist say which one is in use and when it hides a variable. - Updated the bundled libfossil: global autosync and dont-push settings are now honored, a pull before commit, update or merge no longer pushes when autosync is not set, and a missing ssh command gets a hint (exit 127).
- The terminal interface no longer sometimes hangs or crashes instead of exiting when it is sent SIGTERM, SIGHUP or SIGQUIT as a reply finishes; with hooks, SessionEnd still runs. A crash no longer runs SessionEnd.
- Sign in with your ChatGPT subscription instead of an OpenAI API key:
pic auth login openai(or/loginin the terminal interface, which now lists every provider with what it uses, takes keys and the passphrase in masked fields, runs the sign-in in place with Esc to cancel, and also opens on your first message when no key is set) opens the browser, and the sign-in is stored sealed like a key and refreshed on its own; OpenRouter can sign in the same way.pic auth statusandpic auth logoutshow and remove what is stored, and--no-browserlets you paste the address back when the browser is on another machine. pic import --claudenow keeps the token counts Claude Code logged for each reply, so a resumed conversation's first trim after the cache expires uses real token counts instead of the four-characters-a-token estimate; they are not counted as spend inpic usage.- A conversation trimmed after the prompt cache expired now keeps about 20000 tokens as the provider counts them, not by pic's four-characters-a-token estimate (which undercounts code, so trims kept up to half as much again), and only the first request after you send a message can trigger one: a slow tool call in the middle of a reply no longer trims the conversation again.
- New
/rewind(also Esc twice on an empty editor,pic rewindand the RPC commandrewind): go back to before an earlier message and restore the conversation, the files pic's write and edit tools changed after it, or both. Files changed since by you, a command or another conversation are never overwritten without asking, a rewind of files can be undone, and changes made by bash are not tracked. SetdoubleEscapeActiontotreefor Pi's Esc Esc. - Running pic with a relative
--workspace(such as--workspace ws) no longer overruns memory when a tool writes or edits a file. - The skill list in the system prompt now has a budget, 1% of the model's context window at 4 characters a token (set
skillBudgetto change it, 0 for none): over it, descriptions past 1,536 characters are cut and the least used skills are listed by name only, with a warning at startup and on/reload(on stderr in print and JSON modes); no skill is dropped, and one is ranked by how recently and how often you load it with/skill:NAMEor a read of itsSKILL.md. - The terminal interface asks the terminal for its background colour and picks the light theme in a light Ghostty or iTerm2 window (also over SSH, where
COLORFGBGnever arrives); when a reply is ready and you are in another window it rings the bell and asks for a desktop notification (notifyWhenDoneturns that off); and terminal answers no longer leak into the editor as typed text or an Esc that cancels the request. - Nothing user-facing yet: the design for letting one pic send steer, follow-up and abort messages to another running pic (docs/design/grapevine.md) is accepted.
- A conversation you come back to after the prompt cache has expired is now compacted without a summary request: pic keeps the newest 20000 tokens or so, drops the rest and lists the files it had read and changed, so the compaction itself is free; a SessionStart hook (such as ctx's brief) runs after it with source
compact. SetlapseModetosummaryfor the previous behaviour;pic usage --lapsereports each mode separately. - pic takes Pi's session flags:
-r/--resumeopens the conversation picker in the terminal,--session-id IDjoins or creates the conversation with that ID,--no-sessionruns against a journal thrown away at exit, and--mode jsonand--mode textwork as in Pi. The system prompt now tells the model it can runpic helpto read pic's documentation.
2026-11-21
- Nothing user-facing: pic and the dev build are now compiled from the same generated single-file source as the source bundle (a clean build is about a third faster, a one-file rebuild a few seconds slower), and dev compiler errors and sanitizer traces still name the original src/FILE.c lines.
- pic now also ships as a source bundle:
make amalgamationwritespic-amalgamation-VERSION.tar.gz, with pic's code as onepic.cbeside the vendored SQLite, libfossil, zlib and BearSSL sources, built with a singleccline. - Lapse compaction is on by default: a conversation above 100000 tokens that has sat idle past the prompt cache's lifetime is compacted before its next request, since the cache is cold anyway (in a replay of 28 real sessions this cost 38% less). One such lapse in ten is left uncompacted at random so
pic usage --lapsecan show what compaction actually saved;lapseHoldoutsets the share. - Nothing user-facing: every source file now has a recorded tier (core, bundled, client, data), and the docs test fails when core reaches for a component or a vendor name.
- A long CHANGELOG no longer stops pic from building (/changelog's text is compiled in chunks), and the parallel tools test no longer fails on a busy machine.
- The slash menu scrolls and counts "(selected/total)" as Pi's does; /resume shows forks under their parent conversation; an edit's diff in the transcript carries line numbers.
pic -pnow honours-c/--continue(the latest conversation) and--session ID, as Pi's print mode does; an unknown ID is an error instead of a new conversation.pic helplists the topics of pic's manual and reference, andpic help TOPICprints one;/help TOPICshows it in the terminal interface. The manual is compiled in, so it matches the binary you run.pic --helpis a short synopsis;pic help clilists every command and flag.- Several pics can work in one project at once, each in its own conversation: ask a side question or read the live conversation while another pic runs. An edit or write that meets another conversation's change is told so, with the file's current text.
2026-11-20
/forkwith no argument opens a picker of your earlier messages, as Pi's does;/reloadalso re-reads skills;/changelogshows this file.pic --helplays out the keys and settings more clearly.pic login,pic logout,pic keys,/loginand/logout: API keys are stored sealed under a passphrase.pic --mode rpc: Pi's JSONL RPC protocol with all 36 of its commands.- Pi's themes (dark, light, custom JSON) and
keybindings.jsonwith Pi's actions; Mac-friendly defaults where Pi's keys are awkward. - Compaction settings as Pi has them, and
/treecan summarize the branch you leave. pic exportkeeps a branch summary with the conversation it starts.--system-prompt,--append-system-promptand the tool flags apply to the terminal interface too.- Ctrl+V pastes clipboard files, images and text in Pi's order.
pic import --claudeturns a Claude Code transcript into a conversation, attachments included;--countcounts its first request.- Print mode (
-p), Pi'sgrep,findandlstools, and tool selection (--tools,--no-tools, and the rest). pic pslists the processes pic started, with--kill.- Hooks (
hooks.json, Claude Code compatible): SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, PreCompact, Stop, SessionEnd. - The terminal interface tells your messages from the AI's, as Pi does.
- Fullscreen mode is the default: scrollable transcript, mouse wheel, selection and copy;
--tui-mode regularkeeps the inline one. - Projects and settings live in
~/.pic/pic.sqlite; SessionEnd hooks survive SIGTERM. - Skills and
@filecompletion honour.gitignore,.ignore,.fdignore,.zitignoreand Fossil ignore settings. - Code blocks in replies are syntax-highlighted;
@filecompletion in the editor. - Steering keys, live tool output, a retry countdown and durable
!command. - Tests run in parallel (about 6 minutes down to 90 seconds).
2026-11-19
- Prompt caching on every provider; model prices and real costs; Google Gemini; images (
[image #N]). - Durable steering and follow-ups; skills; prompt templates.
- The rest of Pi's slash commands, a model picker, and Pi's model catalog.
- Thinking levels for every API.
- A terminal interface: plain
picin a terminal. - Live events (Pi's JSON-mode events), Ctrl-C cancels the request, not pic.
- Conversations are also written as Pi session files and as rows for ctx.
- Compaction of long conversations with Pi's algorithm, for any model.
- Follow-up conversations, forks (
pic fork ID --at ENTRY) and in-place instruction updates. - Builds with gcc as well as clang; BSD 2-Clause license and README.
2026-11-18
- Providers beyond Anthropic (OpenAI Chat Completions and Responses, OpenRouter and compatibles), a model registry with
provider/modelnames, andmodels.json. - A durable agent loop: every request and reply is journaled; Pi's tools (read, write, edit, bash); context handling and benchmarks.