@jungjaehoon/openclaw-mama
v0.4.3
Published
MAMA Memory Plugin for OpenClaw - Semantic decision memory with reasoning graph
Maintainers
Readme
@jungjaehoon/openclaw-mama
MAMA Memory Plugin for OpenClaw Gateway - Direct integration without HTTP overhead.
Features
- Direct Gateway Integration: Embeds MAMA logic directly into OpenClaw Gateway
- 4 Native Tools:
mama_search,mama_save,mama_load_checkpoint,mama_update - Semantic Search: Vector-based decision retrieval using sqlite-vec
- Decision Graph: Track decision evolution with
builds_on,debates,synthesizesedges
Installation
From npm (recommended)
openclaw plugins install @jungjaehoon/openclaw-mamaFrom source (development)
# Clone the repo
git clone https://github.com/jungjaehoon-lifegamez/MAMA.git
cd MAMA
# Install dependencies
pnpm install
# Link plugin for development
ln -s $(pwd)/packages/openclaw-plugin ~/.config/openclaw/extensions/mama
# Restart gateway
systemctl --user restart openclaw-gatewayConfiguration
Add to your ~/.openclaw/openclaw.json:
{
"plugins": {
"slots": {
"memory": "openclaw-mama"
},
"entries": {
"openclaw-mama": {
"enabled": true
}
}
}
}Tools
mama_search
Search semantic memory for relevant past decisions.
Query: "authentication strategy"
Returns: Decisions ranked by semantic similaritymama_save
Save a decision or checkpoint to semantic memory.
type: "decision" | "checkpoint"
# For decisions:
topic: "auth_strategy"
decision: "Use JWT with refresh tokens"
reasoning: "More secure than session cookies..."
confidence: 0.8
# For checkpoints:
summary: "Completed auth implementation"
next_steps: "Add rate limiting"mama_load_checkpoint
Resume previous session by loading the latest checkpoint.
mama_update
Update outcome of a previous decision.
id: "decision_xxx"
outcome: "success" | "failed" | "partial"
reason: "Works well in production"Architecture
OpenClaw Gateway
└── MAMA Plugin (this package)
└── @jungjaehoon/mama-core
├── mama-api.js (high-level API)
├── memory-store.js (SQLite + sqlite-vec)
└── embeddings.js (Transformers.js)Key design: NO HTTP/REST - MAMA logic is directly embedded into the Gateway for minimal latency (~5ms vs ~180ms with MCP).
Migration from clawdbot-mama
If upgrading from @jungjaehoon/clawdbot-mama:
- Uninstall old plugin:
openclaw plugins uninstall clawdbot-mama - Install new plugin:
openclaw plugins install @jungjaehoon/openclaw-mama - Update config: Replace
"clawdbot-mama"with"openclaw-mama"inopenclaw.json
Your decision database (~/.claude/mama-memory.db) is preserved.
Related Packages
- @jungjaehoon/mama-server - MCP server for Claude Desktop
- MAMA Plugin - Claude Code plugin
License
MIT
