AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | π Star if you like it!
Crawler Summary
Prevents 413 context overflow errors through proactive token monitoring, compression, and sub-agent routing. Discord-optimized with aggressive thresholds. v2.0 adds idempotent compression and durable state separation. --- name: session-health-monitor description: Prevents 413 context overflow errors through proactive token monitoring, compression, and sub-agent routing. Discord-optimized with aggressive thresholds. v2.0 adds idempotent compression and durable state separation. metadata: { "openclaw": { "emoji": "π" } } --- Session Health Monitor v2.0 **Prevents 413 context overflow errors** through proactive token monitoring, com Published capability contract available. No trust telemetry is available yet. Last updated 2/24/2026.
Freshness
Last checked 2/24/2026
Best For
Contract is available with explicit auth and schema references.
Not Ideal For
session-health-monitor is not ideal for teams that need stronger public trust telemetry, lower setup complexity, or more explicit contract coverage before production rollout.
Evidence Sources Checked
editorial-content, capability-contract, runtime-metrics, public facts pack
Prevents 413 context overflow errors through proactive token monitoring, compression, and sub-agent routing. Discord-optimized with aggressive thresholds. v2.0 adds idempotent compression and durable state separation. --- name: session-health-monitor description: Prevents 413 context overflow errors through proactive token monitoring, compression, and sub-agent routing. Discord-optimized with aggressive thresholds. v2.0 adds idempotent compression and durable state separation. metadata: { "openclaw": { "emoji": "π" } } --- Session Health Monitor v2.0 **Prevents 413 context overflow errors** through proactive token monitoring, com
Public facts
6
Change events
1
Artifacts
0
Freshness
Feb 24, 2026
Published capability contract available. No trust telemetry is available yet. Last updated 2/24/2026.
Trust score
Unknown
Compatibility
OpenClaw
Freshness
Feb 24, 2026
Vendor
Kodatcg
Artifacts
0
Benchmarks
0
Last release
Unpublished
Key links, install path, and a quick operational read before the deeper crawl record.
Summary
Published capability contract available. No trust telemetry is available yet. Last updated 2/24/2026.
Setup snapshot
git clone https://github.com/KodaTCG/openclaw-session-health-monitor-skill.gitSetup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Everything public we have scraped or crawled about this agent, grouped by evidence type with provenance.
Vendor
Kodatcg
Protocol compatibility
OpenClaw
Auth modes
api_key
Machine-readable schemas
OpenAPI or schema references published
Handshake status
UNKNOWN
Crawlable docs
6 indexed pages on the official domain
Merged public release, docs, artifact, benchmark, pricing, and trust refresh events.
Extracted files, examples, snippets, parameters, dependencies, permissions, and artifact metadata.
Extracted files
0
Examples
6
Snippets
0
Languages
typescript
Parameters
bash
# 1. Copy Discord v3 template (recommended) cp skills/session-health-monitor/templates/HEARTBEAT-discord-v3.md HEARTBEAT.md # 2. Create durable state file cp skills/session-health-monitor/templates/durable-state-template.md memory/durable-state.md # 3. Restart gateway openclaw gateway restart
bash
# Discord v2 (no idempotent compression) cp skills/session-health-monitor/templates/HEARTBEAT-discord-v2.md HEARTBEAT.md # Standard (web/CLI) cp skills/session-health-monitor/templates/HEARTBEAT-standard.md HEARTBEAT.md
bash
# Add to crontab crontab -e # Discord: check every 30 minutes */30 * * * * /home/profeeder/.openclaw/workspace/skills/session-health-monitor/scripts/token-monitor.py # Or for standard (web/CLI): every 2 hours 0 */2 * * * /home/profeeder/.openclaw/workspace/skills/session-health-monitor/scripts/token-monitor.py
bash
mkdir -p skills/session-health-monitor/data
markdown
<!-- COMPRESSED: 14:30 (120,000 tokens, warning level) --> ## Session Summary 14:30 [summary content]
text
session-health-monitor/
βββ SKILL.md (this file)
βββ config/
β βββ channel-thresholds.json (Discord vs default thresholds)
βββ scripts/
β βββ token-monitor.py (main monitoring script)
βββ templates/
β βββ HEARTBEAT-discord.md (aggressive mode)
β βββ HEARTBEAT-standard.md (normal mode)
βββ data/
βββ monitor-state.json (runtime state)Full documentation captured from public sources, including the complete README when available.
Docs source
GITHUB OPENCLEW
Editorial quality
ready
Prevents 413 context overflow errors through proactive token monitoring, compression, and sub-agent routing. Discord-optimized with aggressive thresholds. v2.0 adds idempotent compression and durable state separation. --- name: session-health-monitor description: Prevents 413 context overflow errors through proactive token monitoring, compression, and sub-agent routing. Discord-optimized with aggressive thresholds. v2.0 adds idempotent compression and durable state separation. metadata: { "openclaw": { "emoji": "π" } } --- Session Health Monitor v2.0 **Prevents 413 context overflow errors** through proactive token monitoring, com
Prevents 413 context overflow errors through proactive token monitoring, compression, and sub-agent routing.
New in v2.0:
β
Idempotent compression - Markers prevent re-compression
β
Durable state separation - Config/context never compressed
β
Safe retries - Multiple compressions don't lose data
Sessions have a 200K token limit. When exceeded, the session breaks with 413 errors. This is especially problematic in Discord due to:
Channel-aware compression system with aggressive thresholds for Discord, standard for web/CLI.
β
Auto-compression to daily memory files
β
Git auto-commit after every compression
β
Sub-agent routing for heavy tasks (saves 70-90% tokens)
β
Image blocking at critical thresholds (Discord)
β
Channel-specific thresholds (Discord vs web/CLI)
β
Proactive monitoring (30 min for Discord, 2 hours standard)
# 1. Copy Discord v3 template (recommended)
cp skills/session-health-monitor/templates/HEARTBEAT-discord-v3.md HEARTBEAT.md
# 2. Create durable state file
cp skills/session-health-monitor/templates/durable-state-template.md memory/durable-state.md
# 3. Restart gateway
openclaw gateway restart
# Discord v2 (no idempotent compression)
cp skills/session-health-monitor/templates/HEARTBEAT-discord-v2.md HEARTBEAT.md
# Standard (web/CLI)
cp skills/session-health-monitor/templates/HEARTBEAT-standard.md HEARTBEAT.md
# Add to crontab
crontab -e
# Discord: check every 30 minutes
*/30 * * * * /home/profeeder/.openclaw/workspace/skills/session-health-monitor/scripts/token-monitor.py
# Or for standard (web/CLI): every 2 hours
0 */2 * * * /home/profeeder/.openclaw/workspace/skills/session-health-monitor/scripts/token-monitor.py
mkdir -p skills/session-health-monitor/data
Every heartbeat (or cron interval), the agent:
session_status for current token countWhen threshold hit:
Compression Marker Format:
<!-- COMPRESSED: 14:30 (120,000 tokens, warning level) -->
## Session Summary 14:30
[summary content]
At elevated token levels:
Why sub-agents save tokens:
At 170K tokens (Discord only):
session-health-monitor/
βββ SKILL.md (this file)
βββ config/
β βββ channel-thresholds.json (Discord vs default thresholds)
βββ scripts/
β βββ token-monitor.py (main monitoring script)
βββ templates/
β βββ HEARTBEAT-discord.md (aggressive mode)
β βββ HEARTBEAT-standard.md (normal mode)
βββ data/
βββ monitor-state.json (runtime state)
Edit config/channel-thresholds.json to adjust:
Add to your server/workspace welcome:
Discord:
π» Koda - Discord Session Tips
Discord burns tokens 3-5x faster than other platforms due to images and group chat.
Auto-protections enabled: β Aggressive compression at 60% capacity β Auto-route heavy tasks to sub-agents β Block images at 85% (prevents crashes)
You can help:
- Share image links instead of uploads
- Reset chat periodically (I auto-backup to GitHub)
- Let me handle big tasks via sub-agents
You won't lose work β everything saves to memory + GitHub.
# Test compression manually
python3 skills/session-health-monitor/scripts/token-monitor.py
# Check state
cat skills/session-health-monitor/data/monitor-state.json
# View compression history
cat memory/$(date +%Y-%m-%d).md
memory/YYYY-MM-DD.mdQ: Agent not compressing even at threshold?
crontab -ldata/monitor-state.json for last check timeQ: Too aggressive for my use case?
config/channel-thresholds.json to raise thresholdsQ: Sub-agents not triggering?
sessions_spawn capabilityBuilt by Koda (Feb 2026) for Pro to solve Discord 413 overflow issues.
MIT - Free to use, modify, and share.
Problem: Running compression twice on the same data re-summarizes already-compressed content, losing detail.
Solution: Compression markers prevent re-compression.
How it works:
grep "<!-- COMPRESSED:" memory/2026-02-15.mdBenefits:
Problem: Aggressive compression might delete important long-term context (API keys, config, decisions).
Solution: Separate files for different memory types.
File Structure:
memory/
2026-02-15.md # Thread summaries (compress aggressively)
durable-state.md # Never compress (config, decisions, tasks)
context/ # Optional domain-specific data
What goes in durable state:
What goes in daily files:
Compression rules:
Idempotent + Durable State together:
Machine endpoints, protocol fit, contract coverage, invocation examples, and guardrails for agent-to-agent use.
Contract coverage
Status
ready
Auth
api_key
Streaming
No
Data region
global
Protocol support
Requires: openclew, lang:typescript
Forbidden: none
Guardrails
Operational confidence: medium
curl -s "https://www.xpersona.co/api/v1/agents/kodatcg-openclaw-session-health-monitor-skill/snapshot"
curl -s "https://www.xpersona.co/api/v1/agents/kodatcg-openclaw-session-health-monitor-skill/contract"
curl -s "https://www.xpersona.co/api/v1/agents/kodatcg-openclaw-session-health-monitor-skill/trust"
Trust and runtime signals, benchmark suites, failure patterns, and practical risk constraints.
Trust signals
Handshake
UNKNOWN
Confidence
unknown
Attempts 30d
unknown
Fallback rate
unknown
Runtime metrics
Observed P50
unknown
Observed P95
unknown
Rate limit
unknown
Estimated cost
unknown
Every public screenshot, visual asset, demo link, and owner-provided destination tied to this agent.
Neighboring agents from the same protocol and source ecosystem for comparison and shortlist building.
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | π Star if you like it!
AI Agents & MCPs & AI Workflow Automation β’ (~400 MCP servers for AI agents) β’ AI Automation / AI Agent with MCPs β’ AI Workflows & AI Agents β’ MCPs for AI Agents
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
The Frontend for Agents & Generative UI. React + Angular
Contract JSON
{
"contractStatus": "ready",
"authModes": [
"api_key"
],
"requires": [
"openclew",
"lang:typescript"
],
"forbidden": [],
"supportsMcp": false,
"supportsA2a": false,
"supportsStreaming": false,
"inputSchemaRef": "https://github.com/KodaTCG/openclaw-session-health-monitor-skill#input",
"outputSchemaRef": "https://github.com/KodaTCG/openclaw-session-health-monitor-skill#output",
"dataRegion": "global",
"contractUpdatedAt": "2026-02-24T19:43:09.088Z",
"sourceUpdatedAt": "2026-02-24T19:43:09.088Z",
"freshnessSeconds": 19655303
}Invocation Guide
{
"preferredApi": {
"snapshotUrl": "https://www.xpersona.co/api/v1/agents/kodatcg-openclaw-session-health-monitor-skill/snapshot",
"contractUrl": "https://www.xpersona.co/api/v1/agents/kodatcg-openclaw-session-health-monitor-skill/contract",
"trustUrl": "https://www.xpersona.co/api/v1/agents/kodatcg-openclaw-session-health-monitor-skill/trust"
},
"curlExamples": [
"curl -s \"https://www.xpersona.co/api/v1/agents/kodatcg-openclaw-session-health-monitor-skill/snapshot\"",
"curl -s \"https://www.xpersona.co/api/v1/agents/kodatcg-openclaw-session-health-monitor-skill/contract\"",
"curl -s \"https://www.xpersona.co/api/v1/agents/kodatcg-openclaw-session-health-monitor-skill/trust\""
],
"jsonRequestTemplate": {
"query": "summarize this repo",
"constraints": {
"maxLatencyMs": 2000,
"protocolPreference": [
"OPENCLEW"
]
}
},
"jsonResponseTemplate": {
"ok": true,
"result": {
"summary": "...",
"confidence": 0.9
},
"meta": {
"source": "GITHUB_OPENCLEW",
"generatedAt": "2026-10-10T07:31:32.923Z"
}
},
"retryPolicy": {
"maxAttempts": 3,
"backoffMs": [
500,
1500,
3500
],
"retryableConditions": [
"HTTP_429",
"HTTP_503",
"NETWORK_TIMEOUT"
]
}
}Trust JSON
{
"status": "unavailable",
"handshakeStatus": "UNKNOWN",
"verificationFreshnessHours": null,
"reputationScore": null,
"p95LatencyMs": null,
"successRate30d": null,
"fallbackRate": null,
"attempts30d": null,
"trustUpdatedAt": null,
"trustConfidence": "unknown",
"sourceUpdatedAt": null,
"freshnessSeconds": null
}Capability Matrix
{
"rows": [
{
"key": "OPENCLEW",
"type": "protocol",
"support": "unknown",
"confidenceSource": "profile",
"notes": "Listed on profile"
},
{
"key": "help",
"type": "capability",
"support": "supported",
"confidenceSource": "profile",
"notes": "Declared in agent profile metadata"
}
],
"flattenedTokens": "protocol:OPENCLEW|unknown|profile capability:help|supported|profile"
}Facts JSON
[
{
"factKey": "docs_crawl",
"category": "integration",
"label": "Crawlable docs",
"value": "6 indexed pages on the official domain",
"href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
"sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
"sourceType": "search_document",
"confidence": "medium",
"observedAt": "2026-04-15T05:03:46.393Z",
"isPublic": true
},
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Kodatcg",
"href": "https://github.com/KodaTCG/openclaw-session-health-monitor-skill",
"sourceUrl": "https://github.com/KodaTCG/openclaw-session-health-monitor-skill",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-02-24T19:43:14.176Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/kodatcg-openclaw-session-health-monitor-skill/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/kodatcg-openclaw-session-health-monitor-skill/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-02-24T19:43:09.088Z",
"isPublic": true
},
{
"factKey": "auth_modes",
"category": "compatibility",
"label": "Auth modes",
"value": "api_key",
"href": "https://www.xpersona.co/api/v1/agents/kodatcg-openclaw-session-health-monitor-skill/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/kodatcg-openclaw-session-health-monitor-skill/contract",
"sourceType": "contract",
"confidence": "high",
"observedAt": "2026-02-24T19:43:09.088Z",
"isPublic": true
},
{
"factKey": "schema_refs",
"category": "artifact",
"label": "Machine-readable schemas",
"value": "OpenAPI or schema references published",
"href": "https://github.com/KodaTCG/openclaw-session-health-monitor-skill#input",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/kodatcg-openclaw-session-health-monitor-skill/contract",
"sourceType": "contract",
"confidence": "high",
"observedAt": "2026-02-24T19:43:09.088Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/kodatcg-openclaw-session-health-monitor-skill/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/kodatcg-openclaw-session-health-monitor-skill/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
]Change Events JSON
[
{
"eventType": "docs_update",
"title": "Docs refreshed: Sign in to GitHub Β· GitHub",
"description": "Fresh crawlable documentation was indexed for the official domain.",
"href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
"sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
"sourceType": "search_document",
"confidence": "medium",
"observedAt": "2026-04-15T05:03:46.393Z",
"isPublic": true
}
]Sponsored
Ads related to session-health-monitor and adjacent AI workflows.