Session Watchdog for Openclaw

Proactively monitors context levels to save critical session information before AI token compaction occurs.

xbillwatsonx
v1.0.0
Feb 22, 2026
2
2.5k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install session-watchdog

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-watchdog 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 Watchdog?

Session Watchdog is a specialized management layer for maintaining long-term project context in AI-driven development. It addresses the inherent limitations of LLM token windows by monitoring usage and intervening before critical information is lost through compaction. As a core utility in the Openclaw Skills ecosystem, it ensures that project decisions, task lists, and unresolved issues are safely archived to persistent storage, allowing for seamless session transitions and deep technical continuity.

Session Watchdog Use Cases

  • Monitoring real-time token usage during intensive coding sessions.
  • Preserving critical project state before the model reaches its context ceiling.
  • Automatically documenting decisions and pending tasks to permanent memory files.
  • Querying session health and memory status via Openclaw Skills.
  • Managing long-running workflows that exceed standard model context limits.

How Session Watchdog Works

  1. The skill periodically initiates a context check using the session_status command to retrieve current token levels.
  2. It evaluates the current context against defined thresholds: Safe (<140k), Warning (140k-160k), and Critical (160k+).
  3. Once the usage exceeds the 80% threshold, it triggers the checkpoint protocol.
  4. It reads the current daily memory file and appends vital session metadata including decisions and pending tasks.
  5. It alerts the developer with a warning status and saves the checkpoint to persistent storage.
  6. It prompts for user intervention to decide whether to continue, summarize, or restart the session context.

Session Watchdog Setup

Session Watchdog is integrated directly into the agent workflow. Ensure your environment is configured to allow file writes to the memory directory.

# Verify the ability to check session status
session_status

Session Watchdog Data Schema & Taxonomy

The skill organizes data into chronological Markdown files located in the memory/ directory. Each checkpoint follows a specific structure:

Section Description
Decisions High-level architectural or logical choices made during the session.
Pending A checklist of tasks that remain uncompleted.
Important Context Project state, configurations, and paths of modified files.
Unresolved Specific bugs or issues requiring follow-up in the next session.

Session Watchdog Advanced Features

  • Automated triggers every 30k tokens to ensure no data loss between checkpoints.
  • Context-aware warnings that prevent starting large tasks when the limit is near.
  • Standardized memory file formatting for compatibility with other Openclaw Skills.
  • Configurable safety thresholds for different LLM context architectures.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*