ClawVault
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:

  1. reads startup prompt/session cues
  2. calls clawvault context "<prompt>" --format json --profile auto
  3. 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 --strict

Restart gateway after install/enable.

Manual Equivalent

If you are not using hook automation:

clawvault wake
clawvault context "current priorities" --profile handoff

Troubleshooting

no injected context at session start

openclaw hooks list --verbose
openclaw hooks info clawvault
clawvault compat

wrong context shape

Try explicit profile for diagnosis:

clawvault context "resuming work" --profile handoff --format json
clawvault context "urgent production issue" --profile incident --format json

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

On this page