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

/compact

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.

Free up context by summarizing the conversation so far. Optionally pass focus instructions for the summary. See how compaction handles rules, skills, and memory files

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 / 150on this box, as of v2.1.309
Written about v0.2.33 first named in a changelog, 7 Mar 2025

In the changelogs

25

Releases whose published page names /compact.

  1. v2.1.305
    /usage can suggest ways to save and queue a fix for you

    /usage can now point out what is costing you most and suggest fixes such as /compact or lower effort, which you can queue as a follow-up

    found in this entry's text

  2. v2.1.293
    /compact now notes when its message already shows the summary

    The result of /compact now records whether its on-screen message repeats the conversation summary

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

  3. v2.1.286
    /compact, /clear and /rewind ask to confirm inside an agent view

    Typing /compact, /clear or /rewind while viewing an agent now asks you to confirm running it on the main conversation

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

  4. v2.1.283
    The compaction progress bar under the spinner is gone

    The spinner row no longer shows a percentage bar while a conversation is being compacted

    found in this entry's text

  5. v2.1.283
    Progress display resets when compaction starts

    When compaction begins, Claude Code now resets the response length counter and switches the display to a requesting state

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

  6. v2.1.282
    Warning before resuming a long, idle conversation that would use much of your usage limit

    Resuming a large, long-idle conversation can show an estimate of how much of your 5-hour usage limit it will use, with an option to start fresh

    found in this entry's text

  7. v2.1.274
    Many-image dimension error no longer suggests /compact when compaction is disabled

    Image-too-large error stops suggesting /compact when compaction is disabled

    found in this entry's text

  8. v2.1.274
    Critical memory usage banner text unchanged but reformatted with memoized hook

    The 'Critical memory usage' banner code was reorganized with memoization, keeping the same wording

    found in this entry's text

  9. v2.1.267
    SDK/headless sessions get an explicit rejection for compact()

    Calling compact() in headless SDK sessions now returns a clear rejection instead of silently doing nothing

    found in this entry's text

  10. v2.1.267
    session.compact implementation gated by DISABLE_COMPACT

    session.compact now blocks itself while DISABLE_COMPACT is set or a turn is still running

    found in this entry's text

  11. v2.1.265
    New 'command.run' hook pipeline for slash-command dispatch

    Slash commands can now be intercepted and their output overridden by a new 'command.run' hook

    found in this entry's text

  12. v2.1.265
    late-tool-additions rejection message now also mentions inline-tools fallback

    Rejected late-tool-addition warning now also mentions falling back to inline tools

    found in this entry's text

  13. v2.1.257
    MCP late tool-addition rejections now sticky-reject a beta until /clear or /compact

    When an MCP server rejects a late tool addition, the beta stays rejected until you run /clear or /compact.

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

  14. v2.1.248
    DISABLE_COMPACT now takes effect mid-session

    Setting or clearing DISABLE_COMPACT now takes effect immediately, not just at startup.

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

  15. v2.1.216
    Context Over-Limit Warning Improved

    found in this entry's text

  16. v2.1.201
  17. v2.1.128

    found in this entry's text

  18. v2.1.108
    JavaScript REPL Tool

    found in this entry's text

  19. v2.1.108
  20. v2.1.98
    Context Limit Messaging

    found in this entry's text

  21. v2.1.41
    Image Dimension Error Handling

    found in this entry's text

  22. v2.1.20
    Compact Conversation Keybinding

    found in this entry's text

  23. v0.2.36
    Improvements

    found in this entry's text

  24. v0.2.33
    New Features

    found in this entry's text

  25. v0.2.33
    User Experience Improvements

    found in this entry's text

First cited

7

The earliest release whose published evidence quoted /compact was v2.1.248, 27 Aug 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.24827 Aug 2026/compact or /clear to continue
v2.1.2571 Sep 2026falling back to the ToolSearch announcement, sticky-rejecting the beta until /clear or /compact
v2.1.2658 Sep 2026falling back to the ToolSearch announcement (or to inline tools where there is no ToolSearch), sticky-rejecting the beta until /clear or /compact
v2.1.2679 Sep 2026compaction is switched off in this session (DISABLE_COMPACT), for /compact and plugins alike
v2.1.2679 Sep 2026not available in a headless (-p / SDK) session yet: compaction here runs inside a turn (a /compact prompt); catch it and carry on
v2.1.27416 Sep 2026An image in the conversation exceeds the dimension limit for many-image requests (2000px). Run /compact to remove old images from context, or start a new session.

1 further span in the ledger name it. The list above is the earliest first and stops at 6.

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