Source Intelligence
Sweep 28 Aug 2026 · 16:06Z Build v2.1.251 479 read Stable v2.1.236 Latest v2.1.251 Next v2.1.251 Feeds RSS JSON llms.txt

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

Search the documentation

36 pages for /clear.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Track cost and usage Claude Code CLI · in the page agent-sdk/cost-tracking …tal for the whole call so far. In a call where your app never sends `/clear`, `/reset`, or `/new`, read the latest result for call totals rather than summing across results. The running totals start… Agent SDK reference - Python Claude Code CLI · in the page agent-sdk/python …onversation is replaced without ending the connection, such as after `/clear`. See [Track costs in streaming input mode](/docs/en/agent-sdk/cost-tracking#track-costs-in-streaming-input-mode) for how a… Extend agents with skills Claude Code CLI · in the page agent-sdk/skills …le-mode) or when resuming a session. </Note> ### Reset context with `/clear` The `/clear` command resets the conversation to an empty context, so subsequent prompts start with no prior conversation… Share session output as artifacts Claude Code CLI · in the page artifacts …from your claude.ai account, so it works in a new session and after `/clear`, when the link has scrolled out of the terminal. Requires Claude Code v2.1.208 or later. ## Share an artifact A new arti… Best practices for Claude Code Claude Code CLI · in the page best-practices …ed message. * **`"Undo that"`**: have Claude revert its changes. * **`/clear`**: reset context between unrelated tasks. Long sessions with irrelevant context can reduce performance. If you've correct… Claude Code changelog Claude Code CLI · in the page changelog …name when `~/.claude.json` has an invalid MCP server entry * Fixed `/clear` removing the `/rename` session name from the prompt bar even though the name was kept for the new session * Fixed Ctrl+R… Checkpointing Claude Code CLI · in the page checkpointing …messages were. #### Rewind past a cleared conversation If you ran `/clear` earlier in the same Claude Code process, the rewind menu shows an additional entry at the top of the list labeled `/resume… Use Claude Code with Chrome Claude Code CLI · in the page chrome …group when the session ends depends on how it ends: * When you type `/clear`, Claude Code closes the group, open pages included, unless work that survives the clear is still running * When you switch… Use Claude Code on the web Claude Code CLI · in the page claude-code-on-the-web …| | `/clear` | No | Start a new session from the sidebar instead… Commands Claude Code CLI · in the page commands …checks the diff for security vulnerabilities. **Between sessions.** `/clear` starts fresh on a new task while keeping project memory. `/resume` returns to an earlier conversation, `/branch` branches… Explore the context window Claude Code CLI · in the page context-window …w) for accepted values and overrides. * **Clear between tasks**: run `/clear` when switching to unrelated work. Old conversation crowds out the files you need next and costs tokens on every message. *… Manage costs effectively Claude Code CLI · in the page costs …k cache read, 50.0k cache write ($0.55) ``` These totals reset when `/clear` starts a new session, so the next session's total cost starts at \$0. Before v2.1.211, they kept accumulating across `/cle… Error reference Claude Code CLI · in the page errors …| | `Context limit reached · /compact or /clear to continue`… Fullscreen rendering Claude Code CLI · in the page fullscreen …opens it in `$VISUAL` or `$EDITOR`. ## Clear the conversation Run `/clear` to start a new conversation. Pressing `Ctrl+L` or `Cmd+K` doesn't clear the conversation; Claude Code redraws the screen a… Glossary Claude Code CLI · in the page glossary …ou invoke by typing `/name` in the prompt. Built-in commands such as `/clear`, `/model`, and `/compact` control the session. You can define your own commands as files in `.claude/commands/`, or instal… Keep Claude working toward a goal Claude Code CLI · in the page goal …`, `none`, and `cancel` are accepted as aliases for `clear`. Running `/clear` to start a new conversation also removes any active goal. ### Resume with an active goal When you resume a session, Clau… Hooks reference Claude Code CLI · in the page hooks …| | `clear` | `/clear`… Automate actions with hooks Claude Code CLI · in the page hooks-guide …ended. This hook only fires on the `clear` reason, set when you run `/clear`, not on normal exits: ```json theme={null} { "hooks": { "SessionEnd": [ { "ma… Interactive mode Claude Code CLI · in the page interactive-mode …project: * Input history is stored per working directory * Running `/clear` starts a new session: recall then lists the new session's prompts first, with earlier sessions' prompts after them. The pr… Output styles Claude Code CLI · in the page output-styles …h Claude Code reads once at session start. Changes take effect after `/clear` or a new session. See [How Claude Code uses prompt caching](/docs/en/prompt-caching#changing-output-style) for what an out… How Claude Code uses prompt caching Claude Code CLI · in the page prompt-caching …d, auto memory, unscoped rules | Session starts, or after `/clear` or `/compact` | | Conversation | Your messages, Claude's responses, tool results | Every turn… Quickstart Claude Code CLI · in the page quickstart …----------------------- | -------------------------- | -------- | | `/clear` | Clear conversation history | `/clear` | | `/help` | Show available commands | `/help`… Continue local sessions from any device with Remote Control Claude Code CLI · in the page remote-control …appens. These cases go beyond ordinary messages: * **Compaction and `/clear`**: while Claude Code [compacts the conversation](/docs/en/context-window#what-survives-compaction), connected devices show… Run prompts on a schedule Claude Code CLI · in the page scheduled-tasks …executing: * Built-in commands such as `/permissions`, `/model`, or `/clear` * Skills marked [`disable-model-invocation: true`](/docs/en/skills#frontmatter-reference), including the bundled `/verify`… Manage sessions Claude Code CLI · in the page sessions …data) as you work, so you can return to one after exiting or running `/clear`. Use these entry points: | Command | What it does… Claude Code settings Claude Code CLI · in the page settings …cs/en/output-styles): part of the system prompt, which is rebuilt on `/clear` or restart ### Invalid entries in managed settings Managed settings parse tolerantly. When a managed configuration conta… Claude Code settings reference Claude Code CLI · in the page settings-reference …nce per conversation. An edit to this key takes effect after you run `/clear` or start a new session. * **Scope**: [`Any file`](#scopes) * **Type**: string, the name of a [built-in](/docs/en/output-s… Customize your status line Claude Code CLI · in the page statusline …e is in effect. May differ from your actual bill. Resets to \$0 when `/clear` starts a new session. Before v2.1.211, the total carried over after `/clear`… Create custom subagents Claude Code CLI · in the page sub-agents …agent. The check is scoped to the current conversation and resets on `/clear`. As of v2.1.198, a subagent treats messages from the agent that launched it as normal task direction, including mid-task… Tools reference Claude Code CLI · in the page tools-reference …mands return `Claude ended this conversation. Start a new session (or /clear) to continue.`, and only `/clear`, `/resume`, `/help`, `/exit`, and `/feedback` still run. Claude Code records the end in t… Troubleshooting Claude Code CLI · in the page troubleshooting …(/docs/en/sub-agents) so it runs in a separate context window 4. Run `/clear` if the earlier conversation is no longer needed ### Command hangs or freezes If Claude Code seems unresponsive: 1. Pres… Find bugs with ultrareview Claude Code CLI · in the page ultrareview …er conversation: when you start a new conversation, for example with `/clear`, Claude Code shows the confirmation again for the next paid review. ## Track a running review A review typically takes 5… Week 13 · March 23–27, 2026 Claude Code CLI · in the page whats-new/2026-w13 …erminal, not first-detected</div> <div>Idle-return nudge to <code>/clear</code> after 75+ minutes away</div> <div>VS Code: rate limit banner, Esc-twice rewind picker</div> </div> </div> [Fu… Week 26 · June 22–26, 2026 Claude Code CLI · in the page whats-new/2026-w26 …mmand output with the ! prefix, and resume a conversation from before /clear with /rewind. <div className="digest-meta"> <span>Releases <a href="/docs/docs/en/changelog#2-1-185">v2.1.185 → v2.1.193… Week 34 · August 17–21, 2026 Claude Code CLI · in the page whats-new/2026-w34 …": "Concise" } ``` <p className="digest-feature-try">Run <code>/clear</code> or start a new session, and Claude's replies lead with the result.</p> <a className="digest-feature-link" href="/… What's new Claude Code CLI · in the page whats-new/index …second prompt); **`/rewind`** can resume a conversation from before `/clear` was run; and **background subagents** now surface permission prompts in the main session instead of auto-denying. [Read…