adopt

adopt is a command for Claude Code from sdsrss/claude-mem-lite. It costs 146 tokens per session (1,472 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 for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

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

Good fit Installing, refreshing, or checking claude-mem-lite's project guidance and managed configuration.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add sdsrss/claude-mem-lite
Claude Code
/plugin install claude-mem-lite

Made for: Claude Code.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for adopt

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 146 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,472 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00146 $0.01472
Opus 5.5 $0.00058 $0.00589
Sonnet 5.5 $0.00029 $0.00294
Haiku 4.5 $0.00015 $0.00147

Measured 2d ago against content hash 3b45ee75c6f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2d 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 · 88 lines

How it starts

The opening of the file, as written. The whole thing — 88 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 — Claude Code loads it into every session, in a message after the system prompt). It does not go in the project's memory-dir MEMORY.md: that index belongs to the user's own memories.

Auto-adopt does not add the block to CLAUDE.md: in a git repository it keeps the same block in CLAUDE.local.md at the repository root, excluded from git through .git/info/exclude. Next to an AGENTS.md that file would switch off, and where it cannot be written (outside git, for example), it adds the text to each session's context instead; with CLAUDE_MEM_RULES_STEERING=1 it keeps the block in .claude/rules/claude-mem-lite.md next to an AGENTS.md, excluded the same way. Run /adopt when you want the block in CLAUDE.md — a file that is normally committed, so your team gets it too. It removes the local copy so the text does not load twice. A project that carries the block is kept in sync on every SessionStart, and a CLAUDE.md holding nothing but the block gets the AGENTS.md import described below.

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, and the import below in a file adopt created, are managed; the rest of your CLAUDE.md is preserved verbatim. Auto-refreshes when the shipped content drifts. Claude Code stops reading AGENTS.md once a CLAUDE.md exists, so a CLAUDE.md adopt creates next to an AGENTS.md (or .claude/AGENTS.md) starts with a marker comment and @AGENTS.md, which keeps it loading. An AGENTS.md above the directory or tracked below it cannot be imported; the output names it with the setting that keeps it.
  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.

Read the full file on GitHub · 88 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. 2d ago Changed 3b45ee75c6f1
  2. 3d ago Changed fac1a615dc2f
  3. 16d ago Changed · +10 lines · +15 tokens per session 0f27312a3738
  4. 23d ago Changed · +10 lines · +30 tokens per session 217cf70e518c
  5. 27d ago Changed 9679ec476237
  6. 1mo 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 (67 stars, last pushed today), licensed MIT. It adds 146 tokens to every session and 1,472 once invoked, about $0.0006 per session on Opus 5.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.