← Back to Skills Marketplace
sarielwang93

Context Budgeting

by SarielWang93 · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
4829
Downloads
6
Stars
45
Active Installs
1
Versions
Install in OpenClaw
/install context-budgeting
Description
Manage and optimize OpenClaw context window usage via partitioning, pre-compression checkpointing, and information lifecycle management. Use when the session context is near its limit (>80%), when the agent experiences "memory loss" after compaction, or when aiming to reduce token costs and latency for long-running tasks.
Usage Guidance
Before installing, understand that the skill may change local OpenClaw memory/checkpoint state and run its bundled compaction script. Review the script if you are cautious about local automation, but the supplied evidence does not show unrelated access, credential handling, exfiltration, or destructive behavior.
Capability Analysis
Type: OpenClaw Skill Name: context-budgeting Version: 1.0.0 The skill bundle is classified as benign. The `SKILL.md` instructs the OpenClaw agent to manage its context window by updating a specific memory file (`memory/hot/HOT_MEMORY.md`) and executing a local shell script (`scripts/gc_and_checkpoint.sh`). The script's primary action is to call the internal `openclaw sessions --active 1` command, which is directly aligned with the stated purpose of session compaction and context budgeting. There is no evidence of data exfiltration, malicious execution (e.g., remote payload fetching), persistence mechanisms, or prompt injection attempts to subvert the agent's core directives or access unrelated sensitive data. The commented-out `find` command for large temporary files is a diagnostic/cleanup step, not a security risk.
Capability Assessment
Purpose & Capability
The described capability is coherent with a context-budgeting skill: it updates a specific hot-memory file and runs a local checkpoint/compaction script tied to active OpenClaw sessions.
Instruction Scope
The instructions include local file modification and script execution, but the actions are narrow and directly related to maintaining session context rather than unrelated system access.
Install Mechanism
No artifact-backed evidence indicates deceptive install behavior, remote payload fetching, package substitution, or dependency abuse.
Credentials
The referenced environment access is proportionate: a specific memory path, a bundled local script, and an internal OpenClaw sessions command; no credentials, broad filesystem indexing, or network exfiltration are evident.
Persistence & Privilege
The skill intentionally changes persistent local agent memory/checkpoint state, but that persistence is expected for the stated purpose and appears bounded to OpenClaw context management.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install context-budgeting
  3. After installation, invoke the skill by name or use /context-budgeting
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of the context-budgeting skill for OpenClaw agents. - Provides a structured method to partition the agent's context window by priority: goals, recent history, decision logs, and relevant knowledge. - Introduces mandatory pre-compression checkpointing to preserve key task data before context compaction. - Adds an automation script (`gc_and_checkpoint.sh`) for efficient memory cleanup without session restart. - Integrates with the agent's heartbeat to automatically trigger context management when usage exceeds 80%.
Metadata
Slug context-budgeting
Version 1.0.0
License
All-time Installs 45
Active Installs 45
Total Versions 1
Frequently Asked Questions

What is Context Budgeting?

Manage and optimize OpenClaw context window usage via partitioning, pre-compression checkpointing, and information lifecycle management. Use when the session context is near its limit (>80%), when the agent experiences "memory loss" after compaction, or when aiming to reduce token costs and latency for long-running tasks. It is an AI Agent Skill for Claude Code / OpenClaw, with 4829 downloads so far.

How do I install Context Budgeting?

Run "/install context-budgeting" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Context Budgeting free?

Yes, Context Budgeting is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Context Budgeting support?

Context Budgeting is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Context Budgeting?

It is built and maintained by SarielWang93 (@sarielwang93); the current version is v1.0.0.

💬 Comments