promptgarten 🌱

Command reference Β· Antigravity CLI

/clear

Clears the terminal and active conversation contexts. Alias: /new.

/clear belongs to the Utilities category of Antigravity CLI slash commands, alias /new. The command clears the prompt and starts a new conversation session within the same terminal session: both the terminal display and the active conversation context are reset, so the agent continues without any prior knowledge from the previous conversation. This distinguishes /clear from a pure screen reset via Ctrl+L (Clear TUI Screen), which only cleans the terminal output but leaves the conversation context untouched and continues the running conversation. /clear should also not be confused with Esc Esc, which only clears the current input line in the prompt field, provided no streaming is currently active, without ending the conversation itself. The previous conversation history isn't permanently lost with /clear: the session is ended and archived, and can be reopened and continued later via the conversation picker (/resume, aliases /switch and /conversation).

πŸ”„ THE SAME TASK (β€œCLEAR CONTEXT/HISTORY”) ON OTHER PLATFORMS

Compare all 28 tasks β†’

βœ… WHEN TO USE IT?

Start a new topic in the same session

/clear after completing a task, before starting a completely new topic

The context window is full after a long, completed debugging session and the history is no longer needed for the next task

/clear once the bug is fixed and verified, before an independent new task begins

β›” WHEN NOT TO?

Only the terminal output should be cleaned, but the conversation context should be preserved

/clear resets not just the display but also the active conversation context, and starts a new session.

Better: use Ctrl+L to clear only the terminal output without ending the conversation

The current conversation should be preserved mid-task and continued later

/clear ends the active thread and starts a new session - in the middle of a task, this loses the direct connection to the previous context.

Better: use /resume to switch between existing conversations instead of clearing

SOURCES

MORE COMMANDS Β· Antigravity CLI

/config/context/copy/credits/diff/exit/fast/feedback/fork/help/hooks/keybindings

All commands Β· Antigravity CLI β†’

Share:𝕏inπŸ’¬