dabiggestpoppa/larger-lab/context-monitor

Claude Code and agent skill by dabiggestpoppa/larger-lab

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install dabiggestpoppa/larger-lab/context-monitor

SKILL.md

The same SKILL.md was published earlier as dabiggestpoppa/larger-lab/context-monitor.

Context Monitor Skill

Purpose: Monitor session context usage and alert when approaching limit.
Trigger: Check context after every response. Alert at 75% threshold.

Context Limits by Model

ModelMax Tokens75% Warning90% Critical
openrouter/owl-alpha1,000,000750,000900,000
openrouter/anthropic/claude-sonnet-4200,000150,000180,000
inclusionai/ring-2.6-1t131,07298,304117,964
nvidia/nemotron-3-ultra-550b-a55b131,07298,304117,964
minimax/minimax-m3128,00096,000115,200

Behavior

After Every Response
  1. Check contextTokens from session state
  2. Calculate percentage of model's max context
  3. If ≥ 75%: Send warning message to user
  4. If ≥ 90%: Send critical alert + suggest new session
Warning Message (75%)
⚠️ Context Warning: {model} session at {used}/{max} tokens ({pct}%)
Session: {session_key}
Model: {model}
Recommendation: Start a new session soon to avoid context overflow.
Reply /new to start a fresh session.
Critical Message (90%)
🚨 Context Critical: {model} session at {used}/{max} tokens ({pct}%)
Session will be truncated soon. Start a new session NOW.
Reply /new to start a fresh session.
Auto-Compaction (95%)

At 95%, automatically:

  1. Summarize the session so far
  2. Save summary to logs/session-summaries/
  3. Start a new session with the summary as context
  4. Notify user of the transition

Session State Location

  • Sessions file: .openclaw-2/.openclaw/agents/main/sessions/sessions.json
  • Each session has: contextTokens, model, status

Implementation

This skill runs as part of the agent's post-response hook. It reads the session state file and sends alerts via Telegram DM.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/dabiggestpoppa/larger-lab/context-monitor/badge)](https://verified-skill.com/skills/dabiggestpoppa/larger-lab/context-monitor)

Something wrong with this skill or its page? Tell us.