From agent-memory
This skill should be used when the user wants to uninstall, remove, or clean up the agent-memory plugin. Handles removal of symlinks, hooks, optional memory data deletion, and plugin de-registration in a safe, step-by-step sequence.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agent-memory:uninstall-agent-memoryThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are uninstalling the agent-memory plugin. Work through each step in order. Print a one-line status after each step.
You are uninstalling the agent-memory plugin. Work through each step in order. Print a one-line status after each step.
The ~/.claude/agents/ and ~/.claude/skills/ entries are no longer created —
only the scripts are linked now — but they are still removed here so a machine
set up by an older version is cleaned up properly.
rm -f \
~/.claude/scripts/memory-pull.sh \
~/.claude/scripts/memory-push.sh \
~/.claude/scripts/verify-memory.sh \
~/.claude/agents/memory-puller.md \
~/.claude/agents/memory-pusher.md \
~/.claude/skills/verify-memory.md \
~/.claude/skills/add-memory.md \
~/.claude/memory
echo "✓ Symlinks removed"
Run this single Python script to update settings.json atomically:
import json, os
settings_path = os.path.expanduser("~/.claude/settings.json")
with open(settings_path) as f:
s = json.load(f)
hooks = s.get("hooks", {})
# Remove SessionStart memory hooks
hooks["SessionStart"] = [
h for h in hooks.get("SessionStart", [])
if not any(
"memory-pull" in hh.get("command", "") or "memory-push" in hh.get("command", "")
for hh in h.get("hooks", [])
)
]
# Remove PostToolUse memory-push hook
hooks["PostToolUse"] = [
h for h in hooks.get("PostToolUse", [])
if not any("memory-push" in hh.get("command", "") for hh in h.get("hooks", []))
]
s["hooks"] = hooks
# Remove plugin registration
s["plugins"] = [p for p in s.get("plugins", []) if "agent-memory" not in str(p)]
with open(settings_path, "w") as f:
json.dump(s, f, indent=2)
print("✓ Memory hooks and plugin registration removed from settings.json")
Ask the user:
"Do you want to permanently delete
~/.agents/agent-memory? This contains all your stored memories and cannot be undone. Type exactlyYES(uppercase, case-sensitive) to delete, or anything else to keep it."
If the user types YES (exact match, case-sensitive):
rm -rf ~/.agents/agent-memory
echo "✓ Memory repository deleted"
Otherwise:
→ Memory data preserved at ~/.agents/agent-memory
You can re-install the plugin later and run bootstrap-memory to reconnect it.
Use the command for the runtime you are running in — and if the user has both, run both, since each keeps its own copy of the plugin:
# Claude Code
claude plugin uninstall agent-memory
# Antigravity
agy plugin uninstall agent-memory
Steps 1 and 2 above are Claude Code only: ~/.claude/scripts, ~/.claude/memory
and settings.json do not exist on an Antigravity-only machine, so the rm -f
and the settings edit are harmless no-ops there. Nothing else needs unwiring for
Antigravity — its hooks live inside the plugin directory and go with it.
echo "✓ Plugin uninstalled"
Print a closing line confirming all steps completed:
"The agent-memory plugin has been fully uninstalled. Memory sync hooks are removed and the plugin will not load in future sessions."
npx claudepluginhub mlarkin00/plugins --plugin agent-memoryGuides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.
Creates platform-native content for X, LinkedIn, TikTok, YouTube, and newsletters from source material. Adapts voice and format per platform while avoiding engagement bait and filler.