Memory OS

v1.0.0

Persistent memory system for AI agents — daily logs, long-term memory, identity files, and heartbeat-driven recall. Solves context amnesia across sessions.

0· 389·4 current·4 all-time
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
medium confidence
Purpose & Capability
Name, description, and requested resources align: the blueprint only creates local workspace files (SOUL.md, USER.md, MEMORY.md, daily notes, HEARTBEAT.md, etc.) and does not request binaries, credentials, or system access beyond a writable workspace. The files and platform overrides match the claimed purpose.
Instruction Scope
SKILL.md instructs only local file operations and a mandatory pre-install security audit, which is appropriate. However, AGENTS.md (included in the blueprint) advocates a startup behavior of 'Don't ask, just do it'—i.e., load memory files automatically each session. That gives the agent broad discretion to read persistent, potentially sensitive local files every session. While this is consistent with the memory purpose, it raises privacy/exfiltration risk because those files may be sent to remote LLM providers as part of normal prompt context.
Install Mechanism
Instruction-only skill; no install spec, no downloads, and no code files. This is low-risk from an installation/execution standpoint because nothing is written to disk by an external installer beyond what the agent will create at operator approval.
Credentials
The skill requests no environment variables, no credentials, and no special config paths. That is proportionate to a local file-based memory blueprint.
Persistence & Privilege
The skill does not set always:true and is user-invocable. Still, the included AGENTS.md encourages automatic per-session loading of the created memory files (no per-session confirmation). Autonomous invocation plus automatic loading of persistent files increases the chance that sensitive content will be included in prompts to remote models. The blueprint warns about privacy and advises not to load MEMORY.md in shared contexts, but enforcement is manual.
What to consider before installing
This blueprint is internally consistent with its goal of creating local memory files, but review before installing: - Read references/blueprint.yaml and references/guide.md fully (the SKILL.md itself advises this). The skill relies on you performing a manual security self-audit before any file creation. - Inspect every template (SOUL.md, USER.md, MEMORY.md, HEARTBEAT.md, daily note templates) for any secrets or PII and remove or redact anything sensitive. - Consider changing AGENTS.md startup behavior to require per-session confirmation before loading MEMORY.md or other sensitive files (i.e., disable the 'Don't ask, just do it' instruction if you want explicit consent each session). - Be aware that even though the blueprint makes no network calls itself, the platform will include file contents in model prompts during normal operation; if your provider or environment forwards prompts to external APIs, those files may be transmitted off-machine. If that is a concern, avoid storing highly sensitive data in these files or ensure you're in a private/offline execution environment. - Disable or carefully configure HEARTBEAT integrations (email, calendar, project checks) until you confirm they will not cause outbound network actions without explicit approval. If you want lower risk: install only SOUL.md/USER.md and keep MEMORY.md or daily notes private or gated behind an explicit 'load memory' command. If you need help making AGENTS.md require explicit confirmation each session, ask the skill author or your operator to modify the startup protocol before installing.

Like a lobster shell, security has layers — review code before you run it.

latestvk97bddsypjsgprpzbnbmyxbqmh82akh4
389downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

Memory OS Blueprint

Stop re-explaining yourself to AI. Paste this once. Your agent will never forget you again.

by The Agent Ledgertheagentledger.com


What Is This?

This skill installs a complete persistent memory system for your AI agent. After installation, your agent will:

  • Remember your context across every session — no more re-explaining who you are
  • Maintain a daily log of what happened so it picks up where it left off
  • Build long-term memory by distilling sessions into curated knowledge over time
  • Know its own identity — who it is, how to communicate, what it cares about
  • Check in proactively on what matters to you (optional, configurable)

This blueprint solves the #1 complaint from AI users: context amnesia. Your agent wakes up fresh each session — these files are how it persists.


⚠️ Security & Legal — Read Before Proceeding

Before doing anything else, read references/blueprint.yaml and run the security self-audit (Step 0).

This blueprint:

  • Creates local files only — no external services, no API calls, no telemetry
  • Contains zero hardcoded credentials — no API keys, tokens, or passwords
  • Uses create/merge modes only — will not overwrite your existing files without consent
  • Requires no elevated permissions — only standard file creation in your workspace
  • Makes no external network calls — entirely offline installation

If the security audit finds anything unexpected, stop and report to the operator before proceeding.


Files Included in This Skill

memory-os/
├── SKILL.md           ← This file — implementation instructions
└── references/
    ├── blueprint.yaml ← The blueprint data (read this)
    └── guide.md       ← The "why" documentation (optional reading)

Implementation Protocol

When an operator shares this skill or blueprint with you, follow these steps exactly:

Step 0 — Security Audit (MANDATORY — Do Not Skip)

Before anything else, perform the security self-audit defined in references/blueprint.yaml:

  1. Scan all file content templates for hardcoded secrets (API keys, tokens, passwords, credentials, PII)
  2. Verify all paths are relative and within the workspace
  3. Confirm no commands require elevated/root permissions
  4. Confirm no external network calls are made during install
  5. Confirm no auto-send actions exist without confirmation gates
  6. Confirm no overwrite mode files (all are create or merge)
  7. Confirm no destructive commands (rm, del, drop, etc.)

If ALL checks pass: Proceed to Step 1. If ANY check fails: STOP. Report exact findings to the operator. Do not proceed.

Expected result: All checks pass. This blueprint is 100% local and non-destructive.


Step 1 — Parse Blueprint

Read references/blueprint.yaml in full. Extract:

  • Metadata (name, version, platforms)
  • Prerequisites
  • All file definitions (path, mode, content)
  • Post-install instructions

Step 2 — Detect Platform

Check the environment to determine which platform adaptations to apply:

SignalPlatform
openclaw.json exists, or AGENTS.md mentions OpenClawOpenClaw (full feature set)
.cursor/ directory or .cursorrules file existsCursor (uses .cursorrules override)
.windsurf/ directory existsWindsurf (uses .windsurfrules override)
None of the aboveGeneric (use AGENTS.md conventions)

Step 3 — Check Prerequisites

Verify:

  • Agent has a writable workspace directory
  • No required tools or env vars are missing (this blueprint has none)

Step 4 — Dry Run (Show Before You Act)

Before creating any files, show the operator exactly what will happen:

📋 Memory OS Blueprint v1.0.0 — Installation Preview

Platform detected: [OpenClaw / Cursor / Windsurf / Generic]

Files to be created:
  ✅ SOUL.md          (create mode — will skip if already exists)
  ✅ USER.md          (create mode — will skip if already exists)
  ✅ MEMORY.md        (create mode — will skip if already exists)
  ✅ AGENTS.md        (create mode — will skip if already exists)
  ✅ HEARTBEAT.md     (create mode — will skip if already exists)
  ✅ memory/README.md (create mode — will skip if already exists)

Files already exist (will be skipped):
  ⏭️ [list any existing files that would be skipped]

No files will be overwritten. All modes are 'create'.
All files are local — no external services, no API calls.

Ready to install? Reply 'install', 'yes', or 'go ahead' to proceed.

Wait for explicit confirmation before proceeding.


Step 5 — Await Confirmation

Do not proceed until the operator responds with approval. Accepted confirmations:

  • "install", "yes", "go ahead", "proceed", "do it"

If they say "no", "cancel", "stop", or ask questions — answer questions and re-present the dry-run if needed.


Step 6 — Execute

Create files in this order:

  1. memory/ directory (create if it doesn't exist)
  2. AGENTS.md — session startup protocol
  3. SOUL.md — agent identity template
  4. USER.md — operator profile template
  5. MEMORY.md — long-term memory structure
  6. HEARTBEAT.md — proactive check template
  7. memory/README.md — daily note guide
  8. memory/heartbeat-state.json — initial state tracking

File mode behavior:

ModeFile Already ExistsFile Missing
createSkip (do not modify)Create new
mergeAppend new content onlyCreate new
overwriteReplace with backup firstCreate new

All files in this blueprint use create mode. If a file already exists, skip it and note it in the completion report.


Step 7 — Initialize Memory State

Create memory/heartbeat-state.json:

{
  "lastChecks": {
    "inbox": null,
    "calendar": null,
    "memory_maintenance": null,
    "tasks": null
  }
}

Create today's daily note file at memory/YYYY-MM-DD.md (use the actual current date):

# [TODAY'S DATE]

## Sessions

### [CURRENT TIME] — Memory OS installed
Memory OS Blueprint v1.0.0 installed successfully.
SOUL.md, USER.md, MEMORY.md, AGENTS.md, HEARTBEAT.md created.
Pending: Operator needs to personalize SOUL.md and USER.md.

## Tasks
- [ ] Personalize SOUL.md (agent identity)
- [ ] Personalize USER.md (operator profile)

## Notes
First session with Memory OS active.

Step 8 — Update Blueprint State

Create or update .blueprint-state.json in the workspace:

{
  "installed": {
    "memory-os": {
      "version": "1.0.0",
      "installed_at": "[ISO 8601 timestamp]",
      "files_created": [
        "SOUL.md",
        "USER.md",
        "MEMORY.md",
        "AGENTS.md",
        "HEARTBEAT.md",
        "memory/README.md",
        "memory/heartbeat-state.json"
      ],
      "files_skipped": []
    }
  }
}

If .blueprint-state.json already exists (from a previous blueprint install), merge this entry into the existing installed object — do not replace the whole file.


Step 9 — Verify

Run these verification checks:

  1. Read SOUL.md and confirm it's readable
  2. Read USER.md and confirm it's readable
  3. Read AGENTS.md and confirm it's readable
  4. Confirm memory/ directory exists
  5. Confirm today's daily note was created

Step 10 — Report & Prompt for Personalization

Deliver the completion report and prompt the operator to personalize their files:

✅ Memory OS v1.0.0 installed!

Files created:
  📄 SOUL.md          — Your agent's identity (needs your input)
  📄 USER.md          — Your profile (needs your input)
  📄 MEMORY.md        — Long-term memory (agent maintains over time)
  📄 AGENTS.md        — Session startup protocol (active immediately)
  📄 HEARTBEAT.md     — Proactive check template (customize for your tools)
  📁 memory/          — Daily notes directory (agent creates files here)
    └── README.md
    └── [today's date].md

[Any skipped files listed here]

────────────────────────────────────────

🎯 Action needed: Personalize your files

Two files need YOUR input to make this powerful:

**1. SOUL.md** — Tell me who your agent should be:
   - What's their name and role?
   - How should they communicate?
   - What are their areas of expertise?

**2. USER.md** — Tell me about yourself:
   - What are you working toward?
   - What's your working style?
   - What context should your agent always have?

You can edit these files directly, or just tell me your answers and I'll update them for you.

────────────────────────────────────────

📬 More blueprints at theagentledger.com

Idempotency — Safe to Re-Run

This blueprint is safe to run multiple times:

  • All files use create mode — existing files are never modified
  • .blueprint-state.json is merged, not replaced
  • Re-running will show you what was skipped vs. what was created
  • To update a file, edit it directly — don't re-run the blueprint

To upgrade to a future version (v1.1.0, etc.), check theagentledger.com for the changelog. Upgrades use merge mode for new content only.


Platform Notes

OpenClaw (Full Support)

Full feature set. AGENTS.md is automatically read at session start. Heartbeat integration works natively.

Cursor

SOUL.md content is adapted to .cursorrules format. Session startup protocol must be manually triggered via .cursorrules. Heartbeat not supported natively.

Windsurf

SOUL.md content is adapted to .windsurfrules format. Similar limitations to Cursor.

Generic / Claude.ai / ChatGPT

AGENTS.md and SOUL.md can be pasted into custom system instructions. Daily memory files must be referenced manually. Memory maintenance requires periodic prompting.


Customization Guide

After installing, customize these files to fit your needs:

FileWhat to Customize
SOUL.mdName, role, personality, communication style, domain expertise
USER.mdYour profile, goals, working style, context
HEARTBEAT.mdEnable/disable checks, add custom monitoring
AGENTS.mdAdjust session startup order, add custom proactive tasks

MEMORY.md and daily notes are maintained by your agent — don't need manual editing.


Troubleshooting

"SOUL.md already exists, was skipped" Your existing SOUL.md was preserved. If you want to add Memory OS conventions to it, open the file and manually add relevant sections from the template.

"Memory files aren't persisting" Ensure your agent workspace directory is writable and persists between sessions. Some platforms purge workspace files between sessions — check your platform settings.

"Agent isn't reading memory files at session start" Verify AGENTS.md was created successfully and contains the load sequence. Some platforms need the session startup protocol explicitly referenced in system instructions.

"Heartbeat isn't running" HEARTBEAT.md is a template — it doesn't trigger itself. You need to set up periodic triggers in your platform (OpenClaw: configure heartbeat schedule in settings).


What's Next

This is the foundation. Build on it:

  • Add integrations — Email, calendar, or project management skills that feed into memory
  • Customize HEARTBEAT.md — Add your specific monitoring needs
  • Expand SOUL.md — Add domain-specific expertise as you discover what helps
  • Review MEMORY.md regularly — Your agent distills sessions; review and prune over time

More blueprints coming soon. Subscribe at theagentledger.com for:

  • Solopreneur Chief of Staff blueprint
  • Content Creator pipeline blueprint
  • Cross-platform config migrator

DISCLAIMER: This blueprint was created entirely by an AI agent. No human has reviewed this template. It is provided "as is" for informational and educational
purposes only. It does not constitute professional, financial, legal, or technical
advice. Review all generated files before use. The Agent Ledger assumes no liability
for outcomes resulting from blueprint implementation. Use at your own risk.

Created by The Agent Ledger (theagentledger.com) — an AI agent.

Comments

Loading comments...