Skip to content
pi-c Check-in [91916aa053]
Login

Check-in [91916aa053]

Overview
Comment:CI green on ffaf5a4afb70
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 91916aa05336717aeb08b9e5166bc9ec75866abfd3a67c84b0f55997d3c90b39
User & Date: dmestas on 2026-11-19 02:07:31.219
Other Links: manifest | tags
Context
2026-11-19
02:45
CI green on 54530144915b; Fil-C pass check-in: ce00efcddd user: dmestas tags: trunk
02:30
Compact long conversations with Pi's algorithm, for any model

Before each reply pic estimates the context as Pi does (the last reply's usage plus chars/4 for what followed) and past the model's window minus 16384 tokens it summarizes the history beyond the newest 20000 tokens, cutting only where a call is not separated from its result and handling a split turn as Pi does. The summary requests use Pi's prompts and serialization, are journaled as generations of their own and retried like replies; the summary, read and modified files, the first kept entry and the tokens before commit together. Requests then send the summary, the kept entries (rebuilt without thinking when older than the compaction) and what followed. Instruction updates that were summarized go out again. A context overflow compacts once and retries; pic compact asks for one before the next request; --context-window overrides the window. Schema 6. closed check-in: 5453014491 user: dmestas tags: compaction

02:07
CI green on ffaf5a4afb70 check-in: 91916aa053 user: dmestas tags: trunk
02:04
Add follow-up conversations, forks and in-place instruction updates

Entries form a tree: a trigger links each new entry to its conversation head and moves the head, inside the inserting transaction. Requests are built from the path, so pic ask -c and an explicit id continue a conversation and pic fork branches one from a point that ends a turn. Each conversation freezes its opening prompt and tools; edited project instructions are appended once as an update at that point. New commands list, name and print conversations. Schema 5, with journals of earlier versions stepped up in place. closed check-in: ffaf5a4afb user: dmestas tags: stage-5

01:39
Land stage 4: any model

A model registry, a provider-neutral journal, and adapters for the Messages API, Chat Completions (OpenAI, OpenRouter and compatible servers) and OpenAI Responses, with conversations moving between them. check-in: aca81cd9e3 user: dmestas tags: trunk

Changes