Repository navigation
Releases
Releases · CrazyCoder/jetcompact
v0.15.0
Changed
- A missing key no longer stops a compaction or sends it to the built-in
summary: it runs by the rules ofalgorithmic, and its log line and toast say
so. The size guards apply as usual. - Repeated hidden content longer than a placeholder, such as the body of a skill
that a loop runs on every turn, goes back whole once, at the copy placed
lowest: each other copy becomes a placeholder that points to it. A session
that ran one skill many times compacts again.
Fixed
- The reduction counts hidden content on both sides. It was added to the size
after compaction but not to the size before, so a session with large skill
bodies showed a negative reduction (-836%) and was never compacted.
v0.14.2
Added
recalltakeswho: "user","assistant"or"tools", which limits a
queryto what that side wrote.
Changed
recallsearch puts entries holding the exact phrase first, and ranks a word
above the same letters inside another word, soholdno longer rates
thresholdas high. Such matches are still found.- Russian function words such as
как,чтоandпочемуno longer count in a
search. A query of stopwords alone getsToo broadin the current session
too.
v0.14.1
Added
takeMidTurnPromptsandwithPromptRowsin the library: they turn prompts
typed mid-turn into user rows ahead of a compaction.
Fixed
- A prompt typed while the assistant works is the user's message everywhere.
recalland the session index read it, and a compaction gives it a row of its
own, so it enters the digest, the goal andrecentTurnsinstead of being lost
with the turn it was typed in. - The digest boundary no longer passes a call still waiting for its result, so a
pending call stays in the history.
v0.14.0
Added
askHeadChars, a library option: the head that decides which sides get a
question. The harder cut uses it to ask the first pass's questions, so it
reuses those answers.
Changed
- The decision model is asked only what can change the result. A side of a call
too short to cut gets no question, and a call with no such side gets none at
all. In 39 real sessions this drops 62% of the questions, and a compaction
with nothing to decide sends no request. The keep budgets are spent only on
what a cut can change, so small calls no longer use them up.
Removed
- The
cutIdsandheadCharsoptions offoldHiddenContent. Hidden content
goes back whole: nearly all of it is skill bodies, prompts typed mid-turn and
hook context, which recall cannot read.
Fixed
- The calls of a failed request, and a call no window can fit, are scored from
the transcript and compete for the keep budgets, so they are no longer sure to
stay. A blanket score of 1 put them above every call the model answered for,
while a call too big for the budget was cut all the same. - An input that an earlier compaction cut to a stub is left as it is, and not
cut again at each compaction. recallsearch skips long base64-like runs that mix digits and both cases. A
short word such asmaxmatched inside base64 by chance, and that entry
ranked first.<side-sessions-event>,<ci-monitor-event>and a stopped turn's
[Request interrupted by user]count as host text. They no longer become user
turns in the digest, take uprecentTurnsor enter the goal.- A digest's
Referencedlist holds a URL once, not its path as well.
v0.13.0
Added
- The compaction note names the documents (Markdown and plain text) that the
conversation read and the compaction cut, and tells the model to read again
any that holds instructions for the current work. A file of rules or
preferences is cheap to re-read, but once its text is gone the model does not
know it should. oldProse: summarizeshows the summarizing model which files each turn read,
not only how many tool calls it made.
Changed
- The decision model is told that the assistant will not re-read instructions it
was following. Its result criteria count such instructions as worth keeping,
and a document consulted once for a fact as safe to drop.
v0.12.0
Changed
- Compactions cut harder by default. Prose older than the last 4 user turns
(recentTurns, was 8) becomes a digest at every compaction, instead of only
when verbatim prose would be refused;keepResultTokensis 6000 (was 12000)
andkeepCallTokens2000 (was 4000). In a replay of 30 large real sessions, a
compaction kept 36% of the context instead of 70%, and the share of cut
results needed again later went from 2.2% to 3.1%;recallreads them back.
SetoldProse: "keep",recentTurnsand the budgets to keep more. Why these
values: README, "How hard a compaction cuts"; numbers indocs/evals.md. targetPercentis a goal, not a reason to give up. An automatic compaction
that misses it after the harder cut, but freesminReductionRatio, applies
its own result; the built-in summary runs only when JetCompact cannot free
that much or the decision model fails. In 0.11.0, at a small compaction
window, most compactions went to the built-in summary and took about 25 s; now
they take under 2 s at the same cost.- The harder cut (half budgets, 100-character heads) is only the second attempt
of a compaction; it no longer applies to every compaction once the session
holds an earlier cut.
Added
tools/replaytakes--options <json>to replay sessions with other
compaction options, such as the keep budgets ordecider: "algorithmic".
v0.11.0
Added
- Evals: A/B runs against Claude Code's built-in summary on
nine coding tasks, with a cost model of compacting harder or lighter. The
harness is jetcompact-eval. provider: "algorithmic"(librarydecider: 'algorithmic'): compaction with
no decision model and no key. Calls are scored from the transcript alone,
after pi-vcc's ranking and pi-blackhole's error tracking: superseded reads,
repeated calls and older todo lists near 0, resolved errors low, open errors
kept, search output lower, test and build output higher.ageCutResults(default off): a result an earlier compaction cut to a head
keeps only its cut note at the next compaction.questionCriteria(default off): each decision question gets true/false
criteria for what is worth keeping.
Changed
- Before an automatic compaction falls back to the built-in summary, a harder
cut is tried: the keep budgets halve and heads shrink to 100 characters.
Identical Jev requests within one compaction are sent once; an error status is
asked again. - Once a session holds a cut from an earlier compaction, every compaction cuts
that hard from its first attempt, so a long session keeps less context per
compaction and compacts less often. The first compaction stays light. - A
/compactyou type is applied whenever it frees anything; the size guards
hold back only automatic compactions. The/compactthe plugin queues in a
headless session carriesautomatic, from jetcompactand stays automatic.
(ferrisworks bd4a01d) - When Claude Code moves on (Esc, another hook settling first), the in-flight
request is abandoned and nothing is returned or delegated. When the hook runs
over Claude Code's time budget, or Claude Code refuses its result, that is
logged and the built-in summary runs wherebuiltinFallbackallows it.
(k-metehan 18f69f8, 0f4ca22) - When the built-in summary fails after a fallback, the plugin installs its own
result if that freed anything. (deadczarvc a45402e)
Fixed
compactAtPercentandtargetPercentcount against the window Claude Code
compacts at (CLAUDE_CODE_AUTO_COMPACT_WINDOWor a setting when set), not the
model's whole window. With a smaller compaction window, or on a 1M model, the
plugin asked for compaction late and the size target never applied.- The estimate of the context after a compaction keeps the system prompt, tools
and memory files as they are; it shrank them with the messages, so it came out
low. - A stubbed call's input is cut on a code point boundary, so an emoji is never
split. (k-metehan 11bd2be)
v0.10.0
First release of JetCompact, a fork of fast-jev-compaction based on
QuanticPotatoes 0.8.0. The plugin id is jetcompact; its markers, data folder
(~/.claude/jetcompact/) and qmd index (jetcompact-sessions) carry the name.
Added
recall(default on): the model gets arecalltool
(mcp__jetcompact__recall) over the session transcript, withquery(BM25 or
regex),expand(by#Nor tool_use_id, the uncut result, saved large
outputs included),rangeandtouched(files changed, or every call on a
file), in answers of at most 48k characters;agentruns a request on
subagent transcripts,sessionssearches past sessions of this project,
another or all (project), andsessionruns a request on one of them; with
qmd installed that search uses a qmd index of the sessions
(sessionIndex: auto, default;offalways scans). Cut notes name the recall
call instead of "re-run the tool" (recallNotesin the library)./recall-index: shows the session index, builds it now for all projects or
the ones named by name part, path, folder or., takes projects out of it, or
removes it.- A cross-session search that covers this session's project ends with how many
matches this session holds, since its hits leave this session out. - Recall guidance: the recall tool is kept in the prompt's tool list instead of
behind ToolSearch; a digest or summary header says recall reads its turns
back; and a compaction that cut anything opens the history with one
[jetcompact note]saying what it cut and to use recall before re-running a
tool, replaced by the next compaction (recallNotesin the library;
withoutCompactionNotestrips it). tools/node.cmd: a pinned Node.js, downloaded from nodejs.org and checked by
SHA-256 on first use, which runs the recall tool; CI checks the line endings
of the.cmdfiles and runs the wrapper on Linux, macOS and Windows.- Each compaction outcome, and each
/compactqueued in a headless session, is
appended as one line to
<CLAUDE_CONFIG_DIR or ~/.claude>/jetcompact/compactions.log(newest 200
lines). - Hidden content (skill bodies, prompts typed while a tool ran, attachments,
images and ToolSearch-loaded tools) is read from the conversation's API form
and folded back as text into the handle-stripped rows; images and deferred
tools become placeholders. The session context and the reminders the host
re-sends or that describe a past moment (token countdown, output style,
task-tool nudge, deferred tool list, MCP instructions, editor diagnostics,
file-changed notes) are skipped, and removed from rows an earlier compaction
folded them into. maxConcurrentRequests(default 4); a 429 or 5xx is retried once after 1 s;
no further request starts after a 401, 403 or no answer; the calls of a
request that still failed are kept and counted instats.requestsFailed./compact <instructions>reach Jev's goal (instructionsoption, capped at
2000 characters).provider: "openai": OpenAI's Decisions API (gpt-6-luna, key from
OPENAI_API_KEY) instead of Jev. Jev stays the default.
Changed
- Releases are made by pushing a version tag (
v0.10.0); a push tomainno
longer releases. The Release workflow checks that the tag matches every
declared version, then publishes the library to npm asjetcompact(trusted
publishing, with provenance) and the GitHub release. - Diagnostics (outcome line, per-call decisions, redaction count, skipped
auto-compacts) go to the debug log only; the user sees one short toast. - Type reference from Claude Code 2.1.292.
- Marketplace renamed to
crazycoder. - Adaptive prose digest: with
oldProseunset, each compaction keeps old prose
verbatim while that clears the size guards; when it would be refused, it
digests old prose instead (truncateHeadChars100 unless set), within the
samecompactionTimeoutMs, and later compactions start with the digest while
it is in the conversation. Long sessions no longer climb until every
compaction is refused, and short ones keep their prose verbatim.oldProse
andtruncateHeadCharsno longer have manifest defaults: if your saved plugin
options holdoldProse: "keep"ortruncateHeadChars: 300only because an
earlier install stored the defaults, remove them to get the adaptive default.
Fixed
oldProse: summarizealways fell back to the digest on Claude Code 2.1.292+,
where$.model.completereturns a result object instead of a string.