Repository navigation
Releases
Releases · galyavin/pi-tuck
v1.16.1
Fixed
- Cold-cache trims on a priced model now also count the rework a trim causes, the same term the lean line counts since 1.16.0: a trim fires
only when the cold part exceeds what the trim keeps, the re-reads after trims and that rework. On a model whose input and cache-read prices
are both 0, the rule is unchanged.
v1.16.0
Changed
- Lean line: the cost of a trim now also counts the extra requests a trim causes before the work is back where it was (4.3, measured as the
turn gap per extra trim on long paired sessions), each priced as a cached re-send of what the trim kept, its growth, and its output at the
model's output price. The lean line moves later, so lean sessions trim less often (in replays of 97 long sessions on a priced model: 16%
fewer trims, 22% fewer after the first, none trims more). Where the lean line is off (a model whose input and cache-read prices are both
0,cacheSensitiveModels,cutAt, a hostrequestReserve), requests are unchanged.
v1.15.0
Added
- Cold-cache trims: on a Chat Completions server that reports prompt progress the way llama.cpp's server does, a large request that finds
the cache cold, on a branch whose recent requests the server mostly served from its cache, is stopped before any reply token and sent again
after a trim. The server then processes the summary instead of the whole context. A trim fires only when the cold part exceeds what the
trim keeps plus the branch's re-reads after trims, and once until a request is served warm again. Requests to other servers, or to a server
that sends no progress report, go out unchanged. A record that the server reports progress is saved on the branch, so the first request
after a restart is checked too. Off whencutAtor a hostrequestReserveis set./tuckshows the cache share and whether the last trim
was a cold-cache trim.
v1.14.1
Fixed
- Replayed reasoning: when a model's earlier plain reasoning, which Pi sends back with each request, repeats one symbol five or more times in
a row (a row of check marks, for example), each such row now goes out once. Signed reasoning, replies, tool results and the recorded session
are unchanged, and sessions without such rows send the same requests as before. In one long local session this took about 12,000 characters
off every request.
v1.14.0
Changed
- Kept prompt outputs: once a user prompt gives a command after "Run:" (for example "New telex. Run: telex read NAME"), the summary carries
the output of every later run of that command, not only of the run that directly follows the prompt. An agent that polls its inbox by itself
reads its tasks this way. The newest output comes first and is never left out: one that does not fit is clipped to its head and tail with
atuck_recalllocator. An output equal to an earlier one is carried once. These outputs have one allowance, at most 16,000 characters or
a quarter of the summary room; the user's messages count against it too, the first one first at its own limit. Outputs past the allowance
are listed by recall index. The space is set aside before the dialogue is filled, in every form of the summary. On a recorded session with
42 cuts, the newest such output that had left the kept turns was missing from 13 summaries; it is now whole in all 42, for 21 more tokens
per summary on average (374 at most). Sessions with no "Run:" prompt get the same summaries as before, byte for byte.
v1.13.1
Changed
- Internal cleanup across the code, tests and benchmark scripts, with no change to any request.
v1.13.0
Changed
- Kept tail after a cut: when the tool round just older than the kept turns would leave the kept tail short (a large read, command
output or file write that does not fit the tail), the summary now carries that round in a closing "Kept-round" section: its calls
and their text results, within two thirds of a quarter of the summary room. Parts that do not fit are clipped to their head and
tail with atuck_recalllocator for the rest, call arguments included. On recorded sessions, cuts whose kept context falls below
80% of the tail size went from 59 to 11 of 9,272. The 11 that remain: 5 at a 48k window, where the summary share cannot hold a
full tail; 4 where the crossing round is mostly the model's thinking, which is not carried; 1 where the entry before the kept turns
records no tokens; 1 where the newest entry is a length-stopped reply that the cut drops.
v1.12.1
Fixed
- The first user turn (the task statement) rides whole in every summary, the smallest one after a length retry included, so an
instruction past its opening line is no longer cut off after a few chained cuts. A first turn over 8,000 characters keeps its first
and last 4,000, with atuck_recalllocator for the rest. Below a 64k-token room the cap is one character per 8 tokens of room, so
a small window keeps room to cut.
v1.12.0
Changed
- Reply cap: on a Chat Completions reasoning model, each request (other than the act-now turn) asks for at most twice the largest reply
this model wrote on the branch, finished or length-stopped, at least 32,768 tokens, and never more thanmaxTokensor what Pi sends.
A largemaxTokensno longer needs a hand-set lower value. A thinking-only stop at this cap is a full-cap stop: the act-now turn
follows, and the stopped output raises the next cap. ThellamaContinuationmodel keeps its configured cap. - Thinking level: when Pi sends
reasoning_effortonly in the chat template arguments and the server lists thinking levels, pi-tuck
also sends it at the top level. - Lean line: off for a model whose
models.jsoninput and cache-read prices are both 0.cacheSensitiveModelsstill turns it off for
any model.
Known: on a heavily loaded machine the local timing check of recall can run past its 3-second search budget; 1.11.2 shows the same, and nothing in this release changes recall.
v1.11.2
Fixed
- Kept prompt outputs: when a user prompt names a command (for example "Run: telex read NAME") and the agent runs it as
cd DIR && telex read NAME, the output is now carried whole in the summary, as it already was without thecdprefix.