본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

session-watchdog

xbillwatsonx 제작

Productivity & Tasks
638clawskills.sh가 보고한 다운로드 수
2스타
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Monitor session context levels and proactively save checkpoints before compaction.

설명

이 스킬이 하는 일

Monitors token usage in active Claude sessions and triggers checkpoint saves to memory files before context compaction occurs. Tracks four threshold levels from safe to full (0–197k+ tokens) and prompts the user to continue, restart, or pause when nearing limits.

Saves context state before compaction happens automatically, giving users a choice instead of silently losing conversation history.

사용 시점

  • Checking remaining context before starting a large file edit
  • Saving pending tasks before a long conversation compacts
  • Answering 'how much context is left?' mid-session
  • Preserving decisions and configurations across session boundaries
  • Starting a new session with a recap of unresolved issues

예시 워크플로

입력

User asks: How much context do we have left?

에이전트
  1. 1

    Run session_status to retrieve contextTokens value

  2. 2

    Compare tokens against defined thresholds (Safe / Warning / Critical / Full)

  3. 3

    If above 160k, read the current memory/YYYY-MM-DD.md file

  4. 4

    Append checkpoint with decisions, pending tasks, and modified file paths

  5. 5

    Alert user with current percentage and ask whether to continue, restart, or pause

출력

Context is at ~82% (160k tokens). Checkpoint saved to memory/2026-03-19.md with pending tasks and recent decisions. User prompted to choose next step.

설치

clawhub install xbillwatsonx/session-watchdog

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크