mmag
Mixed Memory-Augmented Generation (MMAG) for AI agents. Five cognitive memory layers — conversational, long-term user, episodic, sensory, and short-term working — coordinated into a unified LLM context. Use when you need agents that remember across sessions, personalize responses, track events, and adapt to environmental context.
Why use this skill?
Give your OpenClaw AI agent persistent memory with MMAG. Track preferences, schedule events, and maintain context across sessions using five cognitive layers.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/j0ker98/mmagWhat This Skill Does
MMAG (Mixed Memory-Augmented Generation) is a cognitive architecture for OpenClaw AI agents that transitions them from stateless responders to persistent, long-term companions. By utilizing five distinct memory layers—Conversational, Long-Term User, Episodic, Sensory, and Working—the MMAG skill allows an agent to synthesize past interactions with current situational context. It functions by organizing data into specific layers, ensuring that your agent doesn't just remember what was said, but understands the significance of preferences, time-bound events, and environmental factors. When initialized, the skill provides a unified context window that prioritizes user traits and episodic events, ensuring the agent remains coherent, personalized, and efficient across multiple sessions.
Installation
To integrate MMAG, ensure you have the OpenClaw CLI installed, then execute the following command in your terminal:
- Install via ClawHub:
clawhub install openclaw/skills/skills/j0ker98/mmag - Initialize the environment:
./~/.openclaw/skills/mmag/init.sh - Integration: Every session must begin by executing
./~/.openclaw/skills/mmag/context.shand passing its output into your agent's system prompt to activate the memory layers.
Use Cases
MMAG is ideal for users building highly personalized AI assistants. Use it for:
- Personal Health Assistants: Tracking medication schedules (episodic) and wellness preferences (long-term).
- Professional Project Managers: Maintaining current task status (working) while remembering project deadlines (episodic) and stakeholders' specific communication preferences (long-term).
- Travel Companions: Adjusting tone based on the user's current location and local weather (sensory) while tracking flight itineraries and past destination experiences (episodic).
Example Prompts
- "I'm starting a new project focused on Python backend development; make sure you remember my preference for using FastAPI over Flask."
- "Remind me next Friday at 2 PM to review the quarterly budget projections."
- "Based on our previous conversation about my morning routine, adjust your morning check-in to be more concise."
Tips & Limitations
- Tip: Always execute
prune.shat the end of every session to ensure that your active working memory is safely archived into your episodic layers, preventing data loss. - Tip: Use
snapshot.shbefore major configuration changes to compress your memory layers and save local storage space. - Limitation: Memory growth is cumulative; while the architecture is efficient, extremely long-term usage may eventually require manual pruning of low-priority sensory data to optimize latency. Always ensure the
context.shoutput is injected correctly, as failure to do so will result in the agent operating without its memory layer overrides.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-j0ker98-mmag": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read