Command reference ยท Antigravity CLI
esc esc
Clears the prompt box, as long as no response is currently streaming.
esc esc refers to pressing the Escape key twice in the Antigravity CLI TUI โ so it's a keyboard shortcut, not a slash command. According to the official "Using AGY CLI" page, this key combination clears the current input in the prompt box, but only when no response stream is currently active.
In the standard keybindings table, the Escape key is additionally mapped more generally to "stop stream, close menus, or clear prompt", while esc esc specifically covers quickly clearing a faulty or no-longer-needed input.
To cancel a running agent response stream, according to the changelog (version 1.0.11), ctrl+c is the documented means instead: the first press cancels the active action, a second press triggers the CLI's exit flow. Key combinations can be customized via keybindings.json, but cli.exit and cli.enter are excluded from this according to the docs.
โ WHEN TO USE IT?
Quickly discard a faulty input
Press esc esc to clear the currently typed but not yet submitted input
Start over without a mouse
After a botched copy-paste into the prompt box, press esc twice to type everything from scratch
โ WHEN NOT TO?
Wanting to cancel a running response stream
According to the docs, esc esc only clears the prompt box and explicitly only works when no stream is active; ctrl+c is documented for canceling.
Better: Use ctrl+c to interrupt an active agent run
SOURCES
- Antigravity CLI docs: Using the CLI โ antigravity.google
- Antigravity CLI CHANGELOG (GitHub) โ raw.githubusercontent.com