consolidate
Clean shared agent memory by reporting changes first, then merging duplicate notes, removing stale threads, releasing orphan claims, pruning ended tasks, and collecting unused spool files/worktrees.
Instructions
Periodic memory hygiene. dry_run=True (default) reports only.
merge_dup_notes : intra-thread cosine ≥ note_cosine, keep oldest idle_stale : active threads not touched in stale_days dedupe_verbatim : exact text + (if embeddings) cosine ≥ verbatim_cosine release_orphan : claim ≥ orphan_days old, no progress past claim mark prune_tasks : ended task rows outside retention bounds gc_task_spool : task spool files with no retained task row gc_worktrees : safely disposable expired task checkouts and branches
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "consolidate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| stale_days | No | ||
| note_cosine | No | ||
| orphan_days | No | ||
| verbatim_cosine | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |