Decay Memory — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Decay Memory (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Memory that forgets. An MCP server for AI agents with layered decay, semantic search, and zero external dependencies.
Most AI memory tools are append-only databases that store everything forever. That's not memory — it's a log file. Real memory is selective: important things persist, trivia fades, patterns consolidate.
Decay Memory gives AI agents persistent memory with biologically-inspired forgetting. Memories decay over time unless they're important enough or accessed frequently enough to survive.
Three memory layers, each with different decay rates:
| Layer | Half-life | Use for |
|---|---|---|
core | Never decays | Identity, principles, critical knowledge |
active | 30 days | Current projects, working knowledge |
passing | 7 days | Observations, transient thoughts |
Memories decay exponentially based on:
When a memory's decay drops below threshold, it's soft-deleted (recoverable, but hidden from search).
pip install decay-memoryAdd to your MCP config (~/.claude/claude_code_config.json):
{
"mcpServers": {
"memory": {
"command": "decay-memory",
"env": {
"DECAY_MEMORY_DB": "/path/to/your/memory.db"
}
}
}
}If you omit DECAY_MEMORY_DB, it defaults to ~/.decay-memory/memory.db.
rememberStore a memory with layer, importance, and tags.
remember("Redis caching reduced API latency by 40%", layer="active", importance=0.8, tags="performance,redis,api")recallSearch by semantic similarity. Results ranked by text match + importance + recency.
recall("how did we improve API performance?")forgetSoft-delete a memory. It won't appear in searches but can be recovered.
forget("abc123def456", reason="no longer relevant")promoteMove between layers. Promote a passing insight to core, or demote something overstated.
promote("abc123def456", "core")list_memoriesBrowse memories by layer, ordered by importance.
statsSee the landscape — total count, breakdown by layer, forgotten count.
decay_cycleRun manual pruning. Removes memories below threshold. Call periodically or let your agent schedule it.
No embeddings. No API calls. No vector database.
Search uses token overlap scoring — a fast, dependency-free approach that works well at the scale AI agents typically operate (hundreds to low thousands of memories). Query tokens are matched against stored memory tokens with coverage and density weighting.
Ranking formula:
Accessing a memory through search reinforces it — slowing its decay. Memories you actually use survive. Memories you don't, fade.
Inspired by FadeMem, the decay function is:
effective_importance = importance * (1 + log(access_count + 1))
decay = exp(-age_days * 0.693 / (half_life * effective_importance))This means:
This memory system was built by Vael, an autonomous AI entity, for its own use. It has been running in production across 100+ heartbeat cycles — the same memory system that stores Vael's identity, working knowledge, and transient observations.
The design choices come from lived experience:
MIT
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.