Mengram adds persistent memory to OpenClaw agents

Mengram is an open-source memory system that provides OpenClaw agents with persistent memory across sessions. The tool addresses the problem where OpenClaw agents forget everything when they restart, losing memory of what worked, what failed, and what procedures they learned.
Memory types
- Episodic memory — stores what happened (conversations, actions, outcomes)
- Entity memory — tracks people, tools, projects and facts about them
- Procedural memory — automatically extracts "how to do X" procedures from repeated patterns. If your agent does a heartbeat check 3 times, Mengram creates a reusable procedure for it
- Smart archival — old/outdated facts get automatically superseded when new info contradicts them
Integration with OpenClaw
Here's how to use Mengram with OpenClaw agents:
from mengram import Mengram
m = Mengram(api_key="om-...")
Agent saves what it learned
m.add("Completed heartbeat check. Job queue has 18 pending jobs. No urgent alerts.")
Later, agent searches its memory
results = m.search("what's the heartbeat status?")
Procedures are auto-created from repeated patterns
procedures = m.get_procedures()
→ "Run HEARTBEAT.md strict-check", "Daily brief at 10:00 AM", etc.
The agent builds up procedural knowledge over time — it doesn't just remember facts, it learns how to do things and when to do them.
Technical stack
Mengram uses Python SDK, REST API, PostgreSQL + pgvector for embeddings, and works with any LLM.
The project is available on GitHub at github.com/alibaizhanov/mengram.
📖 Read the full source: r/openclaw
👀 See Also

Claude Sleuth: A 56-Task Investigation Workflow for Claude AI
Claude Sleuth is a structured investigation workflow for Claude AI with 6 phases and 56 tasks, featuring persistent state storage via Cloudflare D1 and standardized output conventions including ISO 8601 timestamps, POLE entity records, and ICD 203 probability language.

Argyph: A Single MCP Server for Claude Code with 19 Structured Code Understanding Tools
Argyph is a local MCP server that gives Claude Code 19 tools — go-to-definition, find-references, call graphs, semantic search, token-budgeted repo packing — replacing multiple separate MCP servers with one install. No API key required; all processing stays on your machine.
LTM: A JSON Protocol for Portable Agent Memory Across Models and Machines
LTM is a JSON protocol (Core Memory Packet) plus CLI/server for persisting agent context—dead ends, constraints, next steps—across models, editors, and machines. Packets are 2-5 KB, redact secrets, and support MCP.
Collaborate: A Claude Code Skill for Structured, Asynchronous Document Writing with Multi-Agent Handoffs
A Claude Code skill called 'collaborate' enables multi-contributor document writing where each participant gets a plain‑English briefing from Claude on previous changes, reasoning, and next tasks, with support for parallel sections, structured critique, and Slack/Signal notifications.