Uninstall

Disconnect from your agents

Terminal
weavekeep uninstall --dry-run
weavekeep uninstall
Weavekeep will disconnect from 3 agents:

  Claude Code   remove 7 hooks from ~/.claude/settings.json, skill from ~/.claude/skills/weavekeep/SKILL.md, memory tools (claude mcp remove)
  Cursor        remove 5 hooks from ~/.cursor/hooks.json, memory tools from ~/.cursor/mcp.json, skill from ~/.agents/skills/weavekeep/SKILL.md
  Codex         remove 5 hooks from ~/.codex/hooks.json, memory tools from ~/.codex/config.toml, skill from ~/.agents/skills/weavekeep/SKILL.md

Every changed file is backed up first.
Remove these? [Y/n]

--dry-run shows the plan without changing anything. To disconnect only one agent, add --client cursor (or claude, codex). --yes skips the question.

Your memory is kept in ~/.weavekeep. If you install again later, it is all still there.

Disconnecting Claude Code also stops copying its memory notes, if you had turned that on. The copies made so far stay with the rest of your memory; weavekeep memory import --off removes them.

What is restored

uninstall removes only what Weavekeep added. Hooks and servers from other tools stay.

For each config file:

  • If Weavekeep created the file and nothing else is left in it, the file is deleted.
  • If what is left matches the file as it was before Weavekeep first changed it, the original file comes back byte for byte, formatting included.
  • Otherwise only Weavekeep's entries are removed and the rest is kept as it is now.

For Claude Code, the memory tools are removed with claude mcp remove --scope user weavekeep. If the claude command is not found, the command is printed for you to run.

The Weavekeep skill is deleted, with its weavekeep folder. Codex and Cursor share one copy in ~/.agents/skills, so it stays while one of them is still connected. A skill you edited is kept, with a warning; delete it yourself if you no longer want it.

Every config file is backed up before it changes, as <file>.bak-<timestamp>. These backups stay next to the files: Weavekeep keeps the newest 3 of each file, plus the one from before it first changed the file, and deletes its older ones. Delete the rest when you no longer need them. Files with other names are never touched.

uninstall also works without ~/.weavekeep/install.json: it then finds Weavekeep's entries by their commands, names and markers, and removes the skill only if it is exactly the one this version writes.

It does not remove:

  • the Cursor rule you saved in a project (.cursor/rules/weavekeep.mdc) or pasted into Cursor Settings,
  • a copy of the Weavekeep text you pasted into another file yourself.

Delete your memory too

Terminal
weavekeep uninstall --purge

This disconnects your agents first, then deletes the whole ~/.weavekeep folder: the database, large-item files, memory files, the semantic search model if you downloaded it, and install.json. It asks [y/N], and the default is no. This cannot be undone.

  • Without a terminal, --purge needs --yes.
  • If part of the disconnect fails, nothing is deleted. Fix the problem and run it again.
  • It refuses to delete a folder that does not look like a Weavekeep folder: one that holds files Weavekeep did not create, is a symlink, or contains your home folder. It also refuses when WEAVEKEEP_HOME is a relative path.
  • If WEAVEKEEP_DB points to a database outside the Weavekeep folder, that database is not deleted. The output says so.

Restart any agent sessions that are still running. They have Weavekeep loaded and may write memory again until they end.

Remove the package

After uninstall, remove Weavekeep itself. If you used the install script, delete the executable (or the one in your WEAVEKEEP_INSTALL_DIR):

Terminal
rm ~/.local/bin/weavekeep

If you used npm or pnpm, remove the package:

Terminal
npm uninstall -g @weavekeep/cli
# or
pnpm remove -g @weavekeep/cli

Caution

Run weavekeep uninstall before you remove Weavekeep. Otherwise your agents' hooks still point at Weavekeep files that no longer exist. If that already happened, install it again, run weavekeep uninstall, then remove it again.

On this page