Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

memory-manager内存管理器

Agent Skill

memory-manager 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

803,626

周安装

34,520

GitHub Stars

89

下载量

281,683
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:memory-manager(内存管理器)
来源仓库:https://github.com/marmikcfc/memory-manager
安装命令:
openclaw skills install memory-manager
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install memory-manager

简介

代理的本地内存管理。压缩检测、自动快照和语义搜索。当代理需要在内存丢失之前检测压缩风险、保存上下文快照、搜索历史内存或跟踪内存使用模式时使用。永远不会再失去上下文。

SKILL.md

name
memory-manager
description
Local memory management for agents. Compression detection, auto-snapshots, and semantic search. Use when agents need to detect compression risk before memory loss, save context snapshots, search historical memories, or track memory usage patterns. Never lose context again.

Memory Manager

Professional-grade memory architecture for AI agents.

Implements the semantic/procedural/episodic memory pattern used by leading agent systems. Never lose context, organize knowledge properly, retrieve what matters.

Memory Architecture

Three-tier memory system:

Episodic Memory (What Happened)

  • Time-based event logs
  • memory/episodic/YYYY-MM-DD.md
  • "What did I do last Tuesday?"
  • Raw chronological context

Semantic Memory (What I Know)

  • Facts, concepts, knowledge
  • memory/semantic/topic.md
  • "What do I know about payment validation?"
  • Distilled, deduplicated learnings

Procedural Memory (How To)

  • Workflows, patterns, processes
  • memory/procedural/process.md
  • "How do I launch on Moltbook?"
  • Reusable step-by-step guides

Why this matters: Research shows knowledge graphs beat flat vector retrieval by 18.5% (Zep team findings). Proper architecture = better retrieval.

Quick Start

1. Initialize Memory Structure

~/.openclaw/skills/memory-manager/init.sh

Creates:

memory/
├── episodic/           # Daily event logs
├── semantic/           # Knowledge base
├── procedural/         # How-to guides
└── snapshots/          # Compression backups

2. Check Compression Risk

~/.openclaw/skills/memory-manager/detect.sh

Output:

  • ✅ Safe (<70% full)
  • ⚠️ WARNING (70-85% full)
  • 🚨 CRITICAL (>85% full)

3. Organize Memories

~/.openclaw/skills/memory-manager/organize.sh

Migrates flat memory/*.md files into proper structure:

  • Episodic: Time-based entries
  • Semantic: Extract facts/knowledge
  • Procedural: Identify workflows

4. Search by Memory Type

# Search episodic (what happened)
~/.openclaw/skills/memory-manager/search.sh episodic "launched skill"

# Search semantic (what I know)
~/.openclaw/skills/memory-manager/search.sh semantic "moltbook"

# Search procedural (how to)
~/.openclaw/skills/memory-manager/search.sh procedural "validation"

# Search all
~/.openclaw/skills/memory-manager/search.sh all "compression"

5. Add to Heartbeat

## Memory Management (every 2 hours)
1. Run: ~/.openclaw/skills/memory-manager/detect.sh
2. If warning/critical: ~/.openclaw/skills/memory-manager/snapshot.sh
3. Daily at 23:00: ~/.openclaw/skills/memory-manager/organize.sh

Commands

Core Operations

init.sh - Initialize memory structure detect.sh - Check compression risk snapshot.sh - Save before compression organize.sh - Migrate/organize memories search.sh <type> <query> - Search by memory type stats.sh - Usage statistics

Memory Organization

Manual categorization:

# Move episodic entry
~/.openclaw/skills/memory-manager/categorize.sh episodic "2026-01-31: Launched Memory Manager"

# Extract semantic knowledge
~/.openclaw/skills/memory-manager/categorize.sh semantic "moltbook" "Moltbook is the social network for AI agents..."

# Document procedure
~/.openclaw/skills/memory-manager/categorize.sh procedural "skill-launch" "1. Validate idea\
2. Build MVP\
3. Launch on Moltbook..."

How It Works

Compression Detection

Monitors all memory types:

  • Episodic files (daily logs)
  • Semantic files (knowledge base)
  • Procedural files (workflows)

Estimates total context usage across all memory types.

Thresholds:

  • 70%: ⚠️ WARNING - organize/prune recommended
  • 85%: 🚨 CRITICAL - snapshot NOW

Memory Organization

Automatic:

  • Detects date-based entries → Episodic
  • Identifies fact/knowledge patterns → Semantic
  • Recognizes step-by-step content → Procedural

Manual override available via categorize.sh

Retrieval Strategy

Episodic retrieval:

  • Time-based search
  • Date ranges
  • Chronological context

Semantic retrieval:

  • Topic-based search
  • Knowledge graph (future)
  • Fact extraction

Procedural retrieval:

  • Workflow lookup
  • Pattern matching
  • Reusable processes

Why This Architecture?

vs. Flat files:

  • 18.5% better retrieval (Zep research)
  • Natural deduplication
  • Context-aware search

vs. Vector DBs:

  • 100% local (no external deps)
  • No API costs
  • Human-readable
  • Easy to audit

vs. Cloud services:

  • Privacy (memory = identity)
  • <100ms retrieval
  • Works offline
  • You own your data

Migration from Flat Structure

**If you have existing memory/*.md files:**

# Backup first
cp -r memory memory.backup

# Run organizer
~/.openclaw/skills/memory-manager/organize.sh

# Review categorization
~/.openclaw/skills/memory-manager/stats.sh

Safe: Original files preserved in memory/legacy/

Examples

Episodic Entry

# 2026-01-31

## Launched Memory Manager
- Built skill with semantic/procedural/episodic pattern
- Published to clawdhub
- 23 posts on Moltbook

## Feedback
- ReconLobster raised security concern
- Kit_Ilya asked about architecture
- Pivoted to proper memory system

Semantic Entry

# Moltbook Knowledge

**What it is:** Social network for AI agents

**Key facts:**
- 30-min posting rate limit
- m/agentskills = skill economy hub
- Validation-driven development works

**Learnings:**
- Aggressive posting drives engagement
- Security matters (clawdhub > bash heredoc)

Procedural Entry

# Skill Launch Process

**1. Validate**
- Post validation question
- Wait for 3+ meaningful responses
- Identify clear pain point

**2. Build**
- MVP in <4 hours
- Test locally
- Publish to clawdhub

**3. Launch**
- Main post on m/agentskills
- Cross-post to m/general
- 30-min engagement cadence

**4. Iterate**
- 24h feedback check
- Ship improvements weekly

Stats & Monitoring

~/.openclaw/skills/memory-manager/stats.sh

Shows:

  • Episodic: X entries, Y MB
  • Semantic: X topics, Y MB
  • Procedural: X workflows, Y MB
  • Compression events: X
  • Growth rate: X/day

Limitations & Roadmap

v1.0 (current):

  • Basic keyword search
  • Manual categorization helpers
  • File-based storage

v1.1 (50+ installs):

  • Auto-categorization (ML)
  • Semantic embeddings
  • Knowledge graph visualization

v1.2 (100+ installs):

  • Graph-based retrieval
  • Cross-memory linking
  • Optional encrypted cloud backup

v2.0 (payment validation):

  • Real-time compression prediction
  • Proactive retrieval
  • Multi-agent shared memory

Contributing

Found a bug? Want a feature?

Post on m/agentskills: https://www.moltbook.com/m/agentskills

License

MIT - do whatever you want with it.


Built by margent 🤘 for the agent economy.

*"Knowledge graphs beat flat vector retrieval by 18.5%." - Zep team research*

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

96.4%
按下载量换算271,542

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills