Brain maintenance
crbro_maintenanceRun brain housekeeping to recalculate heat, prune weak synapses, check integrity, rebuild the search index, and flag debts; use dry_run to report only without writing.
Instructions
Write: brain housekeeping — recalculate heat, prune weak synapses, check integrity, rebuild the search index. Returns a report (counts, integrity_issues, repairable, notes) and flags debts without a revisit trigger. dry_run:true writes nothing. Extras run only when asked: archive cold neurons (they stop being searchable), unarchive, purge_boilerplate, repair, backfill_dates, compact. Session close is crbro_consolidate; reading the brain is crbro_inspect.
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": "crbro_maintenance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repair | No | Fix what the integrity check found (dangling links, orphan synapses, stale keys, counters); lists repairs[]. | |
| archive | No | Move cold neurons (heat < 0.05, untouched 90+ days) to archives/, out of search. Dry-run first (archivable_ids); undo with unarchive. | |
| compact | No | Fold one-line neurons from a bulk import (compact_groups) into one digest per group; sources copied to quarantine first, shared neurons untouched. Dry-run first. | |
| dry_run | No | Report only: nothing is written. Counts, debts and integrity checks still run. | |
| unarchive | No | Neuron ids (or "all") to bring back from archives/ and reindex. | |
| stale_list | No | Read-only: page through every stale entry, most overdue first (default limit 50). Runs alone. | |
| stale_review | No | Act on many stale entries: verify (still true; its clock restarts) or retire them (superseded / retracted). Takes the pairs stale_list returns; runs alone, not with dry_run. | |
| backfill_dates | No | Date pre-1.13 entries from a day stated in their own text; nothing is guessed (dates_backfilled). | |
| purge_boilerplate | No | Delete contentless facts the miner left (counted in every report); a quarantine copy is kept. |