Install ctx on the machine where Antigravity or Gemini CLI has written local history:
curl -fsSL https://ctx.rs/install | shSee Install for setup and data-root details.
ctx treats Antigravity and Gemini CLI as related local-history sources with distinct provider IDs. Use the provider that matches where the earlier work happened.
Import Antigravity or Gemini history
Run setup, then import the source you care about:
ctx setup
ctx import --provider antigravity
ctx import --provider gemini
ctx sources --jsonUse ctx sources --json to see whether each source is present and importable on the current machine.
Search one provider
For Antigravity history:
ctx search "failed migration" --provider antigravity --json
ctx show event <ctx-event-id> --window 3For Gemini CLI history:
ctx search "failed migration" --provider gemini --json
ctx show session <ctx-session-id> --mode liteSearch without --provider when you want the best match across all imported agent histories.
Prompt an agent
Use ctx to search prior Antigravity and Gemini CLI sessions for this task. Inspect the best matching event or session, then cite the ctx ID if the result affects your answer.When the result needs provenance, use:
ctx locate event <ctx-event-id>
ctx export session <ctx-session-id>