/clear

Starts a new conversation with empty context, optionally naming the previous one.

What /clear does

Starts a new conversation with an empty context. You can optionally pass a name to label the previous conversation, making it easier to find in the `/resume` picker. To free up context while continuing the same conversation, use `/compact` instead.

Syntax

/clear

In Chrome, `/clear` now closes the session's Chrome tab group.

Quick drill

Three cards from the /cards deck. Open each to check your answer.

  1. Which command starts a new conversation with empty context, optionally naming the previous one?

    • Clears the current context window.
    • Resumes a previous conversation.
    • Starts a new conversation.
    • Deletes all conversation history.
    Show answer

    /clear: Starts a new conversation.

  2. Which command reviews code diffs, PRs, or branches for correctness and cleanup opportunities?

    • Generates new code from a prompt.
    • Formats code according to style guides.
    • Compares two different code versions.
    • Reviews code diffs and PRs.
    Show answer

    /code-review: Reviews code diffs and PRs.

  3. Which command sets the prompt bar color for the current session?

    • Sets the prompt bar color.
    • Changes the terminal background color.
    • Configures the UI theme.
    • Displays color palette options.
    Show answer

    /color: Sets the prompt bar color.

Drill all 112 commands in /cards

Spaced repetition so the right command comes to mind in your terminal.