# Send Session Memory to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "session-memory",
    "name": "Session Memory",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/swaylq/session-memory",
    "canonicalUrl": "https://clawhub.ai/swaylq/session-memory",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/session-memory",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=session-memory",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "package.json",
      "scripts/consolidate.sh",
      "scripts/context.sh",
      "scripts/daily.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "session-memory",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-03T16:32:59.605Z",
      "expiresAt": "2026-05-10T16:32:59.605Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=session-memory",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=session-memory",
        "contentDisposition": "attachment; filename=\"session-memory-2.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "session-memory"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/session-memory"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/session-memory",
    "downloadUrl": "https://openagent3.xyz/downloads/session-memory",
    "agentUrl": "https://openagent3.xyz/skills/session-memory/agent",
    "manifestUrl": "https://openagent3.xyz/skills/session-memory/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/session-memory/agent.md"
  }
}
```
## Documentation

### 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

### save.sh — Save a Memory

./scripts/save.sh "topic" "content" [tags...]

EnvDefaultDescriptionAGENT_MEMORY_DIR~/.agent-memoryStorage directoryMEMORY_IMPORTANCEnormallow / 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

LevelWhen to UseBehaviorlowBackground info, minor notesOnly found via searchnormalStandard memoriesShown in daily viewhighKey decisions, insightsAlways in session contextcriticalCredentials, blockers, urgentAlways 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 🔹
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: swaylq
- Version: 2.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-03T16:32:59.605Z
- Expires at: 2026-05-10T16:32:59.605Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/session-memory)
- [Send to Agent page](https://openagent3.xyz/skills/session-memory/agent)
- [JSON manifest](https://openagent3.xyz/skills/session-memory/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/session-memory/agent.md)
- [Download page](https://openagent3.xyz/downloads/session-memory)