Command

/clear

Clear the current conversation context entirely.

安裝

manual
/clear

把這段加入 Claude Code MCP 設定,或直接透過 CLI 執行。

介紹

Hard reset of the session context. Use when /compact is not enough or when switching to an unrelated task. Built-in command.

常見使用情境

  • Switch to unrelated task
  • Recover from confused state
  • Start a fresh experiment

標籤

contextsessionbuilt-in