🎁 Get the FREE AI Skills Starter GuideSubscribe →
BytesAgainBytesAgain
🦀 ClawHub

A powerful memory management system powered by ReMe that provides persistent cross-session memory, automatic user preference application, and intelligent context compression for OpenClaw.

by @minybear

Memory management system powered by ReMe. Enables cross-session memory persistence, automatic user preference application, and intelligent context compressio...

Versionv1.0.0
Installs3
💡 Examples

Installation (One-time setup)

pip install reme-ai

Session Initialization

At the start of EVERY session:

1. Initialize ReMe 2. Retrieve user preferences 3. Apply to current context

# Initialize
from reme.reme_light import ReMeLight
reme = ReMeLight(working_dir=".reme", language="zh")
await reme.start()

Retrieve preferences

prefs = await reme.memory_search( query="用户偏好 文件发送", max_results=5 )

Apply

if prefs and "必须发送" in prefs[0]['content']: auto_send_files = True


📋 Tips & Best Practices

1. Always Start Sessions with Memory Retrieval

Bad:

# Start without memory
user_request = get_user_input()
process_request(user_request)

Good:

# Start with memory
reme = await init_reme()
prefs = await reme.memory_search(query="用户偏好")
apply_preferences(prefs)
user_request = get_user_input()
process_request(user_request)


2. Learn from Every Correction

When user says "You forgot X": 1. Acknowledge immediately 2. Extract the rule 3. Add to memory 4. Verify application

Example:

User: 你总是忘记发送文件!

Me: ✓ 已记住:生成文件后必须发送文件 正在添加到 MEMORY.md...

Next file generation: ✓ File created 📤 Auto-sending... ✓ Sent


3. Be Specific in Memory Records

Bad:

- User prefers good code

Good:

- User prefers concise, well-commented Python code
  - Use docstrings for functions
  - Maximum 3 levels of nesting
  - Prefer list comprehensions over loops


4. Update Memory Regularly

Daily tasks:

  • Review memory/ files
  • Merge duplicate entries
  • Remove outdated info
  • Organize by category
  • Weekly tasks:

  • Check for stale preferences
  • Verify accuracy of tool settings
  • Clean up old memory files

  • 5. Use Semantic Search Effectively

    Bad queries:

  • "files"
  • "code"
  • "preferences"
  • Good queries:

  • "文件发送 偏好 阿伟"
  • "Python代码风格 简洁 注释"
  • "工具设置 超时 重试"
  • Why: Specific queries return more relevant results.


    View on ClawHub
    TERMINAL
    clawhub install memory-reme

    🧪 Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    🔍 Can't find the right skill?

    Search 60,000+ AI agent skills — free, no login needed.

    Search Skills →