session_health_check
Run integrity checks on agent memory to detect and fix missing embeddings, duplicate entries, orphaned handoffs, and stale rollups. Use auto_fix for automatic repair.
Instructions
Run integrity checks on the agent's memory (like fsck for filesystems). Scans for missing embeddings, duplicate entries, orphaned handoffs, and stale rollups.
Checks performed:
Missing embeddings — entries that can't be found via semantic search
Duplicate entries — near-identical summaries wasting context tokens
Orphaned handoffs — handoff state with no backing ledger entries
Stale rollups — compaction artifacts with no archived originals
Use auto_fix=true to automatically repair missing embeddings and clean up orphans.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auto_fix | No | If true, automatically repair issues (backfill embeddings, remove orphaned handoffs). Default: false. |