# Send Three Tier 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. 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. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "monica-three-tier-memory",
    "name": "Three Tier Memory",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/forvendettaw/monica-three-tier-memory",
    "canonicalUrl": "https://clawhub.ai/forvendettaw/monica-three-tier-memory",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/monica-three-tier-memory",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=monica-three-tier-memory",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/references.md",
      "scripts/memory_manager.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/monica-three-tier-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/monica-three-tier-memory",
    "downloadUrl": "https://openagent3.xyz/downloads/monica-three-tier-memory",
    "agentUrl": "https://openagent3.xyz/skills/monica-three-tier-memory/agent",
    "manifestUrl": "https://openagent3.xyz/skills/monica-three-tier-memory/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/monica-three-tier-memory/agent.md"
  }
}
```
## Documentation

### Memory Manager Skill

管理 AI 代理的三级记忆系统：短期（滑动窗口）、中期（自动摘要）、长期（向量检索）。

### 快速开始

# 初始化记忆系统
python3 scripts/memory_manager.py init

# 添加短期记忆
python3 scripts/memory_manager.py add --type short --content "用户喜欢黑色"

# 查询记忆
python3 scripts/memory_manager.py search "用户的偏好"

### 架构概览

层级存储位置触发条件用途短期memory/sliding-window.json实时保持当前对话连贯中期memory/summaries/Token 阈值压缩历史，保留大意长期memory/vector-store/语义检索永久记忆，RAG

### 1. 短期记忆：滑动窗口

配置：config/window_size（默认 10 条）
逻辑：FIFO 队列，超出则丢弃最旧消息
文件：memory/sliding-window.json

### 2. 中期记忆：自动摘要

触发：当前 token > config/summary_threshold（默认 4000）
模型：使用廉价模型（如 GPT-3.5-Haiku）
输出：memory/summaries/YYYY-MM-DD.json

### 3. 长期记忆：向量检索

后端：ChromaDB（本地向量库）
存：对话结束/摘要生成后自动向量化存储
取：每次查询前先检索相关记忆

### 配置文件

创建 memory/config.yaml：

memory:
  short_term:
    enabled: true
    window_size: 10
    max_tokens: 2000

  medium_term:
    enabled: true
    summary_threshold: 4000
    summary_model: "glm-4-flash"  # 或 gpt-3.5-turbo

  long_term:
    enabled: true
    backend: "chromadb"
    top_k: 3
    min_relevance: 0.7

### 使用场景

新对话开始：先 search 长期记忆，注入相关上下文
对话中：自动管理短期/中期记忆，超阈值自动摘要
对话结束：将重要信息存入长期记忆

### 详细用法

See REFERENCES.md for complete command reference.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: forvendettaw
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/monica-three-tier-memory)
- [Send to Agent page](https://openagent3.xyz/skills/monica-three-tier-memory/agent)
- [JSON manifest](https://openagent3.xyz/skills/monica-three-tier-memory/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/monica-three-tier-memory/agent.md)
- [Download page](https://openagent3.xyz/downloads/monica-three-tier-memory)