/clear
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.
Start a new conversation with empty context. Pass a name to label the previous conversation in the /resume picker. To free up context while continuing the same conversation, use /compact instead. Resume the previous conversation with /resume, or, in the same Claude Code process, restore it from the rewind menu's previous-session entry. Aliases: /reset, /new
Anthropic's own wording. Read off Commands, captured 2026-09-28.
In the changelogs
45Releases whose published page names /clear.
-
v2.1.307
/clearwithdraws the resume point in the conversation it leavesAfter
/clear, Claude Code removes any resume checkpoint from the old conversation so it no longer resumes to that pointnamed in this entry, found in this entry's text
-
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
/compactor lower effort, which you can queue as a follow-upfound in this entry's text
-
v2.1.300
Claude Code can scan a mod's folder for keys and tokens before you share it
A new built-in tool scans a mod's folder for keys and tokens before it is shared, asks you first, and reports file names and secret types
found in this entry's text
-
v2.1.295
Models that reject the 1M-token context option stop failing every request
If a model rejects the 1M-token context option, Claude Code leaves it out for that model and tries again after
/clear, compaction, resume or provider changefound in this entry's text
-
v2.1.295
The idle hint to use /clear can now be hidden
The "new task? /clear to save N tokens" hint can now be held back, and removed if it is already showing
found in this entry's text, named in this entry
-
v2.1.295
Offer to start a fresh conversation after a session sits idle
Claude Code can offer to start a new conversation after a session has been idle and its cached context has gone stale
found in this entry's text
-
v2.1.293
Session safety-stop count now documents what it counts and when it resets
The result field counting safety stops covers refusals, content-filter stops and sometimes safety-monitor blocks, and resets on resume and /clear
found in this entry's text
-
v2.1.290
Remote Control users can run /effort, /model, /rename and /usage while Claude is working
Someone connected through Remote Control can now run
/effort,/model,/renameand/usagestraight away while Claude is mid-replyfound in this entry's text
-
v2.1.288
Resuming into a new conversation waits for a queued
/clearto applyWhen resuming starts a fresh conversation, Claude Code waits for a queued
/clearbefore linking back to the old one, or reports that it never appliedfound in this entry's text, named in this entry
-
v2.1.286
/compact,/clearand/rewindask to confirm inside an agent viewTyping
/compact,/clearor/rewindwhile viewing an agent now asks you to confirm running it on the main conversationfound in this entry's text, named in this entry
-
v2.1.286
Switching to a fallback model now warns when the context window shrinks
When Claude Code falls back to a model with a smaller context window, the notice shows both sizes and suggests
/clearor a larger fallbackfound in this entry's text
-
v2.1.285
The idle /clear hint now also counts from turns that finish elsewhere
The 'new task? /clear' hint after a long idle spell now counts from the latest completed turn, including one that finished elsewhere
found in this entry's text, named in this entry
-
v2.1.284
Promotion eligibility is remembered for an hour instead of checked on every start
Claude Code now saves whether you are eligible for a promotion for up to an hour, and checks again after /clear
found in this entry's text, named in this entry
-
v2.1.283
A built-in module now reacts only to /clear, /diff and /resume
One built-in module that used to step in on every slash command now does so only for
/clear,/diffand/resumefound in this entry's text, named in this entry
-
v2.1.283
Starting fresh from the usage warning keeps a pointer to the old conversation
Choosing a new conversation from the usage warning on resume now leaves a note that Claude can look up the previous one
found in this entry's text, named in this entry
-
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
-
v2.1.282
Warning about usage-limit cost when resuming an old conversation, off by default
A dialog that estimates how much of your 5-hour usage limit resuming an old conversation would use, and offers a fresh one, is built but off without a server config
found in this entry's text
-
v2.1.281
SDK conversation_reset frame gains trigger, user_message_uuid and timestamp
The SDK's conversation_reset message now says what caused the reset and when, and can link to its /clear
found in this entry's text
-
v2.1.281
/clear now tells the session reset what triggered it
/clear now tells the session reset that it was the trigger and which command message started it
found in this entry's text, named in this entry
-
v2.1.277
New SDK query() usage/cost fields get detailed docs
SDK docs now spell out that query() usage and cost totals accumulate across turns and reset on /clear
found in this entry's text
-
v2.1.269
New agent-SDK control-request: rename_session
SDK control-request rename_session refined with remote/host distinction and a get_memory_dialog request added
found in this entry's text
-
v2.1.265
Bridge-initiated /clear can now auto-dismiss a pending local dialog, behind a kill-switch gate
A remote bridge session's /clear command can now automatically dismiss a local dialog blocking it
found in this entry's text, named in this entry
-
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
-
v2.1.260
Transcript now shows a spacer marker where context was cleared
The transcript now shows a visual spacer where context was cleared or compacted.
found in this entry's text, named in this entry
-
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
-
v2.1.248
DISABLE_COMPACT now takes effect mid-session
Setting or clearing DISABLE_COMPACT now takes effect immediately, not just at startup.
found in this entry's text
-
v2.1.246
A slow artifact publish can no longer leak into the next conversation
A slow artifact publish finishing after /clear no longer writes into your new conversation.
named in this entry, found in this entry's text
-
v2.1.235
Context-limit banner now tells you auto-compact is switched off
Context-limit banner now tells you when auto-compact is off and points you at /config
found in this entry's text
-
v2.1.224
REPL bridge survives
/clearinstead of droppingRunning /clear no longer disconnects the editor bridge; it follows you onto the new session.
named in this entry, found in this entry's text
-
v2.1.223
SDK result docs for modelUsage and totalCostUsd
SDK results now document exactly what token usage and dollar cost figures include, and that /clear resets them.
named in this entry, found in this entry's text
-
v2.1.223
SDK result schema documents what usage, total_cost_usd and modelUsage actually cover
SDK result fields now explain that usage covers only the main loop and costs are estimates.
named in this entry, found in this entry's text
-
v2.1.222
Status-line notices moved from JSX to a segments array
Status-line notices are now built as plain text pieces, so they render more consistently.
found in this entry's text
-
v2.1.216
Context Over-Limit Warning Improved
found in this entry's text
-
v2.1.205
EndConversationmodel toolfound in this entry's text
-
v2.1.201
claude-sonnet-5 added to model compatibility list
found in this entry's text
-
v2.1.199
/rewind Tip After /clear
found in this entry's text
-
v2.1.196
padded-countdown Token Reminder Mode
found in this entry's text
-
v2.1.193
Autocompact Thrashing Detection
found in this entry's text
-
v2.1.191
Contextual Tips System [Gradual Rollout]
found in this entry's text
-
v2.1.122
Cmd+K Clear Screen
found in this entry's text
-
v2.1.111
/clear Command Description Clarified
found in this entry's text
-
v2.1.108
Usage Analysis Dashboard (Birch Compass) [Gradual Rollout]
found in this entry's text
-
v2.1.108
/clearCommand Description Updatedfound in this entry's text
-
v2.1.92
Context Window Size Notification
found in this entry's text
-
v1.0.60
Technical Improvements
found in this entry's text
First cited
7The earliest release whose published evidence quoted /clear was v2.1.92, 4 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.
1 further span in the ledger name it. The list above is the earliest first and stops at 6.
Presence across releases
0The 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.