Session Archive & Backup System for Openclaw

A comprehensive session lifecycle management workflow for Openclaw agents that automates archiving, AI-driven summarization, and multi-cloud backups.

nevereven619
v1.0.0
Mar 5, 2026
1
1.2k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install session-archive-backup

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install session-archive-backup using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Session Archive & Backup System?

The Session Archive & Backup System is a robust data management framework designed to handle the complete lifecycle of AI agent interactions. It implements a sophisticated four-layer data architecture that transforms raw conversation history into structured AI summaries and durable long-term memory. This ensure that critical context and developer decisions are never lost while maintaining optimal performance for Openclaw Skills by managing token usage.

By automating the reset-archive-backup cycle, this skill eliminates manual maintenance overhead. It allows developers to focus on coding while the system handles background tasks like token threshold monitoring, idle timeout management, and multi-cloud synchronization to GitHub and OneDrive.

Session Archive & Backup System Use Cases

  • Automatically resetting sessions when token limits are reached to maintain agent responsiveness.
  • Generating structured, AI-powered summaries of long development sessions for quick future reference.
  • Synchronizing local workspace memory with GitHub repositories or OneDrive for cross-device consistency and data safety.
  • Maintaining a searchable audit trail of all AI interactions through centralized indexing and reset logs.

How Session Archive & Backup System Works

  1. Monitors active sessions for specific triggers such as token thresholds (e.g., 70k/100k usage) or idle timeouts.
  2. Executes an AI-driven summarization process to extract key decisions, pending tasks, and topic deltas.
  3. Archives raw conversation history into JSONL files and structured summaries into organized Markdown files.
  4. Synchronizes the session context with a long-term MEMORY.md file and updates the fast-lookup index.
  5. Triggers cloud backup scripts to push the updated archive to GitHub and OneDrive.
  6. Performs a clean session reset and reports the status of the previous archive to the user upon the start of the next session.

Session Archive & Backup System Setup

Implementation follows a strict 3-phase workflow to ensure environment compatibility. First, confirm your backup targets (GitHub, OneDrive, or both). Second, verify your workspace structure for the presence of memory directories. Finally, execute the configuration implementation.

# Initialize the required directory structure
mkdir -p memory/session-backups memory/raw-history scripts

# Configure your HEARTBEAT.md with threshold settings
# set token_threshold = 70000

Session Archive & Backup System Data Schema & Taxonomy

Component Path Description
Raw History memory/raw-history/*.jsonl Full conversation logs for auditing.
Structured Archive memory/session-backups/*.md AI summaries with [NEW]/[UPD]/[KEEP] tags.
Long-term Memory MEMORY.md Persistent context across all sessions.
Fast Index memory/index.json Metadata and tag index for rapid retrieval.
Backup Status memory/backup-status.json Logs of successful cloud synchronization events.

Session Archive & Backup System Advanced Features

  • Dual-cloud redundancy supporting simultaneous GitHub and OneDrive synchronization.
  • Intelligent delta tracking that categorizes information as new, updated, or maintained across sessions.
  • Automated heartbeat monitoring for autonomous session lifecycle management without user intervention.
  • Customizable summary templates to match specific project documentation standards for Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*