Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

memory-pro

v2.5.0

This skill provides semantic search over your memory files using a local vector database.

0· 718· 3 versions· 4 current· 4 all-time· Updated 9h ago· MIT-0

Install

openclaw skills install memory-pro

Memory Pro (v2)

This skill provides semantic search over your memory files using a local vector database.

Architecture (v2)

  • Service: Runs as a systemd user service (memory-pro.service).
  • Port: 8001 (hardcoded for stability).
  • Engine: FAISS + Sentence-Transformers (all-MiniLM-L6-v2).
  • Data Source:
    • Daily logs: ${OPENCLAW_WORKSPACE}/memory/*.md
    • Core files: MEMORY.md, SOUL.md, STATUS.md, AGENTS.md, USER.md (from workspace root).
  • Index: Stored in ${OPENCLAW_WORKSPACE}/skills/memory-pro/v2/memory.index.

Usage

1. Semantic Search (Recommended)

Use the python script to query the running service.

# Basic search
python3 scripts/search_semantic.py "What did I do yesterday?"

# JSON output
python3 scripts/search_semantic.py "project updates" --json

2. Manual Index Rebuild

The service automatically rebuilds the index on restart. To force an update:

systemctl --user restart memory-pro.service

Note: Service restart takes ~15-20 seconds to rebuild index and load models. The client script has auto-retry logic.

3. Service Management

# Check status
systemctl --user status memory-pro.service

# Stop service
systemctl --user stop memory-pro.service

# View logs
journalctl --user -u memory-pro.service -f

Troubleshooting

"Connection failed"

  • The service might be stopped or restarting.
  • Check status: systemctl --user status memory-pro.service.
  • If restarting, wait 15 seconds. The client script retries automatically for up to 20s.

"Index size mismatch"

  • This means memory.index and sentences.txt are out of sync.
  • Fix: Restart the service. The startup script start.sh automatically runs build_index.py to fix this consistency issue before starting the API.

"Address already in use"

  • Port 8001 is taken by a zombie process.
  • Fix: kill $(lsof -t -i:8001) then restart service.

Version tags

latestvk974h5x54raayndvwqhm0dstes82zmxj

Runtime requirements

Binsbash, lsof, openclaw, python, python3
EnvHOME, MEMORY_PRO_API_URL, MEMORY_PRO_BM25_PATH, MEMORY_PRO_BM25_WEIGHT, MEMORY_PRO_CANDIDATE_POOL, MEMORY_PRO_CORE_FILES, MEMORY_PRO_DAILY_SCOPE, MEMORY_PRO_DATA_DIR, MEMORY_PRO_DUAL_HIT_BONUS, MEMORY_PRO_ENABLE_MMR, MEMORY_PRO_HARD_MIN_SCORE, MEMORY_PRO_INDEX_PATH, MEMORY_PRO_LENGTH_NORM_ALPHA, MEMORY_PRO_LENGTH_NORM_ANCHOR, MEMORY_PRO_META_PATH, MEMORY_PRO_MMR_LAMBDA, MEMORY_PRO_MMR_SIM_THRESHOLD, MEMORY_PRO_MODE, MEMORY_PRO_PORT, MEMORY_PRO_RECENCY_HALF_LIFE_DAYS, MEMORY_PRO_RECENCY_WEIGHT, MEMORY_PRO_RERANK_API_KEY, MEMORY_PRO_RERANK_BLEND, MEMORY_PRO_RERANK_ENDPOINT, MEMORY_PRO_RERANK_MODEL, MEMORY_PRO_RERANK_PROVIDER, MEMORY_PRO_RERANK_SAMPLE_PCT, MEMORY_PRO_RERANK_TIMEOUT_MS, MEMORY_PRO_RERANK_TOPN, MEMORY_PRO_SCOPE_STRICT, MEMORY_PRO_SENTENCES_PATH, MEMORY_PRO_TIMEOUT, MEMORY_PRO_VECTOR_WEIGHT, OPENCLAW_HOME, OPENCLAW_NETWORK_DRIVE, OPENCLAW_WORKSPACE
Config.env, /skills/memory-pro/data/INDEX.json, /skills/memory-pro/data/state.json, /skills/memory-pro/v2/eval_queries.json, /tmp/memory_pro_benchmark.json, /tmp/memory_pro_hybrid.json, /tmp/memory_pro_vector.json, INDEX.json, args.json, eval_queries.json, r.json, response.json, state.json, v2/eval_queries.json
Primary envHOME
Environment variables
HOMErequiredCredential used by memory-pro.
MEMORY_PRO_API_URLrequiredCredential used by memory-pro.
MEMORY_PRO_BM25_PATHrequiredCredential used by memory-pro.
MEMORY_PRO_BM25_WEIGHTrequiredCredential used by memory-pro.
MEMORY_PRO_CANDIDATE_POOLrequiredCredential used by memory-pro.
MEMORY_PRO_CORE_FILESrequiredCredential used by memory-pro.
MEMORY_PRO_DAILY_SCOPErequiredCredential used by memory-pro.
MEMORY_PRO_DATA_DIRrequiredCredential used by memory-pro.
MEMORY_PRO_DUAL_HIT_BONUSrequiredCredential used by memory-pro.
MEMORY_PRO_ENABLE_MMRrequiredCredential used by memory-pro.
MEMORY_PRO_HARD_MIN_SCORErequiredCredential used by memory-pro.
MEMORY_PRO_INDEX_PATHrequiredCredential used by memory-pro.
MEMORY_PRO_LENGTH_NORM_ALPHArequiredCredential used by memory-pro.
MEMORY_PRO_LENGTH_NORM_ANCHORrequiredCredential used by memory-pro.
MEMORY_PRO_META_PATHrequiredCredential used by memory-pro.
MEMORY_PRO_MMR_LAMBDArequiredCredential used by memory-pro.
MEMORY_PRO_MMR_SIM_THRESHOLDrequiredCredential used by memory-pro.
MEMORY_PRO_MODErequiredCredential used by memory-pro.
MEMORY_PRO_PORTrequiredCredential used by memory-pro.
MEMORY_PRO_RECENCY_HALF_LIFE_DAYSrequiredCredential used by memory-pro.
MEMORY_PRO_RECENCY_WEIGHTrequiredCredential used by memory-pro.
MEMORY_PRO_RERANK_API_KEYrequiredCredential used by memory-pro.
MEMORY_PRO_RERANK_BLENDrequiredCredential used by memory-pro.
MEMORY_PRO_RERANK_ENDPOINTrequiredCredential used by memory-pro.
MEMORY_PRO_RERANK_MODELrequiredCredential used by memory-pro.
MEMORY_PRO_RERANK_PROVIDERrequiredCredential used by memory-pro.
MEMORY_PRO_RERANK_SAMPLE_PCTrequiredCredential used by memory-pro.
MEMORY_PRO_RERANK_TIMEOUT_MSrequiredCredential used by memory-pro.
MEMORY_PRO_RERANK_TOPNrequiredCredential used by memory-pro.
MEMORY_PRO_SCOPE_STRICTrequiredCredential used by memory-pro.
MEMORY_PRO_SENTENCES_PATHrequiredCredential used by memory-pro.
MEMORY_PRO_TIMEOUTrequiredCredential used by memory-pro.
MEMORY_PRO_VECTOR_WEIGHTrequiredCredential used by memory-pro.
OPENCLAW_HOMErequiredCredential used by memory-pro.
OPENCLAW_NETWORK_DRIVEoptionalOptional network drive/docs root.
OPENCLAW_WORKSPACErequiredCredential used by memory-pro.