brain_predict
Predicts likely failures and returns the highest-confidence fixes by reading your team's shared knowledge graph. Use at session start to surface relevant past issues and solutions, reducing debugging time.
Instructions
READ-ONLY — no side effects, no writes, no external network calls. Predictive Pre-fetch Engine (PPE): given your current context, reads the CKG in your Redis instance to predict likely failures and return the highest-confidence fixes. "Pre-load" means results are returned inline — nothing is cached or persisted. Requires a valid instance_id (your Redis brain). No rate limits. Call at session start when working on a specific feature or debugging area. Set scope="org" to widen prediction across your whole organisation — surfaces cross-team risks ("failed 3× across 2 other teams") from the Org Knowledge Graph, so an incident in one team becomes a vaccine for yours.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Prediction scope (default "instance"). "instance" = this brain only (today's behaviour). "org" = cross-team Org Knowledge Graph: ranked warnings from failures that recurred in OTHER teams/repos in your organisation, with proven fixes and confidence. "org+commons" = org graph plus public syndicated lessons. Falls back to "instance" when the instance has no org. | |
| top_k | No | Max predictions to return (default: 5) | |
| context | Yes | What you're working on, e.g. "upgrading Keycloak from 21 to 24" | |
| instance_id | Yes | Brain instance ID |