/install context-budgeting-v2
Context Budgeting Skill
This skill provides a systematic framework for managing the finite context window (RAM) of an OpenClaw agent.
Core Concepts
1. Information Partitioning
- Objective/Goal (10%): Core task instructions and active constraints.
- Short-term History (40%): Recent 5-10 turns of raw dialogue.
- Decision Logs (20%): Summarized outcomes of past steps ("Tried X, failed because Y").
- Background/Knowledge (20%): High-relevance snippets from MEMORY.md.
2. Pre-compression Checkpointing (Mandatory)
Before any compaction (manual or automatic), the agent MUST:
- Generate Checkpoint: Update
memory/hot/HOT_MEMORY.mdwith:- Status: Current task progress.
- Key Decision: Significant choices made.
- Next Step: Immediate action required.
- Run Automation: Execute
scripts/gc_and_checkpoint.shto trigger the physical cleanup.
Automation Tool: gc_and_checkpoint.sh
Located at: skills/context-budgeting/scripts/gc_and_checkpoint.sh
Usage:
- Run this script after updating
HOT_MEMORY.mdto finalize the compaction process without restarting the session.
Integration with Heartbeat
Heartbeat (every 30m) acts as the Garbage Collector (GC):
- Check
/status. If Context > 80%, trigger the Checkpointing procedure. - Clear raw data (e.g., multi-megabyte JSON outputs) once the summary is extracted.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install context-budgeting-v2 - After installation, invoke the skill by name or use
/context-budgeting-v2 - Provide required inputs per the skill's parameter spec and get structured output
What is Context Budgeting Pro?
Manage and optimize OpenClaw context window usage via partitioning, pre-compression checkpointing, and information lifecycle management. Use when the session... It is an AI Agent Skill for Claude Code / OpenClaw, with 374 downloads so far.
How do I install Context Budgeting Pro?
Run "/install context-budgeting-v2" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Context Budgeting Pro free?
Yes, Context Budgeting Pro is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Context Budgeting Pro support?
Context Budgeting Pro is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Context Budgeting Pro?
It is built and maintained by MKGNBEAR (@mkgnbear); the current version is v1.0.0.