Back to list
sane-apps

session-context-manager

by sane-apps

The privacy-first menu bar manager for macOS. Native, lightweight, and scriptable.

109🍴 9📅 Jan 23, 2026

SKILL.md


name: session-context-manager description: Manage session lifecycle, memory state, and context windows. Use when starting sessions, checking memory health, optimizing tokens, or understanding session state. Keywords: session start, memory health, context, compact, token usage, circuit breaker allowed-tools: Bash(./scripts/SaneMaster.rb:*), Read, Grep

Session Context Manager

When This Skill Activates

Claude automatically uses this when you:

  • Start a new session or ask "what's the session state?"
  • Ask about "memory health", "context", or "token usage"
  • Need to check circuit breaker status
  • Want to understand current compliance state

Key Commands

Memory Health

./scripts/SaneMaster.rb mh              # Show entity/token counts
./scripts/SaneMaster.rb mcompact        # List entities needing compaction

Circuit Breaker

./scripts/SaneMaster.rb breaker_status  # Check OPEN/CLOSED
./scripts/SaneMaster.rb breaker_errors  # Show failure messages
./scripts/SaneMaster.rb reset_breaker   # Reset after investigation

Session Management

./scripts/SaneMaster.rb compliance      # SOP compliance report
./scripts/SaneMaster.rb session_end     # End session + memory prompt

Quick Decision Tree

SituationAction
Starting workCheck memory health + circuit breaker
Token usage highRun /compact with focus instructions
Something failed repeatedlyCheck breaker → review errors → investigate
Session endingRun compliance report → save learnings

Thresholds

  • Entities: 60 (warn), 80 (critical)
  • Tokens: 8,000 (warn), 12,000 (critical)
  • Circuit breaker: Trips at 3 consecutive failures

Session ID

Current session: ${CLAUDE_SESSION_ID}

Use for session-specific logging to .claude/audit_log.jsonl.

See Also

  • /compact [instructions] - Smart memory compression
  • /context - Visualize context window usage
  • /rewind - Rollback code AND conversation

Score

Total Score

70/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

+5
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon