adopt
CommandUse when: user asks to put the claude-mem-lite steering block into the current project's CLAUDE.md (for example to share it with…
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
> /plugin marketplace add sdsrss/claude-mem-lite> /plugin install claude-mem-lite@sdsrss
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."
Remove the claude-mem-lite steering block from the current project. Opposite of `/adopt`.
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).
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.
`/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).
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
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.
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…
Use when: logging a known bug + repro steps you can't fix right now. Writes a searchable observation (findable via mem_search +…
Use when: capturing a non-obvious lesson/gotcha/workaround after a tricky fix or surprising behavior. Writes a searchable…
Use when: querying past work, managing memories, or checking project history
Use when: user asks to remember something, after solving a non-obvious problem, or to capture key session findings
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.