# Send Openclaw Memory Enhancer 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": "openclaw-memory-enhancer",
    "name": "Openclaw Memory Enhancer",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/henryfcb/openclaw-memory-enhancer",
    "canonicalUrl": "https://clawhub.ai/henryfcb/openclaw-memory-enhancer",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/openclaw-memory-enhancer",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-memory-enhancer",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "openclaw-memory-enhancer",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-06T15:07:24.173Z",
      "expiresAt": "2026-05-13T15:07:24.173Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-memory-enhancer",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-memory-enhancer",
        "contentDisposition": "attachment; filename=\"openclaw-memory-enhancer-0.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "openclaw-memory-enhancer"
      },
      "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/openclaw-memory-enhancer"
    },
    "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/openclaw-memory-enhancer",
    "downloadUrl": "https://openagent3.xyz/downloads/openclaw-memory-enhancer",
    "agentUrl": "https://openagent3.xyz/skills/openclaw-memory-enhancer/agent",
    "manifestUrl": "https://openagent3.xyz/skills/openclaw-memory-enhancer/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/openclaw-memory-enhancer/agent.md"
  }
}
```
## Documentation

### 🧠 OpenClaw Memory Enhancer

Give OpenClaw long-term memory - remember important information across sessions and automatically recall relevant context for conversations.

### Core Capabilities

CapabilityDescription🔍 Semantic SearchVector similarity search, understanding intent not just keywords📂 Auto LoadAutomatically reads all files from memory/ directory💡 Smart RecallFinds relevant historical memory during conversations🔗 Memory GraphBuilds connections between related memories💾 Local Storage100% local, no cloud, complete privacy🚀 Edge Optimized<10MB memory, runs on Jetson/Raspberry Pi

### Quick Reference

TaskCommand (Edge Version)Command (Standard Version)Load memoriespython3 memory_enhancer_edge.py --loadpython3 memory_enhancer.py --loadSearch--search "query"--search "query"Add memory--add "content"--add "content"Export--export--exportStats--stats--stats

### When to Use

Use this skill when:

You want OpenClaw to remember things across sessions
You need to build a knowledge base from chat history
You're working on long-term projects that need context
You want automatic FAQ generation from conversations
You're running on edge devices with limited memory

Don't use when:

Simple note-taking apps are sufficient
You don't need cross-session memory
You have plenty of memory and want maximum accuracy (use standard version)

### Edge Version ⭐ Recommended

Best for: Jetson, Raspberry Pi, embedded devices

python3 memory_enhancer_edge.py --load

Features:

Zero dependencies (Python stdlib only)
Memory usage < 10MB
Lightweight keyword + vector matching
Perfect for resource-constrained devices

### Standard Version

Best for: Desktop/server, maximum accuracy

pip install sentence-transformers numpy
python3 memory_enhancer.py --load

Features:

Uses sentence-transformers for high-quality embeddings
Better semantic understanding
Memory usage 50-100MB
Requires model download (~50MB)

### Via ClawHub (Recommended)

clawhub install openclaw-memory-enhancer

### Via Git

git clone https://github.com/henryfcb/openclaw-memory-enhancer.git \\
  ~/.openclaw/skills/openclaw-memory-enhancer

### Command Line

# Load existing OpenClaw memories
cd ~/.openclaw/skills/openclaw-memory-enhancer
python3 memory_enhancer_edge.py --load

# Search for memories
python3 memory_enhancer_edge.py --search "voice-call plugin setup"

# Add a new memory
python3 memory_enhancer_edge.py --add "User prefers dark mode"

# Show statistics
python3 memory_enhancer_edge.py --stats

# Export to Markdown
python3 memory_enhancer_edge.py --export

### Python API

from memory_enhancer_edge import MemoryEnhancerEdge

# Initialize
memory = MemoryEnhancerEdge()

# Load existing memories
memory.load_openclaw_memory()

# Search for relevant memories
results = memory.search_memory("AI trends report", top_k=3)
for r in results:
    print(f"[{r['similarity']:.2f}] {r['content'][:100]}...")

# Recall context for a conversation
context = memory.recall_for_prompt("Help me check billing")
# Returns formatted memory context

# Add new memory
memory.add_memory(
    content="User prefers direct results",
    source="chat",
    memory_type="preference"
)

### OpenClaw Integration

# In your OpenClaw agent
from skills.openclaw_memory_enhancer.memory_enhancer_edge import MemoryEnhancerEdge

class EnhancedAgent:
    def __init__(self):
        self.memory = MemoryEnhancerEdge()
        self.memory.load_openclaw_memory()
    
    def process(self, user_input: str) -> str:
        # 1. Recall relevant memories
        memory_context = self.memory.recall_for_prompt(user_input)
        
        # 2. Enhance prompt with context
        enhanced_prompt = f"""
{memory_context}

User: {user_input}
"""
        
        # 3. Call LLM with enhanced context
        response = call_llm(enhanced_prompt)
        
        return response

### Memory Types

TypeDescriptionExampledaily_logDaily memory filesmemory/2026-02-22.mdcapabilityCapability recordsSkills, toolscore_memoryCore conventionsImportant rulesqaQuestion & AnswerQ: How to... A: You should...instructionDirect instructions"Remember: always do X"solutionTechnical solutionsStep-by-step guidespreferenceUser preferences"User likes dark mode"

### Memory Encoding (Edge Version)

Keyword Extraction: Extract important words from text
Hash Vector: Map keywords to vector positions
Normalization: L2 normalize the vector
Storage: Save to local JSON file

### Memory Retrieval

Query Encoding: Convert query to same vector format
Keyword Pre-filter: Fast filter by common keywords
Similarity Calculation: Cosine similarity between vectors
Ranking: Return top-k most similar memories

### Privacy Protection

All data stored locally in ~/.openclaw/workspace/knowledge-base/
No network requests
No external API calls
No data leaves your device

### Edge Version

Vector Dimensions: 128
Memory Usage: < 10MB
Dependencies: None (Python stdlib)
Storage Format: JSON
Max Memories: 1000 (configurable)
Query Latency: < 100ms

### Standard Version

Vector Dimensions: 384
Memory Usage: 50-100MB
Dependencies: sentence-transformers, numpy
Storage Format: NumPy + JSON
Model Size: ~50MB download
Query Latency: < 50ms

### Configuration

Edit these parameters in the code:

self.config = {
    "vector_dim": 128,        # Vector dimensions
    "max_memory_size": 1000,  # Max number of memories
    "chunk_size": 500,        # Content chunk size
    "min_keyword_len": 2,     # Minimum keyword length
}

### No results found

# Lower the threshold
results = memory.search_memory(query, threshold=0.2)  # Default 0.3

# Increase top_k
results = memory.search_memory(query, top_k=10)  # Default 5

### Memory limit reached

The system automatically removes oldest memories when limit is reached.

To increase limit:

self.config["max_memory_size"] = 5000  # Increase from 1000

### Slow performance

Use Edge version instead of Standard
Reduce max_memory_size
Use keyword pre-filtering (automatic)

### Contributing

Fork the repository
Create a feature branch
Make your changes
Submit a Pull Request

### License

MIT License - See LICENSE file for details.

### Acknowledgments

Built for the OpenClaw ecosystem
Optimized for edge computing devices
Inspired by long-term memory systems in AI

Not an official OpenClaw or Moonshot AI product.

Users must provide their own OpenClaw workspace and API keys.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: henryfcb
- Version: 0.1.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-06T15:07:24.173Z
- Expires at: 2026-05-13T15:07:24.173Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/openclaw-memory-enhancer)
- [Send to Agent page](https://openagent3.xyz/skills/openclaw-memory-enhancer/agent)
- [JSON manifest](https://openagent3.xyz/skills/openclaw-memory-enhancer/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/openclaw-memory-enhancer/agent.md)
- [Download page](https://openagent3.xyz/downloads/openclaw-memory-enhancer)