कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

session-health-monitor

assistantheinrich-prog द्वारा

Coding Agents & IDEs
347clawskills.sh द्वारा बताए गए डाउनलोड
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Context window health monitoring for OpenClaw agents — threshold warnings via Telegram, pre-compaction snapshots.

विवरण

यह स्किल क्या करती है

Monitors context window usage in OpenClaw agent sessions and sends threshold-based warnings via Telegram. When usage is high or compaction is detected, the agent saves key facts and decisions to a daily memory file. Old memory files are archived automatically to prevent directory clutter.

Context compaction is silent by default; this surfaces usage and compaction events in real time and preserves key facts before they disappear from the agent's memory.

इसे कब इस्तेमाल करें

  • Getting Telegram alerts when an agent context window hits 75%
  • Saving decisions and changed files before a long session ends
  • Detecting when context was silently compacted mid-task
  • Auto-archiving old memory snapshots after a configurable number of days
  • Tracking compaction count across a multi-hour automation run

उदाहरण वर्कफ़्लो

इनपुट

User asks: check session health and send me a Telegram update

एजेंट
  1. 1

    Runs bash scripts/context-check.sh --json to get current usage percentage and compaction count

  2. 2

    Evaluates result: 63% used, 1 compaction detected, YELLOW threshold triggered

  3. 3

    Extracts 3-5 key facts from the current session (decisions made, files changed, blockers)

  4. 4

    Runs bash scripts/snapshot.sh to write facts to today's memory file

  5. 5

    Appends footer 📊 63% Context Window | 1x compacted to the outgoing Telegram message

आउटपुट

Telegram message sent with context health footer; facts saved to memory/YYYY-MM-DD.md

आवश्यकताएँ

  • Telegram bot token (obtained from BotFather)
  • Telegram chat ID for the target conversation

इंस्टॉलेशन

clawhub install assistantheinrich-prog/session-health-monitor

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक