Skip to content
Development
Command

/unadopt

Use when: user wants to remove the claude-mem-lite steering block from the current project (or from every project Claude Code knows about with --all). Removes the <cwd>/CLAUDE.md managed block + <cwd>/.claude/plugin_claude_mem_lite.md, the auto-written CLAUDE.local.md or

From plugin
claude-mem-lite
688 skills8 commands7 hooks1 MCP
> /plugin marketplace add sdsrss/claude-mem-lite
> /plugin install claude-mem-lite@sdsrss

Command definition

unadopt.md
name: unadopt
description: "Use when: user wants to remove the claude-mem-lite steering block from the current project (or from every project Claude Code knows about with --all). Removes the <cwd>/CLAUDE.md managed block + <cwd>/.claude/plugin_claude_mem_lite.md, the auto-written CLAUDE.local.md or .claude/rules/claude-mem-lite.md block and its .git/info/exclude entry, and cleans any legacy memory-dir residue. User content outside the sentinel is preserved. Benign no-op when not adopted."

/unadopt

Remove the claude-mem-lite steering block from the current project. Opposite of `/adopt`.

What it removes

1. The `<!-- claude-mem-lite:begin vN --> … <!-- claude-mem-lite:end -->` managed block from `<cwd>/CLAUDE.md`. Everything else in the file is preserved byte-for-byte. 2. `<cwd>/.claude/plugin_claude_mem_lite.md` detail doc. 3. `<cwd>/.claude/.plugin_claude_mem_lite_state.json` sidecar (and an emptied `.claude/` dir). 4. The block auto-adopt keeps in `CLAUDE.local.md` at the git repository root, or in `.claude/rules/claude-mem-lite.md` there (with `CLAUDE_MEM_RULES_STEERING=1`, next to an `AGENTS.md`; the file too, when nothing else is in it, and an emptied `.claude/rules/` and `.claude/`), and the lines it added to `.git/info/exclude`. Those lines stay while another worktree of the repository still has the block, or while a file the plugin created still holds your own notes. Nothing is edited through a symbolic link.

It also cleans any leftover **legacy** memory-dir sentinel + detail doc for this project (slug-scoped — other plugins' blocks survive).

Flags

  • `--force` — also remove a legacy memory-dir block lacking a state sidecar
  • `--dry-run` — preview what would be removed; no writes
  • `--all` — remove the CLAUDE.md managed block and the auto-written local

block from every project in Claude Code's known-project list (`projects` in `~/.claude.json`, or `$CLAUDE_CONFIG_DIR/.claude.json`), plus sweep any legacy memory-dir sentinels. Slug-scoped, so user content and other plugins' blocks survive. A project Claude Code never opened isn't listed — `cd` into it and run `/unadopt` there. Pair with `--dry-run` to preview.

  • `--status` — read-only adoption probe (mirrors `/adopt --status`)

Note: the steering itself continues

`/unadopt` removes files, not the steering. A local block the plugin created is not written back; the text is added to each session's context instead (`node "${CLAUDE_PLUGIN_ROOT}/cli.mjs" adopt --enable` lets it write the file again). A project whose `CLAUDE.md` block you removed gets a local file on the next session, unless the plugin created one there before. Beside an `AGENTS.md` that `CLAUDE.local.md` would switch off, no file is written unless `CLAUDE_MEM_RULES_STEERING=1`. To stop the steering: `node "${CLAUDE_PLUGIN_ROOT}/cli.mjs" adopt --disable` (per project) or `MEM_NO_AUTO_ADOPT=1` (global).

Aftermath

While the steering is still delivered, the conservative hook layer stays trimmed. It returns to verbose mode (SessionStart `File Lessons` / `Key Context`, MCP instructions `WHEN TO USE`) once steering is off — `adopt --disable` or `MEM_NO_AUTO_ADOPT=1` — on the next session start.

!node "${CLAUDE_PLUGIN_ROOT}/cli.mjs" unadopt $ARGUMENTS

Read more
@sdsrss
Ships withclaude-mem-lite

claude-mem-lite is a persistent memory (also called long-term memory or cross-session context) system for Claude Code — Anthropic's CLI coding agent.

Stars on GitHub

Momentum

stars in total
68
Star history of sdsrss/claude-mem-lite on GitHub, a chart by star-history.com

Other commands on claude-mem-lite.

adopt

adopt

Command

Use when: user asks to put the claude-mem-lite steering block into the current project's CLAUDE.md (for example to share it with…

@sdsrss@sdsrssInstall Command
bug

bug

Command

Use when: logging a known bug + repro steps you can't fix right now. Writes a searchable observation (findable via mem_search +…

@sdsrss@sdsrssInstall Command
lesson

lesson

Command

Use when: capturing a non-obvious lesson/gotcha/workaround after a tricky fix or surprising behavior. Writes a searchable…

@sdsrss@sdsrssInstall Command
mem

mem

Command

Use when: querying past work, managing memories, or checking project history

@sdsrss@sdsrssInstall Command
memory

memory

Command

Use when: user asks to remember something, after solving a non-obvious problem, or to capture key session findings

@sdsrss@sdsrssInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command