Project: openclaw-mem0-python (mem0 API plugin)

Purpose
- Provide OpenClaw tool access to the mem0 server (conversational memory + knowledge base) so agents can write/search explicitly when needed.

Scope
- Provide an OpenClaw plugin wrapper around the mem0 HTTP API.
- Support conversational memory write/search and knowledge-base write/search.
- Expose knowledge-base helpers for tool-driven RAG (list sources, describe a book, search a book or a set of books).

Key files
- hooks/mem0-auto-capture/handler.ts — main hook implementation (TypeScript)
- README.md — developer-facing overview
- openclaw.json (global) — plugin configuration lives in ~/.openclaw/openclaw.json under plugins.entries.openclaw-mem0-python

Configuration
- captureTrigger: "explicit" | "phrase" | "always"
- triggerPhrase: string (used when captureTrigger is "phrase")
- baseUrl: mem0 server base URL (default: http://192.168.0.200:8420)
- local STT: http://192.168.0.200:5005/transcribe

Testing
- Unit-simulate hook events (development) or POST to the gateway hooks endpoint (if available) to verify behaviour.
- After code changes, restart the gateway to reload hooks.

Operational notes
- Keep the workspace copy as the single source of truth and symlink it into ~/.openclaw/hooks for runtime.
- Log lines include tags: [mem0-auto-capture], [mem0-auto-recall], [mem0-stt] to help troubleshooting.

Maintainer: Lukas (GOLEM assistant handles deployments and tests)
