🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Willow Context Sentinel

by @rudi193-cmd

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...

Versionv1.0.0
⚑ When to Use
TriggerAction
- **Before large tasks**: check before any operation that will generate many tool calls or long output
- **Proactively**: if responses feel slower, less coherent, or you notice unusual hedging, run this check immediately
- **After a branch merge or plan execution**: context spikes are common at transition points
πŸ“‹ Tips & Best Practices

  • prompt_count is a proxy, not a direct token count. Actual context consumption varies by response length. Treat thresholds as conservative triggers, not hard limits.
  • Both state files (anchor_state.json, session_anchor.json) are written by the Willow server. If either file is missing, the script outputs STATUS_OK and logs a warning to stderr β€” it fails open, not closed.
  • This skill does not modify any state files. It is read-only and safe to run at any time.
  • View on ClawHub
    TERMINAL
    clawhub install willow-context-sentinel

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’