1.1 KiB
1.1 KiB
name, description, homepage, metadata
| name | description | homepage | metadata | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| force-recall | Prepend mandatory RULEBOOK/SOUL recall block before the agent sees inbound messages | https://docs.openclaw.ai/automation/hooks |
|
Force Recall Hook (MVP)
This hook enforces a recall gate by prepending a short, high-salience block to every inbound message after media/link enrichment and before the agent sees it.
Goal: Before any technical action/tooling, the agent must recall key rules from docs/RULEBOOK.md + SOUL.md.
Behavior
- Listens on
message:preprocessed - Injects a
RECALL_GATEprefix intocontext.bodyForAgent - Optional debug: set
OPENCLAW_FORCE_RECALL_DEBUG=1to append a one-line marker (visible in the agent prompt)
Why this MVP
OpenClaw hooks currently provide reliable interception at the message boundary (message:preprocessed). This is the earliest stable point to force rules into the model's working context without patching core.
Disable
openclaw hooks disable force-recall