Garden the brain — consolidate over-grown areas (sleep-time compute)
brain_gardenConsolidate dormant and peripheral cards into a single synthesis per area, archiving originals without deleting anything. Requires human approval before changes; also removes duplicate partial notes.
Instructions
Tidy an over-grown brain WITHOUT losing anything — SMART and non-invasive: it only consolidates DORMANT cards (old + peripheral), never load-bearing ones. Two phases: call it with no apply to get the areas that have accumulated forgotten cards (deterministic: >3 cards that are older than 14 days, beyond the area's newest 8, AND have ≤1 connection — so hubs and still-referenced decisions are left untouched; Focus/Instructions/Archive/Open-questions areas protected) plus their card text; YOU write one tight synthesis per area; then call again with apply:true, syntheses:[{title, synthesis}] AND the human's 8-char approve code (apply is REFUSED without it — you are never shown the code; the human generates it with npx klypix-mcp garden-code after reviewing your plan). Each area gets a 🌿 synthesis card, the originals are stamped "⤵ consolidated", moved to Archive, and arrowed to the synthesis — nothing is deleted, and one undo un-gardens. Run it when brain_insights or the brief shows an area has grown noisy. SEPARATE PASS: repair:"duplicate-partials" lists (and with apply:true collapses) cards that carry the SAME ✔ partial note more than once — the residue of a partial ✓ on a card that stays live by design. It keeps the earliest note of each distinct body and removes only exact repeats, so nothing is archived, nothing is deleted, no synthesis and no approval code are needed, and a second run finds nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | false (default) = list over-grown areas + cards to synthesize; true = consolidate using the supplied syntheses. | |
| canvas | No | Brain canvas filename/path. Defaults to the project brain ("brain"). | |
| repair | No | Run a targeted repair instead of the consolidation pass. "duplicate-partials" collapses repeated ✔ partial notes on a card to the earliest one — lossless, idempotent, no syntheses and no approval code. Dry-run by default; apply:true writes. | |
| approve | No | Required when apply:true — the 8-char human-approval code. You are never shown it: the human runs `npx klypix-mcp garden-code` and pastes the code into chat after reviewing your plan. Never guess or fabricate it. | |
| syntheses | No | Required when apply:true — one entry per area you want consolidated. |