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

context-sentinel

nietzsche247 द्वारा

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

संक्षिप्त

Monitors session context and automatically manages model switching based on a cascading protocol.

विवरण

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

Automates model switching across a cascading protocol as session context grows. Runs as a cron job or heartbeat check, outputting one of three commands: switch model, trigger handoff, or do nothing. Designed to reduce token costs by degrading from high-cost to high-context models at defined thresholds.

Centralizes cascading model logic into a single reusable script instead of duplicating threshold checks across every agent's heartbeat file.

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

  • Switching from Opus 4.6 to a cheaper model mid-session
  • Preventing context overflow in long-running agent sessions
  • Automating handoffs before a session hits its limit
  • Replacing manual context checks in a HEARTBEAT.md workflow
  • Keeping multi-step agent pipelines alive across model boundaries

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

इनपुट

User runs the context sentinel as part of a scheduled heartbeat

एजेंट
  1. 1

    Execute check_context.ps1 via PowerShell

  2. 2

    Read the script output string

  3. 3

    If SWITCH_TO:<model_id>, call session_status with the new model ID

  4. 4

    If HANDOFF_NOW, write to the handoff file to trigger the handoff process

  5. 5

    If STATUS_OK, take no action

आउटपुट

Session continues on the appropriate model or handoff is initiated before context is exhausted

इंस्टॉलेशन

clawhub install nietzsche247/context-sentinel

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

लिंक