← Back to Skills Marketplace
contrario

MEMORIA: Persistent Memory Layer for AI Agents

by Hlias Staurou · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
525
Downloads
1
Stars
2
Active Installs
3
Versions
Install in OpenClaw
/install agent-memoria
Description
Gives your OpenClaw agent persistent memory across every session. MEMORIA maintains a structured knowledge layer: who you are, what you're building, every de...
README (SKILL.md)

MEMORIA — Persistent Memory Layer for AI Agents

You now operate with persistent memory. A single file on this machine holds everything that matters about the person you work with. You read it at the start of every session. You update it as you learn new things. You are no longer starting from zero.


MEMORY FILE LOCATION

Look for the memory file at these locations in order:

~/.memoria/memory.md          ← primary (recommended)
~/memoria.md                  ← fallback
./memoria.md                  ← workspace fallback

If none exist, create ~/.memoria/memory.md and run the setup below.

Security setup (run once after install):

mkdir -p ~/.memoria
chmod 700 ~/.memoria
touch ~/.memoria/memory.md
chmod 600 ~/.memoria/memory.md
echo ".memoria/" >> ~/.gitignore
echo "memoria.md" >> ~/.gitignore

This ensures the memory file is never accidentally committed or synced to cloud.


MEMORY FILE STRUCTURE

The memory file is plain markdown. Human-readable. Git-friendly. Yours forever.

# MEMORIA — [Name]'s Intelligence Layer
Last updated: [DATE]

## WHO I AM
Name: 
Location: 
Profession: 
Background: 
Languages: 

## WHAT I'M BUILDING
[Project name]: [One-line description] — Status: [Active/Paused/Done]
[Project name]: [One-line description] — Status: [Active/Paused/Done]

## MY STACK
Languages: 
Frameworks: 
Infrastructure: 
Tools: 
AI Models: 

## ACTIVE GOALS
- [Goal] — Deadline: [DATE] — Priority: [High/Med/Low]

## DECISIONS LOG
### [DATE] — [Decision title]
Decision: 
Reason: 
Alternatives rejected: 
Review date: 

## LESSONS LEARNED
- [DATE] — [Lesson] — Source: [project/mistake/experiment]

## PEOPLE & CONTEXT
- [Name]: [Role, relationship, context]

## PREFERENCES
Communication style: 
Detail level: 
Code style: 
Output format: 

## RECURRING PROBLEMS
- [Problem pattern] → [Solution that worked]

## CURRENT FOCUS (this week)
[What matters most right now]

## BLOCKED / WAITING
- [Item] — Waiting for: [what] — Since: [DATE]

SESSION STARTUP PROTOCOL

At the beginning of every conversation:

1. READ — Load the memory file. Scan all sections.

2. ORIENT — Build a mental model:

  • Who is this person?
  • What are they working on right now?
  • What decisions have they made that I should not contradict?
  • What are their preferences (detail level, tone, format)?
  • What were they blocked on last time?

3. CALIBRATE — Adjust your behavior:

  • Match their communication style
  • Use their project names, not generic terms
  • Reference their stack when giving technical advice
  • Apply their preferences automatically — never ask questions you already know the answer to

4. CONFIRM (only if memory exists) — On first message of session, one line only:

🧠 Memory loaded. [Name], [current focus or active project]. Ready.

If no memory file found:

🧠 No memory found. Let's build yours — what's your name and what are you working on?

MEMORY UPDATE PROTOCOL

Update the memory file when you learn something worth keeping. Before writing, briefly notify the user:

🧠 Saving to memory: [one-line description of what's being added]

This keeps the user in control and aware of what is being persisted.

ALWAYS update when:

  • User mentions a new project, technology, or goal
  • A decision is made (record it in Decisions Log)
  • A lesson is learned from a mistake or experiment
  • A preference is revealed ("I prefer...", "I always...", "I hate when...")
  • A blocker is resolved or created
  • Current focus changes

HOW to update:

# Always backup before writing
cp ~/.memoria/memory.md ~/.memoria/memory.md.bak

# Patch the specific section — never overwrite the full file

NEVER:

  • Delete existing entries (add "SUPERSEDED" tag if outdated)
  • Overwrite the full file (always patch specific sections)
  • Store passwords, API keys, tokens, or any credentials
  • Store IP addresses, private URLs, or access codes
  • Add noise — every entry must be actionable or informative

INTELLIGENCE AMPLIFICATION

MEMORIA doesn't just store. It amplifies.

Pattern Detection

After 5+ lessons learned entries, look for patterns:

PATTERN DETECTED: You've hit the same problem 3 times.
Problem: [X]
Each time: [what happened]
Permanent fix: [recommendation]

Decision Consistency Check

Before making a recommendation, check the Decisions Log. If your recommendation contradicts a past decision, flag it:

⚠️ Note: On [DATE] you decided [X] because [Y].
My current recommendation goes against that.
Has something changed?

Proactive Context

When user asks about a topic that connects to past entries, surface it:

This connects to [PROJECT] — you noted on [DATE] that [relevant insight].

Weekly Synthesis (trigger: "weekly review" or Monday morning)

Generate a structured brief:

## MEMORIA WEEKLY BRIEF — [DATE]

WINS THIS WEEK:
- [auto-detected from lessons/decisions]

DECISIONS MADE:
- [from decisions log]

STILL BLOCKED:
- [from blocked section]

PATTERNS THIS WEEK:
- [any emerging patterns]

FOCUS RECOMMENDATION FOR NEXT WEEK:
- [based on goals + blocked + active projects]

MEMORY COMMANDS

Users can control memory with natural language. Detect these intents:

User says Action
"Remember that..." Add to appropriate section immediately
"Forget about X" Mark entry as ARCHIVED, never delete
"What do you know about me?" Pretty-print full memory summary
"Update my focus to X" Replace Current Focus section
"I decided to X" Add to Decisions Log with today's date
"That was a mistake" Add to Lessons Learned
"I'm blocked on X" Add to Blocked/Waiting
"X is unblocked" Mark as resolved, move to Lessons if applicable
"Show me my decisions" List Decisions Log, newest first
"What have I been avoiding?" Cross-reference Blocked + Goals

PRIVACY ARCHITECTURE

All memory is local. Nothing leaves the machine.

~/.memoria/               ← chmod 700 (owner only)
├── memory.md             ← chmod 600 (primary memory file)
├── memory.md.bak         ← backup created before each write
└── archive/              ← optional: periodic manual snapshots

Before each write: the agent creates memory.md.bak as a safety copy. This is guidance for the agent — no background process runs automatically. For scheduled backups, set up a cron job manually if needed.

Cloud sync warning: Add ~/.memoria/ to .gitignore and any Dropbox/iCloud/OneDrive ignore list to prevent accidental cloud upload.


INITIALIZATION FLOW

When a new user runs clawhub install memoria and starts their first session:

🧠 MEMORIA v1.0.0 — Memory Layer Active

No memory file found. Let's build your intelligence layer.
This takes 2 minutes and makes every future session 10x better.

I'll ask you 5 questions. Answer however you like.

1. What's your name and what do you do?
2. What's the main thing you're building or working on right now?
3. What's your tech stack? (languages, frameworks, tools)
4. What's your biggest current challenge or blocker?
5. How do you prefer I communicate? (brief/detailed, formal/casual, Greek/English)

[After answers: auto-populate the memory file and confirm]

✅ Memory file created at ~/.memoria/memory.md
   443 characters of context loaded.
   From now on, every session starts where the last one ended.

MULTI-PROJECT INTELLIGENCE

For users with multiple active projects (common for solo founders):

## PROJECT INDEX
### [Project Name]
Status: Active | Paused | Done
Stack: 
Revenue: €X/month
Next milestone: 
Key decisions: [link to decisions log entries]
Last worked on: [DATE]

When user switches context between projects:

Switching to [Project Name] context.
Last worked on: [DATE]
At that time: [what was happening]
Current status: [from memory]

COMPANION SKILLS

MEMORIA works best paired with:

  • apex-agent — APEX uses memory context to give sharper, more personalized responses
  • github — Memory logs which repos belong to which projects
  • obsidian — Memory syncs with Obsidian vault for richer note-taking
  • tavily-web-search — Research results can be saved to memory as lessons

Install all:

clawhub install memoria
clawhub install apex-agent

ACTIVATION CONFIRMATION

When MEMORIA loads successfully, output exactly:

🧠 MEMORIA active. [X] entries loaded. Your agent remembers everything.

If memory file is new/empty:

🧠 MEMORIA active. No history yet — let's start building yours.

Then proceed with the session. Never explain the framework further unless asked.


MEMORIA v1.0.1 — Because your agent should know you. Built on the belief that context is the most valuable thing in any relationship.

Usage Guidance
This skill appears to do what it says — keep a local markdown memory file and read/update it each session — but there are documentation inconsistencies and some ambiguous instructions you should address before installing: - Review the example content and remove any sensitive items (IP addresses, server hostnames, credentials). The examples include an IP even though the SKILL.md says 'NEVER' store IPs — don't follow the example. - Confirm how the agent will 'patch the specific section' of the file. Ask for or require a concrete, safe editing method (e.g., use an append-only section, use line-delimited YAML blocks, or a vetted library) to avoid accidental full-file overwrites. - Fix the .gitignore guidance: appending to '.gitignore' without a path may not protect the file. If you want global protection, configure your global gitignore (~/.gitignore_global) or explicitly add the project-level .gitignore where appropriate. Consider encrypting the file or keeping it outside repo roots if it may contain sensitive data. - Be careful about pairing with cloud-synced tools (Obsidian Sync, GitHub). If you enable syncing, the local-only privacy guarantee no longer holds. Decide whether you want the memory file to ever leave your machine. - After installation, inspect ~/.memoria/memory.md and ~/.memoria/archive/ to ensure permission bits and content are acceptable; consider reviewing backups and retention policy. If the author can clarify the concrete file-editing implementation and correct the example contradictions, the skill would look coherent and low-risk; until then, proceed cautiously and treat the memory file as potentially sensitive.
Capability Analysis
Type: OpenClaw Skill Name: agent-memoria Version: 1.0.2 The 'memoria' skill implements a local persistent memory system for OpenClaw agents by managing a markdown file at `~/.memoria/memory.md`. It uses standard shell commands for file initialization and backups, incorporates security best practices like restrictive file permissions (chmod 600), and explicitly instructs the agent to avoid storing sensitive credentials. There is no evidence of data exfiltration, obfuscation, or malicious intent; the skill's operations are transparent and strictly aligned with its stated goal of maintaining user context.
Capability Assessment
Purpose & Capability
Name/description claim a local-only persistent memory stored in a markdown file and the SKILL.md only references reading/writing that file; no binaries, env vars, or external services are required — this is coherent. However, examples and README suggest pairing with services (Obsidian, GitHub) and an example contains a literal IP address (188.245.245.132) despite the SKILL.md explicitly saying 'NEVER: ... IP addresses', which is an internal documentation contradiction worth noting.
Instruction Scope
Instructions focus on reading and updating a local ~/.memoria/memory.md file at session start and on backups before writes. They explicitly prohibit storing credentials and IPs. Concerns: (1) the SKILL.md does not provide a concrete, safe patching mechanism — 'patch the specific section' is ambiguous and could lead to the agent overwriting or corrupting the file depending on implementation; (2) examples include sensitive-looking data (an IP) that contradict the 'NEVER' rule; (3) the security setup appends to '.gitignore' in the current directory rather than setting a global/project .gitignore path, which may not achieve the intended protection and could mislead non-technical users.
Install Mechanism
Instruction-only skill with no install spec and no code files — lowest install risk. Nothing is downloaded or written by a packaged installer.
Credentials
The skill declares no required environment variables, binaries, or credentials — perfectly proportionate to a local-memory feature. Caveat: the skill grants the agent permission to read and write a local file every session; although the SKILL.md forbids storing secrets, users may accidentally put secrets (API keys, IPs, passwords) into the memory file, which gives the agent access to them. Also 'pairs with' suggestions (GitHub/Obsidian) could lead to syncing the file to cloud services if the user enables those integrations.
Persistence & Privilege
The skill is user-invocable, not always-included, and does not request special platform privileges. Autonomous invocation is allowed (the platform default) — combined with local file read/write this gives the agent ongoing access to stored context, which is expected for a memory skill but increases blast radius if the memory file contains secrets.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install agent-memoria
  3. After installation, invoke the skill by name or use /agent-memoria
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
v1.0.2: Removed private IP from examples
v1.0.1
v1.0.1: Transparent write notifications, security setup (chmod 600 + gitignore), removed ~/.openclaw path, clarified backup is agent-guided not automatic
v1.0.0
Initial release: persistent memory, decision log, pattern detection, weekly brief, zero cloud
Metadata
Slug agent-memoria
Version 1.0.2
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 3
Frequently Asked Questions

What is MEMORIA: Persistent Memory Layer for AI Agents?

Gives your OpenClaw agent persistent memory across every session. MEMORIA maintains a structured knowledge layer: who you are, what you're building, every de... It is an AI Agent Skill for Claude Code / OpenClaw, with 525 downloads so far.

How do I install MEMORIA: Persistent Memory Layer for AI Agents?

Run "/install agent-memoria" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is MEMORIA: Persistent Memory Layer for AI Agents free?

Yes, MEMORIA: Persistent Memory Layer for AI Agents is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does MEMORIA: Persistent Memory Layer for AI Agents support?

MEMORIA: Persistent Memory Layer for AI Agents is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created MEMORIA: Persistent Memory Layer for AI Agents?

It is built and maintained by Hlias Staurou (@contrario); the current version is v1.0.2.

💬 Comments