IntegrationsOpenClaw
Session Start Context Injection
Hook-assisted context injection for new OpenClaw sessions using profile auto-selection.
The ClawVault hook can inject relevant memory context when OpenClaw starts a session.
How It Works
On session:start, the hook:
- reads startup prompt/session cues
- calls
clawvault context "<prompt>" --format json --profile auto - injects top context bullets into initial session messages
This improves first-turn quality and reduces "cold start" behavior.
Validate
openclaw hooks install clawvault
openclaw hooks enable clawvault
openclaw hooks list --verbose
openclaw hooks info clawvault
openclaw hooks check
clawvault compat --strictRestart gateway after install/enable.
Manual Equivalent
If you are not using hook automation:
clawvault wake
clawvault context "current priorities" --profile handoffTroubleshooting
no injected context at session start
openclaw hooks list --verbose
openclaw hooks info clawvault
clawvault compatwrong context shape
Try explicit profile for diagnosis:
clawvault context "resuming work" --profile handoff --format json
clawvault context "urgent production issue" --profile incident --format jsonAGENTS.md Safety Note
Do not replace your full AGENTS.md when adding ClawVault. Append a minimal workflow block (wake/checkpoint/sleep/context) to preserve existing agent behavior and constraints.