memory-sync

Parse OpenClaw JSONL session logs to backfill daily agent memory files.

2|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/mpesavento/openclaw-memory-sync --skill memory-sync-mpesavento
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: memory-sync
Source: https://github.com/mpesavento/openclaw-memory-sync/tree/main/memory-sync
Command: npx skills add https://github.com/mpesavento/openclaw-memory-sync --skill memory-sync-mpesavento

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires click.

What problem does it solve?

OpenClaw agents lose memory continuity when switching models, causing memory gaps and drift across days that can erase decisions, context, and relationships.

Core Features & Use Cases

  • Reconstruct daily memory by parsing JSONL session logs and backfilling missing memory files to preserve continuity across model switches.
  • Verify memory coverage and identify gaps, enabling automated nightly or incremental sync with optional LLM-based summaries.
  • Backfill historical data and support cron-style automation to maintain up-to-date memory.

Quick Start

Run memory-sync compare to detect gaps, then backfill missing days with optional summarization.

Frequently Asked Questions about memory-sync

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I restore agent memory continuity after switching LLM models?

To restore agent memory continuity after a model switch, you can parse JSONL session logs to reconstruct and backfill missing daily memory files. This process recovers lost decisions, context, and relationships by analyzing historical session data.

How do I detect and backfill missing memory files from JSONL logs?

You can detect memory gaps by running a comparison against your session logs, then backfill missing days incrementally. This syncs historical data by extracting details from JSONL files and optionally applying LLM-based summaries to create narrative memory.

Can I automate nightly memory sync for my AI agent?

Yes, you can automate nightly memory sync using cron-style scheduling. This ensures daily memory files are continuously backfilled and up-to-date by tracking local state and processing new JSONL session logs automatically overnight.

Does memory backfill support secret sanitization for LLM summaries?

Yes, the memory backfill process includes automatic secret sanitization. This ensures that when generating LLM-based narratives from your JSONL logs, sensitive information is scrubbed before the memory files are written or summarized.

What is the best way to verify memory coverage across model switches?

The best way to verify memory coverage is to run a gap detection command that compares existing memory files against JSONL session logs. This identifies missing days or incomplete context, allowing you to trigger an incremental backfill to restore continuity.