본문으로 건너뛰기
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 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크