brain_plan
Generate an ordered action plan for your upcoming task, ranked by likely failure modes and proven steps. Use before non-trivial work to avoid past mistakes.
Instructions
READ-ONLY — no side effects, no writes, no external network calls. Generative planning layer on top of the CKG: given a task you are ABOUT to do (e.g. "upgrade Postgres 14→16", "add Stripe webhooks"), returns an ordered action plan grounded in your own proven lessons — the failure modes most likely to bite (ranked by confidence), the concrete steps that fixed them before (with commands), and a pre-flight checklist. Where brain_predict answers "what might fail?", brain_plan answers "what should I do, in what order?". Requires a valid instance_id (your Redis brain). Call before starting non-trivial work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | The change you are about to make, e.g. "migrate auth from sessions to JWT" | |
| top_k | No | Max items per section (default: 5) | |
| instance_id | Yes | Brain instance ID |