session-health-monitor

Community

Prevent session crashes, save tokens.

AuthorKodaTCG
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents costly 413 context overflow errors by proactively monitoring token usage, compressing chat history, and intelligently routing tasks to sub-agents, especially optimized for Discord's high token burn rate.

Core Features & Use Cases

  • Proactive Token Monitoring: Automatically checks session token usage at regular intervals.
  • Intelligent Compression: Compresses chat history to memory files when token thresholds are approached, with new idempotent compression to prevent data loss.
  • Durable State Separation: Critical information like API keys and configurations are saved separately and never compressed.
  • Sub-Agent Routing: Offloads heavy computational tasks to sub-agents to save tokens.
  • Discord Optimization: Features aggressive thresholds and image blocking for Discord environments.
  • Use Case: Ensure your AI assistant remains responsive and avoids crashes during long, active Discord conversations by automatically managing token usage and compressing older messages.

Quick Start

Use the session-health-monitor skill to automatically manage your Discord session's token usage.

Dependency Matrix

Required Modules

None required

Components

scriptsreferencestemplates

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: session-health-monitor
Download link: https://github.com/KodaTCG/openclaw-session-health-monitor-skill/archive/main.zip#session-health-monitor

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.