Skip to content
Data
Skill

/cleanup

Remove mem9-managed Codex files before reinstalling, resetting, or uninstalling mem9.

From plugin
mem9
1.2k5 skills

Claude Code

$ npx -y skills add mem9-ai/mem9 --skill cleanup --agent claude-code

SKILL.md

cleanup.SKILL.md
description: Remove mem9-managed Codex files before reinstalling, resetting, or uninstalling mem9.
context: fork
allowed-tools:
  - Bash
  - Read

Mem9 Cleanup

Resolve `./scripts/cleanup.mjs` relative to this skill directory.

If you need the current CLI surface, flags, or examples, run `node ./scripts/cleanup.mjs --help` first. Use command-specific help when needed, for example `node ./scripts/cleanup.mjs run --help`.

Run this workflow:

1. Inspect the current cleanup targets first:

set -euo pipefail
node ./scripts/cleanup.mjs inspect

2. Use the JSON summary to confirm whether cleanup should cover only global Codex files or the current project's local override too. 3. Remove mem9-managed global Codex files with:

set -euo pipefail
node ./scripts/cleanup.mjs run

4. When the current repository's local override should be removed too, run:

set -euo pipefail
node ./scripts/cleanup.mjs run --include-project

Common flags:

  • `inspect`
  • `run`
  • `--include-project`
  • `--cwd <repo-root>`

`run` removes mem9-managed entries from `$CODEX_HOME/hooks.json`, `$CODEX_HOME/mem9/hooks/`, `$CODEX_HOME/mem9/install.json`, `$CODEX_HOME/mem9/config.json`, and `$CODEX_HOME/mem9/state.json`. `run --include-project` also removes `<project>/.codex/mem9/config.json`.

Keep `$MEM9_HOME/.credentials.json`, `$CODEX_HOME/config.toml`, and mem9 debug logs untouched. Do not print API keys or credential file contents.

Read more
@mem9-ai
Ships withmem9

Unlimited memory for OpenClaw

Stars on GitHub

Momentum

stars in total
1.2k
Star history of mem9-ai/mem9 on GitHub, a chart by star-history.com

Other skills on mem9.

recall

recall

Use when the current request needs relevant memories from Mem9.

@mem9-ai@mem9-aiInstall Skill
setup

setup

Use when Mem9 needs to be initialized, repaired, or checked in this Claude Code environment.

@mem9-ai@mem9-aiInstall Skill
store

store

Use when the user explicitly asks Claude to remember one fact, preference, or instruction in Mem9.

@mem9-ai@mem9-aiInstall Skill
mnemos-setup

mnemos-setup

Setup mnemos persistent memory with mnemo-server. Triggers: "set up mnemos", "install mnemo plugin", "configure memory plugin",…

@mem9-ai@mem9-aiInstall Skill

More skills from other plugins.

context-loader
Auto-invoked

context-loader

Search memories from earlier Pi sessions in this repository. Use it when earlier work may already explain the code, error,…

mem04d69k
@mem0ai@mem0aiInstall Skill
analyzing-ai-citations

analyzing-ai-citations

Answer AI citation and answer engine optimization (AEO) questions in PostHog: whether AI answer engines (ChatGPT, Claude, and an…

posthog11d41k
@posthog@posthogInstall Skill

Questions about cleanup.

Which coding agents can use cleanup?
cleanup installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.