Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

/autocompact

slash never mined documented JSON

A Claude Code slash command, read out of the shipped bundle. No mined inventory carries it: everything below comes from what this site has written about it.

Set the auto-compact window: how full the context window gets before Claude Code compacts automatically. Pass a size such as 500k, or auto to return to the window tuned for your model. Claude Code saves the value to user settings and applies it to the current session. See Set the auto-compact window for accepted values and what overrides it. Without an argument, opens a dialog that shows the current window. Requires Claude Code v2.1.221 or later

Anthropic's own wording. Read off Commands, captured 2026-09-28.

First seen — never in a mined build
Last seen — never in a mined build
Builds0 / 149on this box, as of v2.1.308
Written about v2.1.89 first named in a changelog, 31 Mar 2026

In the changelogs

12

Releases whose published page names /autocompact.

  1. v2.1.300
    /autocompact warns about high token usage only for larger windows

    The high-token-usage warning in /autocompact now shows only when the chosen window is bigger than the auto window for your model

    found in this entry's text, named in this entry

  2. v2.1.296
    Plugin agents can set their own auto-compact window

    Plugin agent files can now set autoCompactWindow to choose when that agent compacts its own conversation as a subagent

    found in this entry's text

  3. v2.1.296
    Subagent definitions now pass their own auto-compact window to the agent

    An agent definition can set autoCompactWindow, and Claude Code now passes that value on to the subagent it starts

    found in this entry's text

  4. v2.1.288
    Auto-compact window can now be set separately for each model

    autoCompactWindow can now go under modelSettings for a single model, as a token count or auto

    found in this entry's text

  5. v2.1.281
    Auto-compact window lookup now normalises the model name first

    /autocompact now standardises the model name first, so aliases get the right default and limit

    found in this entry's text, named in this entry

  6. v2.1.221
    /autocompact ungated, plus an --autocompact CLI option

    You can now set when auto-compaction kicks in with a new --autocompact flag, and /autocompact works for everyone.

    named in this entry, found in this entry's text

  7. v2.1.121
    Autocompact Status Display

    found in this entry's text

  8. v2.1.120
    Improved Autocompact Notification

    found in this entry's text

  9. v2.1.119
  10. v2.1.117

    found in this entry's text

  11. v2.1.117
    /autocompact Interactive Dialog

    found in this entry's text

  12. v2.1.89

    found in this entry's text

First cited

2

The earliest release whose published evidence quoted /autocompact was v2.1.120, 24 Apr 2026. That is the oldest release this project wrote about it, so it is a floor on the name's age and not the release that introduced it. It is not a presence reading: which builds carried the name is the table below.

ReleaseDateThe span that was quoted
v2.1.12024 Apr 2026configure with /autocompact
v2.1.12127 Apr 2026/autocompact to configure

Presence across releases

0

The miner has never read a build containing this name. It is here because a changelog entry of ours names it, which is evidence that it existed and not evidence of which releases carried it. The inventory starts at v2.1.138 and everything older than that was never mined.

Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the slash command does. All slash commands.

Feedback