deepsleep

Consolidate cross-session AI agent memory with nightly summaries and per-group restoration.

1|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/Arry8/openclaw-edge --skill deepsleep
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deepsleep
Source: https://github.com/Arry8/openclaw-edge/tree/main/skills/deepsleep
Command: npx skills add https://github.com/Arry8/openclaw-edge --skill deepsleep

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cross-session context is frequently lost as AI agents interact across conversations. DeepSleep delivers a two-phase memory workflow to persist and consolidate memory between sessions.

Core Features & Use Cases

  • Phase 1: Deep Sleep Pack (23:40) auto-discovers sessions, pulls conversation history, and writes a daily memory file to memory/YYYY-MM-DD.md.
  • Phase 2: Morning Dispatch (00:10) reads yesterday's summary and sends per-group briefs, including reminders and open questions.
  • Phase 3: Session Memory Restore on demand reads per-group memory (memory/groups/<chat_id>.md) to restore context for a new session.
  • Privacy & safety: ensures MEMORY.md data is not leaked into daily summaries and supports per-group isolation.

Quick Start

Configure cron to run Phase 1 at 23:40 and Phase 2 at 00:10, create memory/storage directories, and initialize memory/schedule files.

Frequently Asked Questions about deepsleep

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

FAQPage Schema
How do I preserve AI agent context across multiple chat sessions?

To preserve AI agent context across multiple chat sessions, implement a two-phase memory workflow that pulls conversation history nightly and writes daily memory files to consolidate cross-session context automatically.

What is the best way to schedule automatic memory consolidation for AI agents?

The best way to schedule automatic memory consolidation for AI agents is configuring cron jobs to trigger nightly history pulls and morning dispatches, ensuring cross-session memory is merged and restored without manual intervention.

How does per-group memory isolation work for AI agents in different chats?

Per-group memory isolation works by storing individual chat context in separate memory files, ensuring specific group memories are restored on demand while preventing cross-chat data leakage during session memory restoration.

Can I prevent sensitive MEMORY.md data from leaking into daily AI summaries?

Yes, you can prevent sensitive MEMORY.md data from leaking into daily AI summaries by applying built-in privacy safeguards during the memory consolidation workflow to isolate core memory from generated daily history files.

How to restore per-group memory context for a new AI chat session?

To restore per-group memory context for a new AI chat session, trigger an on-demand memory restore process that reads the specific group memory file and injects prior context into the active session.