Skip to content

compactionNotice

compactionNotice(outcome, focus?): SlashCommandNotice

Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/modules/slashCommands.ts:1414

GS2-23 — the notice for a landed /compact, built from what the runner RETURNS rather than from what was asked for, so it can only describe the compaction actually applied.

It says three things, because those are the three the person cannot otherwise observe: what was folded, what was kept, and how much smaller the model’s context is. And it says what did NOT change — the transcript on screen — because the screen is the person’s record and a notice that only mentioned the model would leave them expecting lines to vanish. The size is a message count and a character estimate; tokens are not counted here.

ConversationCompaction

string

SlashCommandNotice