← 返回 Skills 市场
sarielwang93

Context Budgeting

作者 SarielWang93 · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
4829
总下载
6
收藏
45
当前安装
1
版本数
在 OpenClaw 中安装
/install 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.
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install context-budgeting
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /context-budgeting 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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%.
元数据
Slug context-budgeting
版本 1.0.0
许可证
累计安装 45
当前安装数 45
历史版本数 1
常见问题

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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 4829 次。

如何安装 Context Budgeting?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install context-budgeting」即可一键安装,无需额外配置。

Context Budgeting 是免费的吗?

是的,Context Budgeting 完全免费(开源免费),可自由下载、安装和使用。

Context Budgeting 支持哪些平台?

Context Budgeting 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Context Budgeting?

由 SarielWang93(@sarielwang93)开发并维护,当前版本 v1.0.0。

💬 留言讨论