housekeep
Clean up memory by deduplicating entries, pruning decayed patterns, removing orphan data, and rebuilding full-text search index to maintain optimal performance.
Instructions
Run cleanup, deduplication, decay, orphan cleanup, and FTS rebuild.
Use this when you want to "clean up", "housekeep", "prune stale
patterns", or "rebuild search" after many observations or imports.
This is the natural-language alias for gc(); both tools are identical
and safe to run periodically.
Args:
dedup_threshold: Similarity cutoff for duplicate merging,
0.0-1.0. Default 0.75. See find_duplicates() for tuning notes.
Returns:
Dict with keys: "decay" (dict with "decayed" and "deleted"),
"dedup" (dict with "found" and "applied"), "orphans_cleaned"
(int), "fts_rebuilt" (bool).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dedup_threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||