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 to PDF Chrome Extension Exports Long Conversations with Formatting Intact
A developer has released a free Chrome extension called Claude to PDF that captures full conversation history from Claude AI chats and preserves code blocks, LaTeX math, and table formatting when exporting to PDF.

Argus: A VS Code Extension to Debug Claude Code Session Costs and Behavior
A developer built Argus, a VS Code extension that parses Claude Code JSONL transcripts into a real-time timeline with per-step token/cost breakdown, cache hit ratio, and flagging of retry loops, duplicate reads, and context pressure.

Vigil: A Cryptographic ID System for OpenClaw Agents to Prevent Blocking
A developer running OpenClaw agents has identified that anonymous agent traffic is increasingly being blocked by sites, and proposes Vigil—a sign-in system that gives agents cryptographic IDs to build reputation and avoid indiscriminate blocking.

Claude Code HUD: Terminal Dashboard for Monitoring AI Coding Sessions
claude-code-hud is a terminal dashboard that provides real-time monitoring for Claude Code sessions, showing context window usage, API rate limits, and file changes without requiring an IDE. Run it with npx claude-code-hud.