with one click
memorydecay
Human-like memory with decay for Claude Code
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Human-like memory with decay for Claude Code
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | memorydecay |
| description | Human-like memory with decay for Claude Code |
You have access to a human-like memory system that decays naturally over time. Important memories persist longer; trivial ones fade away.
At the start of each session, the memory system is automatically available. No action needed - the server starts on first use.
# Search for relevant memories
memorydecay search "your query here" [--top-k 5]
# Store a memory (see Category Guide below for correct flags)
memorydecay store "memory content" --importance 0.8 --category decision --mtype fact
# Apply time-based decay (called automatically by hooks)
memorydecay tick
# Check server status
memorydecay server status
# Migrate existing memories from files
memorydecay migrate [--from ~/.claude/memory]
Every memory MUST use the correct --category flag. Do NOT default everything to fact.
| Category | --category | --mtype | Importance | When to use |
|---|---|---|---|---|
| preference | preference | fact | 0.8-1.0 | User's likes/dislikes, communication style, workflow habits, tool preferences |
| decision | decision | fact | 0.7-0.9 | Why something was done a certain way, tradeoffs, rejected alternatives |
| fact | fact | fact | 0.6-0.9 | Technical facts, API behaviors, architecture patterns, domain knowledge |
| episode | episode | episode | 0.3-0.6 | What was worked on, session summaries, transient context |
Importance directly controls how fast a memory decays. Use the full range — not everything is 0.8.
| Importance | Decay behavior | Examples |
|---|---|---|
| 0.9-1.0 | Persists for hundreds of ticks | User's core identity/role, critical production constraints, "never do X" rules |
| 0.7-0.8 | Persists for ~100 ticks | Architectural decisions, API conventions, project-level patterns |
| 0.5-0.6 | Moderate lifespan | What was built this week, intermediate findings, session context |
| 0.3-0.4 | Fades quickly | Minor observations, temporary workarounds, one-off events |
Rule of thumb: If you'd want to recall this in 2 weeks, use 0.8+. If it's only relevant for a few sessions, use 0.5. If it's truly transient, use 0.3.
Store BEFORE context gets too long — don't wait until compaction.
Always search before:
Search results include freshness:
Memories naturally fade over time based on:
You don't need to manually manage decay - the system handles it.
If you have existing memories in ~/.claude/memory/ or MEMORY.md:
memorydecay migrate --from ~/.claude/memory
This imports them with appropriate importance levels based on file type.
Do NOT wait to be asked. Store a memory when ANY of these happen:
If you think "this would be useful to know next time" — store it NOW with the right category and importance.
If memorydecay commands fail:
memorydecay server statusmemorydecay server startpip show memory-decay