What
/clear starts a new conversation with empty context. Two changes affect how Claude Code suggests it after you have been away:
- The prompt that offers a new conversation when you resume an old session now also has an idle trigger, for when the current session has been idle. It adds
evaluateIdleCacheQuotaandaskIdleCacheQuota. For the idle trigger,/clearis submitted as if from a key shortcut (fromKeybinding), in prompt input mode (inputModeOverrideprompt), and keeping what is in the input box (keepsComposer). - The hint
new task? /clear to save N tokenscan now be suppressed throughsetHintSuppressed. While suppressed, the hint is not scheduled, and any hint already shown is removed.
Why
After a long idle stretch the prompt cache (the stored copy of the conversation that makes the next request cheaper) may have gone stale, so Claude Code can offer a fresh start. Hiding the hint lets the interface avoid showing two suggestions at once.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Added since
A small documentation edit on Customize your status line touched a line naming /clear after this was published.
| `cost.total_cost_usd` | Estimated session cost in USD, computed client-side at list price unless a [`modelPricing`](/docs/en/settings-reference#modelpricing) table is in effect. May differ from your actual bill. Resets to \$0 when `/clea…statusline see the edit
Confirmed since
Anthropic's documentation has since written up /clear, on Claude Code changelog.
* Fixed a late-loading plugin's SessionStart hook output reaching the new conversation after `/clear` in headless sessionschangelog see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up /clear, on Claude Code changelog.