Session Manager for Openclaw

A sophisticated session lifecycle tool that automatically tracks, summarizes, and stores AI conversation history across multiple platforms.

zh40
v1.0.1
Mar 21, 2026
0
1k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install session-manager

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-manager 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 Manager?

Session Manager is a core utility designed to bring structure to AI interactions within the Openclaw Skills ecosystem. It specializes in monitoring the natural flow of dialogue, identifying when topics shift, and ensuring that valuable context is either preserved or neatly partitioned into new sessions. By managing the session lifecycle, it prevents context dilution and helps users maintain a clean, organized history of their AI collaborations.

This skill bridges the gap between ephemeral chat and permanent knowledge by offering automated archival. Whether you are switching tasks or starting a brand-new project, Session Manager ensures that every interaction is accounted for, summarized, and stored according to your personal preference, making it an essential component for power users of Openclaw Skills.

Session Manager Use Cases

  • Automatically detecting when a user starts talking about a new project and offering to reset the context window.
  • Archiving long-form technical discussions into structured Markdown files for personal knowledge management.
  • Tracking billable time or session durations for professional consulting via Feishu Bitable integration.
  • Seamlessly carrying over important architectural decisions from one session to the next without re-explaining requirements.

How Session Manager Works

  1. Trigger Identification: The skill monitors for explicit commands like /new or natural language cues such as "switch topic."
  2. Proactive Detection: It analyzes the current conversation; if the user's input deviates significantly from the established session topic, it politely suggests creating a new session.
  3. Context Inheritance: Upon creating a new session, it asks the user if key information from the previous conversation should be carried forward.
  4. Structured Recording: It initializes a record containing the Session ID, Topic, and Start Time in the user's chosen storage backend.
  5. Lifecycle Finalization: When a session ends or switches, it timestamps the end time and updates the global state to ensure continuity.

Session Manager Setup

To enable Session Manager within your Openclaw Skills environment, ensure your workspace is initialized and run:

# Initialize the memory directory for local storage
mkdir -p memory/sessions/

# The skill will prompt for storage preference (Feishu or Local) on first run.

If using Feishu Bitable, ensure your API credentials are configured in your environment variables.

Session Manager Data Schema & Taxonomy

The skill maintains data integrity through a strict schema, ensuring compatibility across different Openclaw Skills implementations.

Storage Fields

Field Type Description
Session ID Integer Unique identifier for the conversation
Session Topic String Brief summary of the discussion focus
Date ISO Date The calendar date of the session
Start/End Time ISO 8601 Precise timestamps for session duration
Previous ID Integer Optional link to a parent session for context chaining

State Metadata

Current status is persisted in MEMORY.md to track active session variables.

Session Manager Advanced Features

  • Active Topic Detection: Uses semantic analysis to recognize topic shifts without user intervention.
  • Dual-Backend Support: Toggle between Feishu Bitable for team collaboration and Local Markdown for privacy-focused workflows.
  • Context Chaining: Supports a "Previous Session ID" system to create a navigable tree of related conversation threads.
  • Auto-Summarization: Generates a concise summary of the session before closing the file or table entry.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*