session-memory
Persistent memory toolkit for AI agents. Save context, recall insights, track decisions across sessions.
Install
mkdir -p .claude/skills/session-memory && curl -L -o skill.zip "https://mcp.directory/api/skills/download/7657" && unzip -o skill.zip -d .claude/skills/session-memory && rm skill.zipInstalls to .claude/skills/session-memory
About this skill
Session Memory 🧠 v2.0
Persistent memory for AI agents. Save what matters, recall what's relevant, consolidate what you've learned.
v2.0: relevance-scored search, importance levels, session context loader, consolidation, export/import, stats, edit/delete.
Quick Start
# Save a memory (with optional importance)
MEMORY_IMPORTANCE=high ./scripts/save.sh "decision" "Chose Postgres over SQLite for scale"
# Recall with relevance scoring
./scripts/recall.sh "database" --limit 5
# Load session context (startup)
./scripts/context.sh --days 3
# Consolidate by topic
./scripts/consolidate.sh --since 2026-01-01
# Stats
./scripts/stats.sh
Commands
save.sh — Save a Memory
./scripts/save.sh "topic" "content" [tags...]
| Env | Default | Description |
|---|---|---|
AGENT_MEMORY_DIR | ~/.agent-memory | Storage directory |
MEMORY_IMPORTANCE | normal | low / normal / high / critical |
# Basic save
./scripts/save.sh "insight" "Users prefer dark mode 3:1" ui design
# High importance
MEMORY_IMPORTANCE=high ./scripts/save.sh "decision" "Migrated to TypeScript" refactor
# Critical (always surfaces in context.sh)
MEMORY_IMPORTANCE=critical ./scripts/save.sh "credential" "API key rotated, new one in vault"
recall.sh — Search Memories
./scripts/recall.sh "query" [--json] [--limit N] [--topic T] [--importance I] [--since YYYY-MM-DD]
Features:
- Multi-keyword AND search — all words must match
- Relevance scoring — based on word match ratio + importance + recency
- Filters — by topic, importance level, date range
./scripts/recall.sh "database migration"
./scripts/recall.sh "API" --topic decision --limit 20
./scripts/recall.sh "deploy" --since 2026-03-01 --json
./scripts/recall.sh "error" --importance high
context.sh — Session Startup Loader
./scripts/context.sh [--days N] [--limit N] [--json]
Loads the most relevant memories for a new session:
- Recent memories (last N days, default 3)
- High/critical importance items regardless of age
- Sorted by importance then recency
- Grouped by date
# Quick context
./scripts/context.sh
# Wider window
./scripts/context.sh --days 7 --limit 30
# For programmatic use
./scripts/context.sh --json
daily.sh — Day View
./scripts/daily.sh [YYYY-MM-DD] [--json]
topics.sh — Topic Index
./scripts/topics.sh [--json]
consolidate.sh — Topic Consolidation
./scripts/consolidate.sh [--since YYYY-MM-DD] [--topic T] [--json]
Groups all memories by topic, showing counts, date ranges, top tags, and latest entries. Useful for periodic review.
stats.sh — Memory Statistics
./scripts/stats.sh [--json]
Shows: total entries, date range, entries/day average, storage size, topic breakdown, importance distribution.
edit.sh — Edit or Delete
./scripts/edit.sh <timestamp_ms> --content "new content"
./scripts/edit.sh <timestamp_ms> --topic "new topic"
./scripts/edit.sh <timestamp_ms> --importance critical
./scripts/edit.sh <timestamp_ms> --delete
export.sh — Export Memories
./scripts/export.sh [-o backup.json] [--since YYYY-MM-DD] [--topic T]
import.sh — Import Memories
./scripts/import.sh backup.json [--dry-run]
Deduplicates by timestamp — safe to run multiple times.
prune.sh — Archive Old Memories
./scripts/prune.sh [days]
Moves memories older than N days (default: 30) to archive/.
Storage
~/.agent-memory/
├── 2026/
│ ├── 01/
│ │ ├── 15.jsonl
│ │ └── 16.jsonl
│ └── 02/
│ └── 01.jsonl
└── archive/ # Pruned memories
Each line is a JSON object:
{"ts":1706793600000,"topic":"decision","content":"Chose X because Y","tags":["project"],"importance":"high"}
Importance Levels
| Level | When to Use | Behavior |
|---|---|---|
low | Background info, minor notes | Only found via search |
normal | Standard memories | Shown in daily view |
high | Key decisions, insights | Always in session context |
critical | Credentials, blockers, urgent | Always in session context, top priority |
Recommended Workflow
# Session start
./scripts/context.sh
# During work — save important things
./scripts/save.sh "decision" "..."
MEMORY_IMPORTANCE=high ./scripts/save.sh "insight" "..."
# End of session
./scripts/save.sh "summary" "Today: did X, decided Y, next step Z"
# Weekly review
./scripts/consolidate.sh --since $(date -u -d '7 days ago' +%Y-%m-%d)
./scripts/stats.sh
# Monthly maintenance
./scripts/prune.sh 60
./scripts/export.sh -o backup-$(date +%Y%m).json
Created by Voidborne 🔹
More by openclaw
View all skills by openclaw →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversCipher empowers agents with persistent memory using vector databases and embeddings for seamless context retention and t
Memory Plus is a lightweight, local RAG memory store for MCP agents to record, manage, and visualize persistent memories
Xtended — a relational database platform delivering persistent memory for AI agents, enabling faster context, reliable s
Build persistent semantic networks for enterprise & engineering data management. Enable data persistence and memory acro
Enhance software testing with Playwright MCP: Fast, reliable browser automation, an innovative alternative to Selenium s
Basic Memory is a knowledge management system that builds a persistent semantic graph in markdown, locally and securely.
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.