Skip to content
Resume command (/resume) - Antigravity CLIcliAntigravity CLICommandsResume command (/resume) - Antigravity CLI Antigravity CLI CommandsAntigravity CLI
Available on:
Antigravity CLI

Browse, search, and resume past conversation threads, or recover your last session instantly from the command line.

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.


To open the conversation picker inside the TUI, follow these steps:

  1. Type /resume (or aliases /switch, /conversation) in the prompt box.
  2. 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.

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:

The CLI tab of the conversation picker listing five past conversations, each with its step count and when it was last updated. The cursor is on the second conversation, and the keyboard hints show Navigate, Page, Select, Rename (F2), Delete (F4), Switch Tab, and Go back or Clear search.

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 /resume opens 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 choose grouped (group by workspace) or none (flat list).
  • Set a persistent default in the configuration file (settings.json): set pickerGrouping in ~/.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"
}

To keep your history organized, you can rename conversations directly within the picker:

  1. Use ↑/↓ to highlight the conversation you want to rename.
  2. Press F2. The title becomes an editable field, prefilled with the current title.
  3. 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:

The conversation picker after pressing F2 on the second conversation. Its title is an editable field that now reads Integration test setup, with the text cursor at the end.

To clean up obsolete threads, follow these steps:

  1. Highlight the target conversation in the list.
  2. Press F4. A [Delete? (y/n)] confirmation prompt appears next to the title.
  3. Press Enter (or Y) to confirm deletion, or Esc (or N) to cancel.

For example, pressing F4 on the oldest conversation shows this prompt:

The conversation picker after pressing F4 on the last conversation, API Route Discovery, which shows the Delete? (y/n) confirmation prompt next to its title.

You can import and resume active threads initiated in the Antigravity App:

  1. With the conversation picker open, press Tab to switch from the CLI tab to the Other tab.
  2. Highlight the desktop conversation you want to import.
  3. Press Enter. A confirmation prompt [Import this conversation? (y/n)] appears.
  4. 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:

The Other tab of the conversation picker listing two conversations that were started in the Antigravity App. The selected conversation, Free Plan API Rate Limit, shows the Import this conversation? (y/n) prompt.


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)

To load a specific conversation directly by its unique ID, run the following command:

agy --conversation <conversation-id>

When you use the -c / --continue flag, the CLI resolves the target session using a local workspace-keyed cache.

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"
    }

The CLI resolves the session in the following sequence:

  1. Launch: You run agy -c from /path/to/workspace.
  2. Lookup: The CLI reads last_conversations.json and looks up the key /path/to/workspace.
  3. Verification: If an ID is found, the CLI queries the backend to verify the conversation still exists.
  4. 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.

Explore the following guides to learn more about managing sessions and settings: