context-budget-guard

Installation
SKILL.md

Context Budget Guard

State file: ~/.openclaw/skill-state/context-budget-guard/state.yaml

Don't wait for the model to go incoherent. Act at 70%, not 95%.

When to Use

  • At the start of any long-running session (>30 min expected)
  • Before each major task step in a multi-hour workflow
  • When long-running-task-management advances to a new stage

The Process

Step 1: Initialize (Session Start)

Write to state: session_start timestamp, compaction_count: 0, status: monitoring, threshold_pct: 70.

Step 2: Check Budget (Before Each Major Step)

Estimate current context usage as a rough percentage:

Related skills
Installs
16
GitHub Stars
61
First Seen
Mar 21, 2026