OpenClaw Agent Memory Plugin: Persistent Context Across Sessions

A developer has created a memory plugin for OpenClaw that gives agents persistent memory across sessions, addressing the frustration of agents forgetting everything between interactions and requiring the same explanations repeatedly.
How it works
The plugin implements a memory layer that hooks into OpenClaw's plugin system. Before every turn, the agent automatically receives relevant context from past conversations. After every turn, new facts and events are extracted and stored.
The system searches three memory types before each turn:
- Facts — Example: "Uses PostgreSQL on Supabase, deploys via Railway."
- Events — Example: "Had OOM issue on Mar 15, fixed with Redis cache."
- Workflows — Example: "Deploy: build → test → push to main → Railway auto-deploys."
Configuration
Setup requires adding a plugin entry to openclaw.json:
{
"plugins": {
"entries": {
"openclaw-mengram": {
"enabled": true,
"config": {
"apiKey": "om-..."
}
}
},
"slots": {
"memory": "openclaw-mengram"
}
}
}The plugin includes an auto-recall hook that searches memory before each agent turn. When workflows fail, the agent logs feedback and the procedure automatically evolves to a better version for next time.
The tool is open source under Apache 2.0 license and available at github.com/alibaizhanov/mengram.
📖 Read the full source: r/openclaw
👀 See Also

Claude Code Plugin Launches DOOM in Terminal While AI Thinks
A developer created a Claude Code plugin that displays DOOM as a tmux popup overlay during AI processing. The plugin uses doom-ascii, a terminal-based DOOM source port, and automatically launches/dismisses with prompts.

Universal CLAUDE.md reduces Claude output tokens by 63% in benchmarks
A developer created a universal CLAUDE.md file that reduces Claude's output tokens by 63% across five benchmark tests while maintaining technical accuracy. The file addresses common Claude behaviors like verbose responses, unnecessary formatting, and unsolicited suggestions.

Message Your Other Claude Code Sessions: Cross-Session Messaging
Claude Code v2.1.224+ lets Claude send messages between your sessions to coordinate parallel work, share findings, and warn about breaking changes without you copy-pasting.

the-knowledge-guy: Turn Your Bookshelf Into a Tutor With Claude Code Skills
A Claude Code skill set that ingests your PDF/EPUB books locally and lets you ask questions, get taught topic-by-topic, or pull cheatsheets — all with citations across your library.