← 返回 Skills 市场
Willow Context Sentinel
作者
Sean Campbell
· GitHub ↗
· v1.0.0
· MIT-0
69
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install willow-context-sentinel
功能描述
Use when you need to check whether the current session is approaching context limits and decide whether to compact, hand off, or continue. Implements a casca...
安全使用建议
This skill appears to be what it says: a read-only local sentinel that checks two ~/.willow JSON files and prints a simple status. Before installing, consider: 1) Confirm python3 is available on your agent host (the script uses python3 but the metadata only lists bash). 2) The script intentionally 'fails open' (missing/unreadable files default to STATUS_OK) — if you prefer safer behavior, modify it to fail closed or surface an explicit error instead of allowing large operations to continue. 3) Ensure the ~/.willow files are stored with appropriate file permissions (they contain local session state). 4) The sentinel doesn't invoke remote services or exfiltrate data, but it does advise you to call other skills (/strategic-compact, /handoff); review those skills' permissions before following escalation steps.
功能分析
Type: OpenClaw Skill
Name: willow-context-sentinel
Version: 1.0.0
The willow-context-sentinel skill is a diagnostic utility designed to help the AI agent manage its context window by monitoring local state files (~/.willow/anchor_state.json). The shell script (check_context.sh) performs read-only operations to check prompt counts and service status, using standard Python JSON parsing without any signs of data exfiltration, malicious execution, or harmful prompt injection.
能力评估
Purpose & Capability
The skill is a local context sentinel that reads Willow state files under the user's home directory to decide CONTEXT_OK / COMPACT_NOW / HANDOFF_NOW / POSTGRES_DOWN. The required binary (bash) matches the runtime use. The only small mismatch is that the script invokes python3 but python3 is not declared in the metadata; otherwise the resources requested align with the described purpose.
Instruction Scope
Instructions and the script are narrowly scoped to reading ~/.willow/anchor_state.json and ~/.willow/session_anchor.json and printing a single-line status. The SKILL.md and script consistently describe read-only behavior. Note: the skill intentionally 'fails open' (missing or unreadable files default to STATUS_OK) which is an operational choice that can hide context problems; also SKILL.md examples reference calling other skills (/strategic-compact, /handoff) but the sentinel itself only outputs a status and does not invoke those skills.
Install Mechanism
Instruction-only skill with a small shipped shell script; no install spec, no downloads, and nothing written to disk beyond the included code file. Low install risk.
Credentials
The skill requests no environment variables or credentials. It reads files in $HOME/.willow, which is appropriate for a Willow-specific sentinel. One minor proportionality issue: the script uses python3 for JSON parsing but python3 is not declared as a required binary in the skill metadata.
Persistence & Privilege
always is false and the skill does not request persistent or elevated privileges, nor does it modify other skills or system configuration. Autonomous model invocation is allowed by default but that is normal and the skill's behavior is read-only.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install willow-context-sentinel - 安装完成后,直接呼叫该 Skill 的名称或使用
/willow-context-sentinel触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of context sentinel cascading protocol for Willow/OpenClaw on Linux:
- Monitors `prompt_count` to detect session context usage.
- Outputs one of four statuses: `STATUS_OK`, `COMPACT_NOW`, `HANDOFF_NOW`, or `POSTGRES_DOWN`.
- Directs automatic invocation of `strategic-compact` or `handoff` workflows when limits are reached.
- Checks Postgres availability via `session_anchor.json`.
- Safe, read-only operation; integrates easily with session heartbeat processes.
元数据
常见问题
Willow Context Sentinel 是什么?
Use when you need to check whether the current session is approaching context limits and decide whether to compact, hand off, or continue. Implements a casca... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 69 次。
如何安装 Willow Context Sentinel?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install willow-context-sentinel」即可一键安装,无需额外配置。
Willow Context Sentinel 是免费的吗?
是的,Willow Context Sentinel 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Willow Context Sentinel 支持哪些平台?
Willow Context Sentinel 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux)。
谁开发了 Willow Context Sentinel?
由 Sean Campbell(@rudi193-cmd)开发并维护,当前版本 v1.0.0。
推荐 Skills