◉ANTIGRAVITY LABJP
Articles/Integrations
⬡ Integrations/2026-11-25Intermediate

A Conversation Started in the Desktop App Won't Resume in agy: How I Hand Off Work Between Two Separate Stores

The Antigravity desktop app and the agy CLI save conversations in separate folders, so neither can list or resume what the other started. Where the new agy -r flag from 1.5.16 helps, what to put in a HANDOFF.md so you don't lose your place, and a shell script that writes it for you (checked against the Releases page and Issue #1773 as of November 2026).

Antigravity CLI47agy9Desktop AppConversation HistoryWorkflow12

An agy run I'd left going on the Android side of an app finished in the early evening, and I wanted to look over the diff slowly in the desktop app. I opened the app and the conversation simply wasn't in the sidebar. Same Mac, same repository, same account. For a while I kept retyping the conversation's title into the search box.

The first thing worth saying is that this isn't a misconfiguration. As of November 2026, the app and the CLI store conversations in different places, and neither can list or resume the other's. That's exactly why whoever moves between them needs a routine of their own.

The two stores don't meet — yet

A feature request opened on November 23 (google-antigravity/antigravity-cli #1773) lays out the situation in a few lines.

SurfaceWhere conversations and artifacts liveWhat the other side sees
Desktop app~/.gemini/antigravity/Not listed by agy --resume
agy CLI~/.gemini/antigravity-cli/ (conversations under conversations)Not shown in the app sidebar

The CLI location is also confirmed in the 1.5.15 release notes, which say all saved conversations are now kept in ~/.gemini/antigravity-cli/conversations. The same release stopped pruning older conversations beyond the 500 most recent at startup. So CLI history is now harder to lose — and still invisible from the app.

The issue proposes a shared store or an opt-in sync, and it has picked up supporting comments. As of November 25, 2026, though, it's an open request. What follows is the stopgap routine I use until something like it ships.

agy -r in 1.5.16 only works inside the CLI

Version 1.5.16, released November 24, added -r and --resume as aliases for --conversation. You can resume a specific conversation with agy -r <id>.

It's a nice shortcut, but when I read the release note I nearly assumed I could pass it the ID of a conversation from the desktop app and pick up where I left off. That doesn't happen: -r only searches the CLI's own store, and the app's conversations aren't part of it at all.

In hindsight that's obvious — a new alias doesn't change where the lookup happens. So I drew a line for myself:

Conversations stay on the surface where they started. Only the state of the work crosses over.

Work started in the CLI gets resumed in the CLI, and work started in the app gets resumed in the app. When I switch surfaces, I don't try to carry the conversation; I carry the repository's state and a note about what comes next.

What goes into the handoff note

The issue itself mentions the current workaround: write a HANDOFF.md by hand and start a fresh session. I do the same, but writing it by hand, something always went missing. The three things I kept needing were:

  1. Which branch, and which commit, the work had reached
  2. Which files still had uncommitted changes
  3. What to ask the agent to do next — and what not to ask yet

The first two are mechanical, so a script handles them. The third I write in my own words. When I skipped it, the receiving agent would sometimes helpfully "finish the rest" for me, including parts I wasn't ready to hand over.

A script that writes HANDOFF.md

The problem this solves is the copy-by-hand step every time you switch surfaces, and the gaps that creep into it. Run it from the root of your repository; it collects what the next session needs into HANDOFF.md and lists the newest entries in both stores.

#!/usr/bin/env bash
# ag-handoff.sh — write the state of the work to HANDOFF.md before switching between the app and agy
# Usage: ./ag-handoff.sh [source conversation ID] [next step, one line]
set -euo pipefail
 
ID="${1:-(not recorded)}"
NEXT="${2:-(fill this in before handing off)}"
OUT="HANDOFF.md"
 
git rev-parse --is-inside-work-tree >/dev/null 2>&1 || { echo "Run this inside a Git repository" >&2; exit 1; }
 
# Move any existing HANDOFF.md aside with a timestamp so the previous note is never overwritten
[ -f "$OUT" ] && mv "$OUT" "HANDOFF.$(date +%Y%m%d-%H%M%S).md"
 
{
  echo "# HANDOFF $(date '+%Y-%m-%d %H:%M')"
  echo
  echo "- Source conversation ID: ${ID}"
  echo "- Branch: $(git branch --show-current)"
  echo "- HEAD: $(git log -1 --format='%h %s')"
  echo
  echo "## Recent commits"
  git log -5 --format='- %h %s'
  echo
  echo "## Uncommitted changes"
  CHANGES="$(git status --short)"
  if [ -n "$CHANGES" ]; then echo '```'; echo "$CHANGES"; echo '```'; else echo "- none"; fi
  echo
  echo "## Next step"
  echo "- ${NEXT}"
  echo
  echo "## Not yet"
  echo "- (list work that is out of scope)"
} > "$OUT"
 
echo "Wrote $OUT"
 
# List the newest entries in both stores (does not depend on their file format)
for d in "$HOME/.gemini/antigravity" "$HOME/.gemini/antigravity-cli/conversations"; do
  echo "--- $d"
  if [ -d "$d" ]; then ls -t "$d" | head -5; else echo "(not found)"; fi
done

A few notes on why it's written this way. It only lists names in each store with ls -t and never tries to parse what's inside; the storage format may change between versions, and I'd rather the script survive that. It moves an existing HANDOFF.md aside instead of deleting it, so running it twice in a row doesn't cost you the previous note. And the "Not yet" heading always appears, even when empty — seeing a blank section is what nudges me to add one line before handing off.

If you don't want HANDOFF.md in your commits, adding HANDOFF*.md to .gitignore keeps things tidy.

The order I follow when switching

  1. Stop the agent on the surface you're leaving. If you open the other side while it's still running, two agents end up editing the same working tree
  2. Run ./ag-handoff.sh <source-id> "review the diff and check the tests pass"
  3. Fill in one line under "Not yet"
  4. On the new surface, start a fresh conversation and have the first request read HANDOFF.md
  5. When going back, use agy -r <source-id> in the CLI to continue, and regenerate HANDOFF.md so the original conversation learns what happened elsewhere

Step 1 is the part the issue proposes to solve with session locking. Until that exists, keeping it to one surface at a time on the human side is the most reliable option I've found. In 1.5.16, Auto mode also started creating and editing files outside the workspace without asking when they sit inside a version-controlled repository — one more reason I stop one side before touching the same repository from the other.

For finding old conversations in the first place, see The history page is gone: three ways to find past chats after 2.28.2. For what's inside the CLI's conversation database, see Antigravity CLI's conversation database doesn't shrink by a single byte when you delete duplicates. And for deciding which tool to hand work to, three questions for choosing between Antigravity CLI and Claude Code is a close cousin of this piece.

When a shared store arrives

If the issue gets implemented, the second half of this script — the part that lists both stores — should become unnecessary. The first half, writing the state of the work onto one page, I plan to keep. As an indie developer fixing several apps in parallel, I sometimes forget where I stopped yesterday even when the conversation itself is still right there.

If you try one thing, run the script once in the repository you have open and rewrite its "Next step" line in your own words. That small pause before switching surfaces has saved me a lot of mix-ups on the other side.

Share

Thank You for Reading

Antigravity Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • ✦Copy-paste ready implementation code
  • ✦New advanced guides published daily
  • ✦$5/mo or $10 for lifetime access
View Membership →

If you found this article helpful, a small tip ($1.50) would mean a lot to us. Your support helps keep this site ad-free and covers server and hosting costs.

Related Articles

⬡ Integrations2026-11-21
Moving Your Antigravity Setup from Zed to VS Code, JetBrains, or Xcode: The Three Places You Can't Just Copy
When you move an agy acp registration from Zed to VS Code, a JetBrains IDE, or Xcode, three things change: the config key, the command path, and authentication plus available models. Here is the diff from the official docs and a small script that converts your Zed settings.
⬡ Integrations2026-11-06
Moving Conductor From a Gemini CLI Extension to an Antigravity CLI Plugin: Leave spec.md and plan.md Alone, Compare Before and After
Conductor is now a plugin instead of a Gemini CLI extension, and it runs in Antigravity CLI too. Your spec.md and plan.md files don't need to move; here is a small script and a short routine to prove nothing changed when you install it.
⬡ Integrations2026-10-22
The Project-Local mcp_config.json Is Read, but No MCP Server Starts — Checking With a One-File Probe
Antigravity CLI logs that it is using a project-local config, yet the MCP servers in it never start. Where the official issue stands (still open as of November 2026), what that log line does and does not promise, a tiny probe server to check your own setup, a table for telling similar symptoms apart, and realistic ways to keep MCP servers per project.