/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.
What it is
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](/docs/en/checkpointing#rewind-past-a-cleared-conversation). The rewind entry requires Claude Code v2.1.191 or later. Aliases: /reset, /new
Anthropic's own wording. Read off Commands, captured 2026-08-28.
Presence across releases
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.
Changelog entries naming it
-
v2.1.246A 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
-
v2.1.224REPL bridge survives
/clearinstead of droppingRunning /clear no longer disconnects the editor bridge; it follows you onto the new session.
named in this entry
-
v2.1.223SDK 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
-
v2.1.223SDK 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
Documentation pages
- Commands reference table Claude Code CLI
- Track cost and usage mentions it Claude Code CLI
- Agent SDK reference - Python mentions it Claude Code CLI
- Extend agents with skills mentions it Claude Code CLI
- Share session output as artifacts mentions it Claude Code CLI
- Best practices for Claude Code mentions it Claude Code CLI
- Claude Code changelog mentions it Claude Code CLI
- Checkpointing mentions it Claude Code CLI
- Use Claude Code with Chrome mentions it Claude Code CLI
- Use Claude Code on the web mentions it Claude Code CLI
- Explore the context window mentions it Claude Code CLI
- Manage costs effectively mentions it Claude Code CLI
- Error reference mentions it Claude Code CLI
A reference table page is one whose own table defines this name, and it is where the description above came from. A page that mentions it carries the name somewhere in its text and may say nothing about it at all. Every page carrying it.
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.