Skip to content
Development
Command

/update

Use when: search results seem noisy or for periodic memory maintenance

From plugin
claude-mem-lite
607 skills7 commands7 hooks1 MCP
Install
> /plugin marketplace add sdsrss/claude-mem-lite
> /plugin install claude-mem-lite@sdsrss

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/update

Context preview

What this command does when you run it.

Use when: search results seem noisy or for periodic memory maintenance

Command definition

update.md
name: update
description: "Use when: search results seem noisy or for periodic memory maintenance"

Memory Maintenance

Run intelligent maintenance on the memory database.

Usage

  • `/mem:update` — Run full maintenance cycle

Instructions

When the user invokes `/mem:update`, perform the following maintenance cycle:

Phase 1: Memory Maintenance

1. Call `mem_maintain(action="scan")` to analyze maintenance candidates 2. Report scan results to the user (duplicates, stale items, broken items, boostable items, **pending purge** items) 3. Call `mem_maintain(action="execute", operations=["cleanup","decay","boost"])` to apply safe automatic changes 4. 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 5. Run `mem_compress(preview=false)` for old low-value observations 6. **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"], confirm=true)`. **`confirm=true` is required:** without it the call returns a dry-run preview and deletes nothing while still succeeding, so you would report a purge that never happened. User may optionally specify `retain_days` (default 30, allowed range 7–365) to control how many days of data to keep. Do NOT purge without explicit user confirmation.

Phase 2: Summary

Summarize all maintenance actions taken in zh-CN:

  • Memory: observations cleaned, decayed, boosted, deduplicated, compressed
  • Overall health assessment
Read more
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.

Get the whole plugin
Stats
60
Stars
11
Forks
Active
Maintenance
JavaScript
Language
MIT
License
2d ago
Last commit
7mo ago
Created

Repo: sdsrss/claude-mem-lite

Other commands on claude-mem-lite.