adopt

adopt is a command for coding agents from sdsrss/claude-mem-lite. It costs 101 tokens per session (955 once invoked), scanned A, original, MIT.

A command that installs or refreshes claude-mem-lite's managed instructions in a project's CLAUDE.md file, with a separate detailed document under .claude.

In plain words
What is it for?
Installing, refreshing, or checking claude-mem-lite's project guidance and managed configuration.
Why use it?
It makes the memory tools more likely to be used while preserving the project's other instructions and migrating older setup files.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the claude-mem-lite plugin — 8 commands, 7 hooks, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/sdsrss/claude-mem-lite/adopt
Clone the repo
git clone --depth 1 https://github.com/sdsrss/claude-mem-lite

Or install claude-mem-lite, the plugin that ships this one along with the rest of its 8 commands, 7 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for adopt

README.md
[![agentmods](https://agentmods.dev/badge/commands/sdsrss/claude-mem-lite/adopt.svg)](https://agentmods.dev/commands/sdsrss/claude-mem-lite/adopt)
Your own site
<a href="https://agentmods.dev/commands/sdsrss/claude-mem-lite/adopt"><img src="https://agentmods.dev/badge/commands/sdsrss/claude-mem-lite/adopt.svg" alt="Measured on agentmods" height="20"></a>
Per session 101 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 955 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00101 $0.00955
Opus 5 $0.00051 $0.00477
Sonnet 5 $0.00020 $0.00191
Haiku 4.5 $0.00010 $0.00096

Measured 5d ago against content hash 1d5e8b30d7fb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

adopt scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/adopt.md · 68 lines

How it starts

The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/adopt

Install the claude-mem-lite steering block into the current project's CLAUDE.md (the canonical home for project instructions — loaded by Claude Code at system-prompt authority). This replaces the pre-v3.13 scheme that seeded the project's memory-dir MEMORY.md; that polluted an index meant for the user's own memories, and MEMORY.md carries no more weight than CLAUDE.md anyway.

This normally runs automatically on every SessionStart — invoke /adopt only to force it immediately (e.g. after editing the block out by hand).

What it writes

  1. <cwd>/CLAUDE.md — a concise <!-- claude-mem-lite:begin v1 -->…<!-- :end --> managed block (trigger table → mem_recall / mem_save / mem_defer). Slug-scoped: only this block is managed; the rest of your CLAUDE.md is preserved verbatim. Auto-refreshes when the shipped content drifts.
  2. <cwd>/.claude/plugin_claude_mem_lite.md — the full contract (tool tables, CLI cheatsheet, citation/decay + save discipline). First line is a <!-- managed-by: claude-mem-lite --> marker. Not auto-loaded; the CLAUDE.md block points to it and Claude reads it on demand.
  3. <cwd>/.claude/.plugin_claude_mem_lite_state.json — drift-tracking sidecar.

It also migrates this project's legacy memory-dir sentinel away (strips the claude-mem-lite:* block from MEMORY.md and deletes the old memory-dir detail doc). Other plugins' blocks (e.g. code-graph-mcp:*) and your own prose survive.

Flags

  • --force — also force-clean a legacy memory-dir block lacking a state sidecar
  • --dry-run — print intended writes without touching disk
  • --all — legacy-cleanup sweep: strip the old memory-dir sentinel across every project at once. (It does NOT write CLAUDE.md blocks for other projects — their real paths can't be recovered from the encoded memdir slug; those adopt per-project on each one's next SessionStart.)
  • --status — show this project's adoption + count of memdirs awaiting migration
  • --disable / --enable — per-project opt-out of automatic SessionStart adopt

Read the full file on GitHub · 68 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 68 lines · 101 tokens per session scan A 1d5e8b30d7fb

Subscribe to this mod's changes

adopt is a command published in the GitHub repository sdsrss/claude-mem-lite (57 stars, last pushed today), licensed MIT. It adds 101 tokens to every session and 955 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.