Resume command (/resume)
Section titled “Resume command (/resume)”Browse, search, and resume past conversation threads, or recover your last session instantly from the command line.
Overview
Section titled “Overview”Antigravity CLI allows you to maintain multiple ongoing development threads. The /resume command opens an interactive conversation picker TUI panel to browse and load your history. You can also resume sessions directly from your host terminal using command-line flags.
Interactive conversation picker
Section titled “Interactive conversation picker”To open the conversation picker inside the TUI, follow these steps:
- Type
/resume(or aliases/switch,/conversation) in the prompt box. - Press Enter.
/resume
You can also jump directly to a specific thread from the prompt without opening the picker by passing its conversation ID (or any unique prefix, such as the short ID shown in the status line):
/resume a1b2c3d4
If no conversation matches the ID—or if a short prefix matches more than one conversation—the CLI reports an error instead of opening the picker.
Navigating and searching conversations
Section titled “Navigating and searching conversations”The conversation picker displays a list of past conversations sorted by recency (newest first). Use the following controls to interact with the list:
- Search: start typing to instantly filter conversations by their title, the first line of the first prompt, or conversation ID.
- Navigate: use ↑/↓ to scroll through the filtered list.
- Page: use ←/→ to page backward and forward through older history blocks.
- Toggle grouping: press Ctrl + F to switch between a flat chronological list (Conversation View) and conversations grouped by workspace (Grouped View) until you close the picker.
- Expand or collapse a group: in Grouped View, press Ctrl + E to expand or collapse the workspace group under the cursor.
- Select: highlight your target session and press Enter to load it.
- Exit: press Esc to clear the search. If the search is empty, Esc closes the picker and returns you to the prompt.
The keyboard hints at the bottom of the picker show the available keys:

Grouping conversations by workspace
Section titled “Grouping conversations by workspace”By default, the /resume picker displays a single flat list ordered from most
recent to oldest (none). When your history spans more than one workspace, you
can switch views temporarily or change your default layout:
- Switch views temporarily: press Ctrl + F inside the
picker to toggle between Grouped View and Conversation View without
changing your saved configuration. The toggle lasts until you close the
picker, and the next
/resumeopens in your default view. In Grouped View, press Ctrl + E on a group header or any conversation in that group to expand or collapse it. - Set a persistent default in the settings panel (
/config): run/config(or/settings), select Conversation Picker Grouping, and choosegrouped(group by workspace) ornone(flat list). - Set a persistent default in the configuration file (
settings.json): setpickerGroupingin~/.gemini/antigravity-cli/settings.json(refer to CLI settings for all configuration options).
The following configuration makes workspace grouping the default whenever you
open /resume:
{
"pickerGrouping": "grouped"
}
Renaming a conversation
Section titled “Renaming a conversation”To keep your history organized, you can rename conversations directly within the picker:
- Use ↑/↓ to highlight the conversation you want to rename.
- Press F2. The title becomes an editable field, prefilled with the current title.
- Type the new name and press Enter to save, or Esc to cancel.
In the following example, the title of the second conversation is replaced with Integration test setup:

Deleting a conversation
Section titled “Deleting a conversation”To clean up obsolete threads, follow these steps:
- Highlight the target conversation in the list.
- Press F4. A
[Delete? (y/n)]confirmation prompt appears next to the title. - Press Enter (or Y) to confirm deletion, or Esc (or N) to cancel.
For example, pressing F4 on the oldest conversation shows this prompt:

Importing from the Antigravity App
Section titled “Importing from the Antigravity App”You can import and resume active threads initiated in the Antigravity App:
- With the conversation picker open, press Tab to switch from the CLI tab to the Other tab.
- Highlight the desktop conversation you want to import.
- Press Enter. A confirmation prompt
[Import this conversation? (y/n)]appears. - Press Enter (or Y) to confirm. The CLI clones the history, context, and tool trajectories into your terminal session.
The Other tab lists the conversations that you started in the Antigravity App:

Command-line shortcuts
Section titled “Command-line shortcuts”You can bypass the TUI picker and resume sessions directly when launching agy from your host shell.
Quick resume last session (-c / --continue)
Section titled “Quick resume last session (-c / --continue)”To instantly resume the single most recent conversation associated with your active workspace, run the following command:
agy -c
(Alternative: agy --continue)
Resume specific session (--conversation)
Section titled “Resume specific session (--conversation)”To load a specific conversation directly by its unique ID, run the following command:
agy --conversation <conversation-id>
Under the hood: the session cache
Section titled “Under the hood: the session cache”When you use the -c / --continue flag, the CLI resolves the target session using a local workspace-keyed cache.
The cache file
Section titled “The cache file”The session cache file has the following properties:
- Location:
~/.gemini/antigravity-cli/cache/last_conversations.json - Format: A JSON map associating absolute workspace directory paths with their most recently active conversation ID:
{ "/usr/local/google/home/username/Develop/my-project": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "/usr/local/google/home/username/Develop/another-repo": "f9e8d7c6-b5a4-3210-fedc-ba9876543210" }
Resolution workflow
Section titled “Resolution workflow”The CLI resolves the session in the following sequence:
- Launch: You run
agy -cfrom/path/to/workspace. - Lookup: The CLI reads
last_conversations.jsonand looks up the key/path/to/workspace. - Verification: If an ID is found, the CLI queries the backend to verify the conversation still exists.
- Load: Loads the appropriate session:
- If verified, it loads the session.
- If the conversation was deleted or the key is missing, it starts a fresh session for that workspace.
See also
Section titled “See also”Explore the following guides to learn more about managing sessions and settings:
- Managing conversations: Learn about workspace scoping, branching with
/fork, and listing, cleaning, or compacting saved conversations withagy conversations. - CLI reference: View all available slash commands and default keybindings.
- Settings, rendering, and keybindings: Configure rendering modes and customize keyboard shortcuts.