prune_learnings
Prune old and redundant learning entries by archiving entries past a configurable age and promoting frequently recurring findings to improve advisory relevance.
Instructions
Lifecycle maintenance for .squad/learnings.jsonl (v0.11.0+). Two passes: (1) entries older than max_age_days are marked archived: true and hidden from default read_learnings; (2) entries with ≥ min_recurrence accept decisions on the same normalised finding title get promoted: true on the most-recent matching entry — promoted entries surface first in advisory prompts regardless of scope match. Atomic rewrite under file lock. Never auto-runs (max_age_days defaults to 0). Use dry_run: true to inspect counts without mutating.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace_root": "<workspace_root>"
},
"name": "prune_learnings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_root | Yes | ||
| max_age_days | No | ||
| min_recurrence | No | ||
| dry_run | No |