Skip to content
AI Primer
release

Supermemory releases Antigravity memory plugin with project-memory loading

Supermemory's plugin loads project memories at chat start. In Antigravity CLI tests with Gemini 4 Neon, the company reports similar accuracy with roughly three times fewer tokens and half the runtime.

3 min read
Supermemory releases Antigravity memory plugin with project-memory loading
Supermemory releases Antigravity memory plugin with project-memory loading

TL;DR

Installation needs no npm install, a nice consequence of shipping the runtime bundle in Git. A context-gatherer subagent can run several memory searches and return a brief with provenance before large tasks.

Chat-history retrieval

Supermemory tested Antigravity CLI with Gemini 4 Neon (High), according to its launch thread. Questions about facts supplied in earlier chats triggered roughly five shell commands apiece to search old transcripts, the company said in its baseline description.

The company reported finding no dedicated memory store, only rule files such as AGENTS.md or GEMINI.md that the agent wrote intermittently.

Four memory hooks

The plugin registers four lifecycle hooks:

  1. SessionStart: Injects profile context for the current project and starts browser authentication if needed.
  2. PreInvocation: Searches Supermemory with the user's prompt on the first model call of each turn. Matches are deduplicated within the conversation; tool-loop calls are skipped.
  3. PreToolUse: Auto-approves read-only Supermemory MCP tools. Writes still require permission.
  4. Stop: Hands new conversation turns to a detached worker, which saves them under the conversation ID without blocking the turn's completion.

Antigravity has no prompt-submit event, which explains the PreInvocation hook. Recalled context enters as a system message and remains available on later turns.

Memory counts appear in separate user-only notices, rather than model text; Supermemory also emphasized visibility in a launch reply. Automatic recall and capture run in parent conversations, not subagent conversations.

The hooks fail open when the service is unreachable or credentials are missing. Failed saves are reported when the next conversation starts.

Shared repository namespaces

The plugins generate a common repository identity:

  • Git remotes: The hash uses the normalized remote, allowing clones to share memory while separating unrelated repositories with the same name.
  • No remote: Identity falls back to the local path.
  • Worktrees: SUPERMEMORY_ISOLATE_WORKTREES=true keys memory on the worktree path instead.
  • Existing namespaces: A namespace pinned in .claude/.supermemory-claude/config.json is honored by the Antigravity plugin too.

Installation and authentication

The installation requirements are Node.js 18+ and Antigravity CLI 1.4 or later, or the matching App/IDE.

The first conversation opens browser authentication; memory becomes active on the next message. An API key can alternatively be supplied through SUPERMEMORY_ANTIGRAVITY_API_KEY.

Hooks run only in trusted folders. The plugin also supports the Antigravity App, standalone IDE and extensions for VS Code, JetBrains, Zed, Xcode and Eclipse.

Conversation capture

Automatic capture sends conversation content to Supermemory:

  • New user messages and agent replies are uploaded.
  • Tool activity is included only for tools listed in includeTools.
  • Previously injected memory blocks are stripped before capture.
  • A local filter redacts common credential patterns, including provider tokens and private keys. The README explicitly says it cannot detect every secret.

Keyword-based capture filtering is available through signalExtraction, but defaults to off. Credentials are stored locally with 0600 permissions; signing out revokes the refresh token.

Further reading

Discussion across the web

Where this story is being discussed, in original context.

On X· 4 threads
TL;DR1 post
Chat-history retrieval2 posts
Four memory hooks1 post
Installation and authentication1 post
Share on X