session_health_check
Diagnose agent memory corruption by detecting missing embeddings, duplicate entries, orphaned handoffs, and stale rollups. Enable automatic repair to backfill embeddings and clean orphaned data.
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. |