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.
npx agentmods add commands/sdsrss/claude-mem-lite/updategit clone --depth 1 https://github.com/sdsrss/claude-mem-liteWrote 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.
[](https://agentmods.dev/commands/sdsrss/claude-mem-lite/update)<a href="https://agentmods.dev/commands/sdsrss/claude-mem-lite/update"><img src="https://agentmods.dev/badge/commands/sdsrss/claude-mem-lite/update.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00021 | $0.00410 |
| Opus 5 | $0.00010 | $0.00205 |
| Sonnet 5 | $0.00004 | $0.00082 |
| Haiku 4.5 | $0.00002 | $0.00041 |
Grade A, and why
update 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 4d 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.
What it actually says
Memory & Registry Maintenance
Run intelligent maintenance on both the memory database and tool resource registry.
Usage
/mem:update— Run full maintenance cycle
Instructions
When the user invokes /mem:update, perform the following maintenance cycle:
Phase 1: Memory Maintenance
- Call
mem_maintain(action="scan")to analyze maintenance candidates - Report scan results to the user (duplicates, stale items, broken items, boostable items, pending purge items)
- Call
mem_maintain(action="execute", operations=["cleanup","decay","boost"])to apply safe automatic changes - If duplicates were found in scan, review them and call
mem_maintain(action="execute", operations=["dedup"], merge_ids=[[keepId, removeId1, ...], ...])— keep the more important/recent observation in each pair - Run
mem_compress(preview=false)for old low-value observations - If pending purge items > 0: Report the count to the user and ask for confirmation. If confirmed, call
mem_maintain(action="execute", operations=["purge_stale"]). User may optionally specifyretain_days(default 30) to control how many days of data to keep. Do NOT purge without explicit user confirmation.
Phase 2: Registry Maintenance
- Call
mem_registry(action="stats")to get registry overview - Call
mem_registry(action="reindex")to rebuild FTS5 search index - Report updated stats
Phase 3: Summary
Summarize all maintenance actions taken in zh-CN:
- Memory: observations cleaned, decayed, boosted, deduplicated, compressed
- Registry: total resources, adoption rates, reindex status
- Overall health assessment
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.
- 4d ago First seen · 39 lines · 21 tokens per session scan A 874080844553
update is a command published in the GitHub repository sdsrss/claude-mem-lite (56 stars, last pushed today), licensed MIT. It adds 21 tokens to every session and 410 once invoked, about $0.0001 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.
Other commands, from other repositories
scope
Search your Claude Code session history (full-text, always fresh).
prime
Load project context and output a structured summary.
smartcompact
Pin important turns before compacting — pins survive compaction via SessionStart hook reinjection.
claudemd-bypass-audit
R3 Step 2 — lesson-bypass detector. Joins memory-prompt-hint suggest events with subsequent transcript activity to compute cite-recall (applied / (applied + bypassed)) across recent sessions. Makes the §11 MEMORY.md read-the-file effectiveness observable.
claudemd-doctor
Run health checks on claudemd installation. Flags missing deps, spec drift, settings.json issues, hook drift, backup inventory, rule-usage health, MEMORY.md tag specificity, cross-layer memory maintenance (promote/repatriate/stale candidates). Supports --prune-backups=N.
dream
Consolidate and reorganize project memory.