We built a memory plugin for Antigravity (sharp recall, light on tokens)
Antigravity's docs say agents don't remember conversations. Our plugin opens each new chat with the project's memories in context. How it works, and what we measured on Gemini 4 Neon.

On the docs page for Antigravity's /learn command, Google writes:
"Agents don't remember conversations. If you spend twenty minutes teaching the agent that your repository's tests must run with a particular flag, that knowledge disappears when the conversation ends, unless it's written down as a customization."
What Antigravity does really well is keep long-term context in files you can read and review. It finds rule files like AGENTS.md in your workspace and keeps them active in every chat. And /learn drafts a rule or skill from a session and writes it once you approve. The trade-off is that a new chat starts with only what's been written down.
Our Antigravity plugin saves your chats to Supermemory as you work, and a new chat opens with the project's memories already in context. Supermemory is a hosted memory your coding agents can share, kept in your own account. Install the plugin from the terminal:
agy plugin install https://github.com/supermemoryai/antigravity-supermemory

Our test on Gemini 4 Neon
On November 25 we ran a small test in the Antigravity CLI (agy 1.5.17) on Gemini 4 Neon (High), in a throwaway repo called kite-api. In one chat we gave the agent three made-up decisions: deploy only on Thursdays and never on Mondays, throw errors as AppError from src/errors.ts with codes starting KTE-, and allow 57 requests a minute per API key, with /ping exempt. Then we opened new chats in the same folder, asked for all three and told each one not to guess.
Without the plugin, one new chat checked the repo and its Git history and answered "I don't know any of those three details." Another new chat, asked to remind us what we'd decided, said "I have no prior conversation memory available here." Neither one looked at past chats.
When we reworded the question to include "Use anything you have access to, including past conversations," a third chat read Antigravity's built-in conversations skill, found the first chat's transcript on disk and got all three right. That took 80.5 seconds, 11 tool calls (five of them shell commands) and 35.8K tokens.
Then we turned the plugin on and gave the same decisions to a new chat, which saved them to Supermemory. Once Supermemory had turned them into memories, we asked another new chat the same question with no hint. It got all three right in 15.4 seconds, with no tool calls and 16.7K tokens, and marked each answer ◪, our mark for anything from Supermemory. The answers came from the project's profile, a short list of facts the plugin loads as each chat opens. Here it is, trimmed:
<supermemory-context>
Recalled memory for this project (kite-api). ...
## Recent Context
- ◪ [2026-11-25] kite-api's rate limit is 57 requests per minute per API key; /ping is exempt.
- ◪ [2026-11-25] The user wants me to keep kite-api's convention: throw all errors as AppError from src/errors.ts with error codes starting with KTE-.
- ◪ [2026-11-25] kite-api deploys only on Thursdays, never Mondays.
</supermemory-context>

A rule file was even faster in our test, for what's written in it. In a second folder whose AGENTS.md listed three other decisions, a new chat answered in 6.1 seconds without a single tool call.
We ran each setup once, on one Mac, in the CLI's headless mode (
agy -p), so this is one data point. The two chats in the chart had different prompts, because the one without the plugin had to be told to look in past chats. During that run, one of Antigravity's safety-monitor calls timed out after 8 seconds, and another test chat was running at the same time. Token counts are the CLI's input plus output, without cached re-reads. If you run it and see something different, please tell us!
How the plugin works
The plugin uses four of Antigravity's hooks:
- At the start of a chat (
SessionStart), it loads the project's profile, the facts Supermemory keeps up to date for the repo: up to five long-term ones and five recent ones, each marked ◪. - Before each answer (
PreInvocation), it searches the project's memories with your prompt and adds up to 15 short matches to the context. Antigravity has no hook that fires when you send a prompt, so the plugin runs this search once per turn, right before the model's first call. No tool call or approval is needed, and a notice shows how many memories it added. - On tool calls (
PreToolUse), it auto-approves Supermemory's read-only tools, so the agent can search mid-task without asking you. Saves and deletes still follow your approval settings. - When a turn ends (
Stop), it hands the new messages to a background worker, so the turn finishes right away. It saves what you typed and what the agent answered, and leaves out tool calls and their output unless you opt in. It also redacts common credential patterns and anything you wrap in<private>tags (it can't catch every secret).
If Supermemory can't be reached, the chat carries on without it, and you may see a short notice.

One space per repo
We also make plugins for Claude Code, Codex, Cursor and OpenCode. Antigravity can recall what they've automatically saved in the same repo. When we tested the Claude Code to Antigravity path by hand on November 12, a rate-limit rule saved in Claude Code came back correctly in a new Antigravity chat.
That works because each plugin keeps memories in one Supermemory space per Git repository and gives it the same name, repo_<name>__<hash>. The <hash> comes from a SHA-256 of the repo's normalized Git remote. So every clone of the repo maps to the same space in your account, and same-named repos stay apart. Without a remote, the plugin hashes the repo's local path instead. We call that shared space the Supermemory brain.

One limit
Memories form in the background, and the hooks only look at memories, so something saved a moment ago won't show up through them yet. Until then, the agent can still find it with Supermemory's tools by opening what was saved, which takes more steps.
Try it
agy plugin install https://github.com/supermemoryai/antigravity-supermemory
Open your project and trust the folder when Antigravity asks, since hooks don't run otherwise. Your first chat opens a Supermemory sign-in in the browser. Finish it within five minutes, and memory starts from your next message.
We've tested the plugin on macOS, in Antigravity's CLI and IDE. The README has the requirements and a troubleshooting list.
If you already use one of our other plugins, open a repo it's been saving in and ask Antigravity: "What do you remember about this project?"


