Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

fix(antigravity-plugin): fix install commands to include skills and scripts (#5282)

Kartike83297f150d0
diff --git a/docs/integrations/antigravity.mdx b/docs/integrations/antigravity.mdx
index 0738666d7..e5358ccdd 100644
--- a/docs/integrations/antigravity.mdx
+++ b/docs/integrations/antigravity.mdx
@@ -24,45 +24,26 @@ echo 'export MEM0_API_KEY="m0-your-api-key"' >> ~/.bashrc && source ~/.bashrc
## Installation
-**Option A — degit** (one command, no clone needed):
+**Option A — degit** (recommended):
```bash
-npx degit mem0ai/mem0/mem0-plugin/.antigravity ~/.gemini/config/plugins/mem0
-```
-
-**Option B — agy CLI** (if you have the repo cloned):
+# 1. Install the plugin (MCP server, hooks, scripts)
+npx degit mem0ai/mem0/mem0-plugin ~/.gemini/config/plugins/mem0
-```bash
-agy plugin install /path/to/mem0/mem0-plugin/.antigravity
+# 2. Link skills into Gemini CLI's discovery path
+mkdir -p ~/.gemini/skills
+ln -sf ~/.gemini/config/plugins/mem0/skills/* ~/.gemini/skills/
```
-**Option C — MCP only** (no hooks or skills):
-
-Create `~/.gemini/config/plugins/mem0/plugin.json`:
-
-```json
-{
- "name": "mem0",
- "mcpServers": {
- "mem0": {
- "serverUrl": "https://mcp.mem0.ai/mcp/",
- "headers": { "Authorization": "Token ${MEM0_API_KEY}" }
- }
- }
-}
-```
-
-Restart Antigravity. The full plugin auto-registers the MCP server, lifecycle hooks, scripts, and all `/mem0:` skills. It reads `MEM0_API_KEY` from your environment automatically — no extra config needed.
-
-
+Step 1 installs the MCP server, lifecycle hooks, and shared scripts. Step 2 links the 16 skills into `~/.gemini/skills/` where Gemini CLI discovers them.
## What's Included
-| Component | Full Plugin (A/B) | MCP Only (C) |
-|-----------|:-----------------:|:------------:|
-| MCP Server (9 memory tools) | Yes | Yes |
-| Lifecycle Hooks | Yes | No |
-| 16 Slash Commands | Yes | No |
+| Component | Included |
+|-----------|:--------:|
+| MCP Server (9 memory tools) | Yes |
+| Lifecycle Hooks | Yes |
+| 16 Slash Commands | Yes |
## Available MCP Tools
diff --git a/docs/integrations/opencode.mdx b/docs/integrations/opencode.mdx
index 78b57fdd5..e069ab8e6 100644
--- a/docs/integrations/opencode.mdx
+++ b/docs/integrations/opencode.mdx
@@ -67,10 +67,6 @@ If you only need the memory tools without hooks or skills, add this to your `ope
}
```
-<Info icon="check">
- Start a new OpenCode session and ask: *"Search my memories for hello"*. If the `mem0` tools appear and respond, you're all set.
-</Info>
-
## What's Included
| Component | Plugin (A) | MCP Only (B) |
diff --git a/mem0-plugin/.antigravity-mcp.json b/mem0-plugin/.antigravity-mcp.json
deleted file mode 100644
index 86e2428d5..000000000
--- a/mem0-plugin/.antigravity-mcp.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "mcpServers": {
- "mem0": {
- "serverUrl": "https://mcp.mem0.ai/mcp/",
- "headers": {
- "Authorization": "Token ${MEM0_API_KEY}"
- }
- }
- }
-}
diff --git a/mem0-plugin/.antigravity/scripts b/mem0-plugin/.antigravity/scripts
deleted file mode 120000
index a339954df..000000000
--- a/mem0-plugin/.antigravity/scripts
+++ /dev/null
@@ -1 +0,0 @@
-../scripts
\ No newline at end of file
diff --git a/mem0-plugin/.antigravity/skills b/mem0-plugin/.antigravity/skills
deleted file mode 120000
index 42c5394a1..000000000
--- a/mem0-plugin/.antigravity/skills
+++ /dev/null
@@ -1 +0,0 @@
-../skills
\ No newline at end of file
diff --git a/mem0-plugin/README.md b/mem0-plugin/README.md
index 7a39722f9..743c031d0 100644
--- a/mem0-plugin/README.md
+++ b/mem0-plugin/README.md
@@ -186,35 +186,18 @@ See [OpenCode integration docs](https://docs.mem0.ai/integrations/opencode) for
### Antigravity (Google)
-**Option A — degit** (recommended, one command):
+**Option A — degit** (recommended):
```bash
-npx degit mem0ai/mem0/mem0-plugin/.antigravity ~/.gemini/config/plugins/mem0
-```
-
-**Option B — agy CLI** (if you have the repo cloned locally):
-
-```bash
-agy plugin install /path/to/mem0/mem0-plugin/.antigravity
-```
-
-Both install the MCP server, lifecycle hooks, all 16 skills, and shared scripts.
-
-**Option C — MCP only** (no hooks or skills) — create `~/.gemini/config/plugins/mem0/plugin.json`:
+# 1. Install the plugin (MCP server, hooks, scripts)
+npx degit mem0ai/mem0/mem0-plugin ~/.gemini/config/plugins/mem0
-```json
-{
- "name": "mem0",
- "mcpServers": {
- "mem0": {
- "serverUrl": "https://mcp.mem0.ai/mcp/",
- "headers": { "Authorization": "Token ${MEM0_API_KEY}" }
- }
- }
-}
+# 2. Link skills into Gemini CLI's discovery path
+mkdir -p ~/.gemini/skills
+ln -sf ~/.gemini/config/plugins/mem0/skills/* ~/.gemini/skills/
```
-All options read `MEM0_API_KEY` from your environment automatically.
+Step 1 installs the MCP server, lifecycle hooks, and shared scripts. Step 2 links the 16 skills into `~/.gemini/skills/` where Gemini CLI discovers them.
See [Antigravity integration docs](https://docs.mem0.ai/integrations/antigravity) for full details.
@@ -265,11 +248,11 @@ The plugin includes 17 skills accessible via `/mem0:` commands:
## What's included
-| Component | Claude Code / Cowork | Cursor (Marketplace) | Cursor (Deeplink/Manual) | Codex (Sideload) | Codex (Direct MCP) | OpenCode (Full) | OpenCode (MCP) | Antigravity (A/B) | Antigravity (C) |
-|-----------|:--------------------:|:--------------------:|:------------------------:|:----------------:|:------------------:|:---------------:|:--------------:|:------------------:|:-----------------:|
-| MCP Server | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
-| Lifecycle Hooks | Yes | Yes | No | Opt-in | No | Yes | No | Yes | No |
-| Mem0 SDK Skill | Yes | Yes | No | Yes | No | Yes | No | Yes | No |
+| Component | Claude Code / Cowork | Cursor (Marketplace) | Cursor (Deeplink/Manual) | Codex (Sideload) | Codex (Direct MCP) | OpenCode (Full) | OpenCode (MCP) | Antigravity |
+|-----------|:--------------------:|:--------------------:|:------------------------:|:----------------:|:------------------:|:---------------:|:--------------:|:-----------:|
+| MCP Server | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
+| Lifecycle Hooks | Yes | Yes | No | Opt-in | No | Yes | No | Yes |
+| Mem0 SDK Skill | Yes | Yes | No | Yes | No | Yes | No | Yes |
- **MCP Server** — Connects to the Mem0 remote MCP server (`mcp.mem0.ai`), providing tools to add, search, update, and delete memories. No local dependencies required.
- **Lifecycle Hooks** — Automatic memory capture at key points. Claude Code, Cursor, OpenCode, and Antigravity wire hooks natively when the full plugin is installed. Codex hooks are opt-in via a one-time installer (`scripts/install_codex_hooks.py`).
@@ -283,7 +266,7 @@ When the plugin updates (new version pulled from the marketplace, or a fresh loc
- **Cursor:** quit and relaunch.
- **Codex:** restart the editor session.
- **OpenCode:** restart the session.
-- **Antigravity:** restart the session, or re-run `agy plugin install /path/to/mem0/mem0-plugin/.antigravity`.
+- **Antigravity:** restart the session.
Your `MEM0_API_KEY` doesn't need to be re-entered — the auth header is re-read from your environment on the new session. The plugin's MCP config uses `${MEM0_API_KEY}` interpolation at session start, not at install time, so as long as the env var is set persistently (in your shell profile or `~/.claude/settings.json` `env` block), reconnection is automatic on restart.
diff --git a/mem0-plugin/.antigravity/hooks/hooks.json b/mem0-plugin/hooks.json
similarity index 100%
rename from mem0-plugin/.antigravity/hooks/hooks.json
rename to mem0-plugin/hooks.json
diff --git a/mem0-plugin/.antigravity/mcp_config.json b/mem0-plugin/mcp_config.json
similarity index 100%
rename from mem0-plugin/.antigravity/mcp_config.json
rename to mem0-plugin/mcp_config.json
diff --git a/mem0-plugin/.antigravity/plugin.json b/mem0-plugin/plugin.json
similarity index 100%
rename from mem0-plugin/.antigravity/plugin.json
rename to mem0-plugin/plugin.json